]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: gadget: Fix BUG in RT config
authorRoger Quadros <rogerq@ti.com>
Mon, 21 Sep 2015 08:08:36 +0000 (11:08 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 21 Sep 2015 19:42:36 +0000 (14:42 -0500)
commit1ba269b4b92e6d1d4a622dd84b0e28a9721365fb
tree7745302518c1cff3f44ac773300e054fcfb3bd51
parentc5eea565a934be3b11d889bb406ce146d739a766
usb: dwc3: gadget: Fix BUG in RT config

Using spin_lock() in hard irq handler is pointless
and causes a BUG() in RT (real-time) configuration
so get rid of it.

The reason it's pointless is because the driver is
basically accessing register which is, anyways,
atomic.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c