ARM: cti: fix manipulation of debug lock registers
authorWill Deacon <will.deacon@arm.com>
Thu, 15 Nov 2012 21:28:43 +0000 (21:28 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 15 Nov 2012 21:39:34 +0000 (21:39 +0000)
commitf600b9fcd2bcb8ee0adb235f54ccdd93c729c442
treeece27e6ac0d2b7b27bf8f365990e5af39bd8eef1
parentf435ab79928e4d54082e2838c4562a165e37999c
ARM: cti: fix manipulation of debug lock registers

The LOCKSTATUS register for memory-mapped coresight devices indicates
whether or not the device in question implements hardware locking. If
not, locking is not present (i.e. LSR.SLI == 0) and LAR is write-ignore,
so software doesn't actually need to check the status register at all.

This patch removes the broken LSR checks.

Cc: Ming Lei <ming.lei@canonical.com>
Reported-by: Mike Williams <michael.williams@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm/include/asm/cti.h