From: Yoshihiro Shimoda Date: Fri, 22 Aug 2014 11:14:00 +0000 (+0900) Subject: usb: renesas_usbhs: protect mod->irq_{bemp,brdy}sts by spin lock X-Git-Tag: fixes-for-v3.18-merge-window~137^2~23^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4d8199ba1a7aa390b06db23f4532e2c1875aefb;p=pandora-kernel.git 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 Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed