diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2012-10-12 06:49:38 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-10-16 11:47:40 +0200 |
commit | d5c6a1e024dd5acd6ad2e1a6eb6a2fd5c15c50f1 (patch) | |
tree | f3b9cf4c413adea7d4a75f4682a741981c484579 /drivers/usb/renesas_usbhs | |
parent | usb: renesas_usbhs: fixup __usbhs_for_each_pipe 1st pos (diff) | |
download | linux-d5c6a1e024dd5acd6ad2e1a6eb6a2fd5c15c50f1.tar.xz linux-d5c6a1e024dd5acd6ad2e1a6eb6a2fd5c15c50f1.zip |
usb: renesas_usbhs: fixup interrupt status clear method
When interrupt happened, renesas_usbhs driver gets irq status
by usbhs_status_get_each_irq(), and cleared all status by using 0.
But, this method is incorrect,
since extra interrupt might occur between them.
This patch cleared corresponding bits only
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs')
-rw-r--r-- | drivers/usb/renesas_usbhs/mod.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/renesas_usbhs/mod.c b/drivers/usb/renesas_usbhs/mod.c index 35c5208f3249..61933a90e5bf 100644 --- a/drivers/usb/renesas_usbhs/mod.c +++ b/drivers/usb/renesas_usbhs/mod.c @@ -273,9 +273,9 @@ static irqreturn_t usbhs_interrupt(int irq, void *data) usbhs_write(priv, INTSTS0, ~irq_state.intsts0 & INTSTS0_MAGIC); usbhs_write(priv, INTSTS1, ~irq_state.intsts1 & INTSTS1_MAGIC); - usbhs_write(priv, BRDYSTS, 0); - usbhs_write(priv, NRDYSTS, 0); - usbhs_write(priv, BEMPSTS, 0); + usbhs_write(priv, BRDYSTS, ~irq_state.brdysts); + usbhs_write(priv, NRDYSTS, ~irq_state.nrdysts); + usbhs_write(priv, BEMPSTS, ~irq_state.bempsts); /* * call irq callback functions |