usb: gadget: udc: renesas_usb3: lock for PN_ registers access
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 26 Apr 2017 11:50:09 +0000 (20:50 +0900)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 03:00:57 +0000 (03:00 +0000)
commitd2ef2f555ea6d32e16d0f14530ab04dc6820c4fa
tree137f5cae713f1c7eb3c98aeb70c7d108400f2128
parent61facbdc99f183745b8484af415806a039a36184
usb: gadget: udc: renesas_usb3: lock for PN_ registers access

commit 940f538a100c84c6e72813e4ac88bd1753a86945 upstream.

This controller disallows to change the PIPE until reading/writing
a packet finishes. However. the previous code is not enough to hold
the lock in some functions. So, this patch fixes it.

Fixes: 746bfe63bba3 ("usb: gadget: renesas_usb3: add support for Renesas USB3.0 peripheral controller")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/renesas_usb3.c