]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Fri, 2 Jun 2017 09:44:59 +0000 (12:44 +0300)
commit940f538a100c84c6e72813e4ac88bd1753a86945
tree2d088a74723fd026cb3f6a5cda5d8a1e3e0b2797
parent067d6fdc558d2c43f0bfdc7af99630dd5eb08dc5
usb: gadget: udc: renesas_usb3: lock for PN_ registers access

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>
drivers/usb/gadget/udc/renesas_usb3.c