]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: renesas_usbhs: protect mod->irq_{bemp,brdy}sts by spin lock
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Fri, 22 Aug 2014 11:14:00 +0000 (20:14 +0900)
committerFelipe Balbi <balbi@ti.com>
Wed, 3 Sep 2014 14:15:57 +0000 (09:15 -0500)
commitc4d8199ba1a7aa390b06db23f4532e2c1875aefb
treef000d2f2726c08aa09c560a7131cb4270f5b1997
parent8355b2b3082d302091506703d2e4e239f7deed7f
usb: renesas_usbhs: protect mod->irq_{bemp,brdy}sts by spin lock

This patch protects the mod->irq_bempsts and mod->irq_brdysts by
spin lock in the usbhs_status_get_each_irq() because other functions
will write them during spin lock. Otherwise, the driver will clears
the BRDYSTS and/or BEMPSTS wrongly, and then, the transaction will not
finish.
Also since the driver should use the INTSTS0 and BRDYSTS and BEMPSTS
as the same timing, the patch protects them.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/renesas_usbhs/mod.c