]> git.baikalelectronics.ru Git - kernel.git/commit
usb: renesas_usbhs: gadget: fix spin_lock_init() for &uep->lock
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 9 Aug 2017 10:55:24 +0000 (19:55 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 15 Aug 2017 11:18:55 +0000 (14:18 +0300)
commitc84f38365543b7da67e80bb5537c7ee1368b1272
tree6fb1eedf61e33fe1aba7dae521f4de1ae8394bf9
parentdd0e1c81f98d263fd3be8826f208707d6faf87cd
usb: renesas_usbhs: gadget: fix spin_lock_init() for &uep->lock

This patch fixes an issue that the spin_lock_init() is not called
for almost all pipes. Otherwise, the lockdep output the following
message when we connect a usb cable using g_ncm:

 INFO: trying to register non-static key.
 the code is fine but needs lockdep annotation.
 turning off the locking correctness validator.

Reported-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
Fixes: 3a652b717a28 ("usb: renesas_usbhs: gadget: disable all eps when the driver stops")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Tested-by: Kazuya Mizuguchi <kazuya.mizuguchi.ks@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/renesas_usbhs/mod_gadget.c