* [PATCH] amba-pl011: fix panic introduced by "clear pending interrupts"
@ 2012-03-26 20:32 Alessandro Rubini
2012-03-27 7:07 ` Linus Walleij
2012-03-27 12:12 ` Sergei Shtylyov
0 siblings, 2 replies; 3+ messages in thread
From: Alessandro Rubini @ 2012-03-26 20:32 UTC (permalink / raw)
To: linux-arm-kernel
patch 9b96fba, currently in linux-next, clears interrupts using
uap->port.membase that has not been assigned. My x86 system,
that uses a pci-to-amba bridge, panics with a message like:
BUG: unable to handle kernel NULL pointer dereference at 00000038
IP: [<c12c85ed>] pl011_probe+0x119/0x303
Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
Acked-by: Giancarlo Asnaghi <giancarlo.asnaghi@st.com>
---
drivers/tty/serial/amba-pl011.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c
index 2b4e981..38c992d 100644
--- a/drivers/tty/serial/amba-pl011.c
+++ b/drivers/tty/serial/amba-pl011.c
@@ -1947,8 +1947,8 @@ static int pl011_probe(struct amba_device *dev, const struct amba_id *id)
}
/* Ensure interrupts from this UART are masked and cleared */
- writew(0, uap->port.membase + UART011_IMSC);
- writew(0xffff, uap->port.membase + UART011_ICR);
+ writew(0, base + UART011_IMSC);
+ writew(0xffff, base + UART011_ICR);
uap->vendor = vendor;
uap->lcrh_rx = vendor->lcrh_rx;
--
1.7.7.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] amba-pl011: fix panic introduced by "clear pending interrupts"
2012-03-26 20:32 [PATCH] amba-pl011: fix panic introduced by "clear pending interrupts" Alessandro Rubini
@ 2012-03-27 7:07 ` Linus Walleij
2012-03-27 12:12 ` Sergei Shtylyov
1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2012-03-27 7:07 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, Mar 26, 2012 at 10:32 PM, Alessandro Rubini <rubini@gnudd.com> wrote:
> patch 9b96fba, currently in linux-next, clears interrupts using
> uap->port.membase that has not been assigned. ?My x86 system,
> that uses a pci-to-amba bridge, panics with a message like:
>
> ? BUG: unable to handle kernel NULL pointer dereference at 00000038
> ? IP: [<c12c85ed>] pl011_probe+0x119/0x303
>
> Signed-off-by: Alessandro Rubini <rubini@gnudd.com>
> Acked-by: Giancarlo Asnaghi <giancarlo.asnaghi@st.com>
Yep I know, already sent the remedy, just waiting for Greg to pick it up:
http://marc.info/?l=linux-serial&m=133235774423240&w=2
But thanks for the quick attention :-)
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH] amba-pl011: fix panic introduced by "clear pending interrupts"
2012-03-26 20:32 [PATCH] amba-pl011: fix panic introduced by "clear pending interrupts" Alessandro Rubini
2012-03-27 7:07 ` Linus Walleij
@ 2012-03-27 12:12 ` Sergei Shtylyov
1 sibling, 0 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2012-03-27 12:12 UTC (permalink / raw)
To: linux-arm-kernel
Hello.
On 27-03-2012 0:32, Alessandro Rubini wrote:
> patch 9b96fba, currently in linux-next, clears interrupts using
Please also specify the summary of this commit in parens.
> uap->port.membase that has not been assigned. My x86 system,
> that uses a pci-to-amba bridge, panics with a message like:
> BUG: unable to handle kernel NULL pointer dereference at 00000038
> IP: [<c12c85ed>] pl011_probe+0x119/0x303
> Signed-off-by: Alessandro Rubini<rubini@gnudd.com>
> Acked-by: Giancarlo Asnaghi<giancarlo.asnaghi@st.com>
WBR, Sergei
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-27 12:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-26 20:32 [PATCH] amba-pl011: fix panic introduced by "clear pending interrupts" Alessandro Rubini
2012-03-27 7:07 ` Linus Walleij
2012-03-27 12:12 ` Sergei Shtylyov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox