diff options
author | Alexander Shishkin <virtuoso@slind.org> | 2010-08-04 06:27:33 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-08-10 17:10:53 -0400 |
commit | 988257cfcbc468cb26b3addfcab1d0187c4e2399 (patch) | |
tree | 8f2bd59c63ac07beef9aa8eb2d3c95682a4f2d8d /arch/arm/kernel | |
parent | 9e354ea8e0710baf05804168fdabe90231b3d363 (diff) |
ARM: 6294/1: etm: do a dummy read from OSSRR during initialization
The first read from ETM OS save and restore register after the power
down bit deassertion returns garbage.
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Alexander Shishkin <virtuoso@slind.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r-- | arch/arm/kernel/etm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/kernel/etm.c b/arch/arm/kernel/etm.c index 9e9db63c298a..56418f98cd01 100644 --- a/arch/arm/kernel/etm.c +++ b/arch/arm/kernel/etm.c | |||
@@ -543,7 +543,9 @@ static int __init etm_probe(struct amba_device *dev, struct amba_id *id) | |||
543 | t->etm_portsz = 1; | 543 | t->etm_portsz = 1; |
544 | 544 | ||
545 | etm_unlock(t); | 545 | etm_unlock(t); |
546 | ret = etm_readl(t, ETMMR_PDSR); | 546 | (void)etm_readl(t, ETMMR_PDSR); |
547 | /* dummy first read */ | ||
548 | (void)etm_readl(&tracer, ETMMR_OSSRR); | ||
547 | 549 | ||
548 | t->ncmppairs = etm_readl(t, ETMR_CONFCODE) & 0xf; | 550 | t->ncmppairs = etm_readl(t, ETMR_CONFCODE) & 0xf; |
549 | etm_writel(t, 0x440, ETMR_CTRL); | 551 | etm_writel(t, 0x440, ETMR_CTRL); |