mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
phy: cpcap-usb: Fix flakey host idling and enumerating of devices
commit 049226b9fd7442149dcbcf55f15408f5973cceda upstream.
We must let the USB host idle things properly before we switch to debug
UART mode. Otherwise the USB host may never idle after disconnecting
devices, and that causes the next enumeration to be flakey.
Cc: Jacopo Mondi <[email protected]>
Cc: Marcel Partap <[email protected]>
Cc: Merlijn Wajer <[email protected]>
Cc: Michael Scott <[email protected]>
Cc: NeKit <[email protected]>
Cc: Pavel Machek <[email protected]>
Cc: Sebastian Reichel <[email protected]>
Acked-by: Pavel Machek <[email protected]>
Fixes: 6d6ce40f63 ("phy: cpcap-usb: Add CPCAP PMIC USB support")
Signed-off-by: Tony Lindgren <[email protected]>
Signed-off-by: Kishon Vijay Abraham I <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
73681018f0
commit
2deeba3623
1 changed files with 2 additions and 2 deletions
|
|
@ -283,13 +283,13 @@ static void cpcap_usb_detect(struct work_struct *work)
|
|||
return;
|
||||
}
|
||||
|
||||
cpcap_usb_try_musb_mailbox(ddata, MUSB_VBUS_OFF);
|
||||
|
||||
/* Default to debug UART mode */
|
||||
error = cpcap_usb_set_uart_mode(ddata);
|
||||
if (error)
|
||||
goto out_err;
|
||||
|
||||
cpcap_usb_try_musb_mailbox(ddata, MUSB_VBUS_OFF);
|
||||
|
||||
dev_dbg(ddata->dev, "set UART mode\n");
|
||||
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue