diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-11-17 21:19:38 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-11-29 09:19:03 -0500 |
commit | 8885a897c26b2f63e1bbb6fa7bd9da3a73a09113 (patch) | |
tree | 3a1620dba1a196b3b91f119a4e7870649d72b0c5 /drivers/usb | |
parent | f8eff0a06116aee127152674e9ea9c51aecf6b69 (diff) |
usb: renesas_usbhs: fixup signal the driver that cable was disconnected
current renesas_usbhs is using new style udc_start/stop from
af1d7056a5c1e5eaaf807ddd1423101db84668d0
(usb: gadget: renesas: convert to new style).
cable disconnected signal was needed.
This patch fixup it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/renesas_usbhs/mod_gadget.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/renesas_usbhs/mod_gadget.c b/drivers/usb/renesas_usbhs/mod_gadget.c index ef82274ce70b..f4b032ed326a 100644 --- a/drivers/usb/renesas_usbhs/mod_gadget.c +++ b/drivers/usb/renesas_usbhs/mod_gadget.c | |||
@@ -805,6 +805,13 @@ static int usbhsg_start(struct usbhs_priv *priv) | |||
805 | 805 | ||
806 | static int usbhsg_stop(struct usbhs_priv *priv) | 806 | static int usbhsg_stop(struct usbhs_priv *priv) |
807 | { | 807 | { |
808 | struct usbhsg_gpriv *gpriv = usbhsg_priv_to_gpriv(priv); | ||
809 | |||
810 | /* cable disconnect */ | ||
811 | if (gpriv->driver && | ||
812 | gpriv->driver->disconnect) | ||
813 | gpriv->driver->disconnect(&gpriv->gadget); | ||
814 | |||
808 | return usbhsg_try_stop(priv, USBHSG_STATUS_STARTED); | 815 | return usbhsg_try_stop(priv, USBHSG_STATUS_STARTED); |
809 | } | 816 | } |
810 | 817 | ||