Skip to content

Commit

Permalink
mxc/tzic: add base address when accessing TZIC registers
Browse files Browse the repository at this point in the history
When we call tzic_enable_wake function, the kernel will crash because
of access to an unmapped address. This is because two register
access operations forgot to add base address.

Signed-off-by: Jason Wang <jason77.wang@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
  • Loading branch information
Jason Wang authored and Sascha Hauer committed Aug 21, 2010
1 parent c735c40 commit a38b372
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arch/arm/plat-mxc/tzic.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,9 @@ int tzic_enable_wake(int is_idle)
return -EAGAIN;

for (i = 0; i < 4; i++) {
v = is_idle ? __raw_readl(TZIC_ENSET0(i)) : wakeup_intr[i];
__raw_writel(v, TZIC_WAKEUP0(i));
v = is_idle ? __raw_readl(tzic_base + TZIC_ENSET0(i)) :
wakeup_intr[i];
__raw_writel(v, tzic_base + TZIC_WAKEUP0(i));
}

return 0;
Expand Down

0 comments on commit a38b372

Please sign in to comment.