diff options
author | Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> | 2017-07-19 16:16:55 +0900 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-07-19 10:38:22 +0300 |
commit | b8b9c974afee685789fcbb191b52d1790be3608c (patch) | |
tree | 3d32a2a172fe26d31096a2c7617735d2d7e5bde4 /drivers/usb/renesas_usbhs/rcar3.c | |
parent | 59a0879a0e17b2e43ecdc5e3299da85b8410d7ce (diff) | |
download | linux-b8b9c974afee685789fcbb191b52d1790be3608c.tar.gz |
usb: renesas_usbhs: gadget: disable all eps when the driver stops
A gadget driver will not disable eps immediately when ->disconnect()
is called. But, since this driver assumes all eps stop after
the ->disconnect(), unexpected behavior happens (especially in system
suspend).
So, this patch disables all eps in usbhsg_try_stop(). After disabling
eps by renesas_usbhs driver, since some functions will be called by
both a gadget and renesas_usbhs driver, renesas_usbhs driver should
protect uep->pipe. To protect uep->pipe easily, this patch adds a new
lock in struct usbhsg_uep.
Fixes: 2f98382dc ("usb: renesas_usbhs: Add Renesas USBHS Gadget")
Cc: <stable@vger.kernel.org> # v3.0+
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs/rcar3.c')
0 files changed, 0 insertions, 0 deletions