OSDN Git Service

usb: dwc3: Suspend USB SS PHY in host mode with device connect case
authorMayank Rana <mrana@codeaurora.org>
Tue, 15 Aug 2017 17:41:28 +0000 (10:41 -0700)
committerAjay Agarwal <ajaya@codeaurora.org>
Thu, 25 Jan 2018 10:11:25 +0000 (15:41 +0530)
commitc2e482aa78801d00233fbd041a90748ef6f3b660
treededecd6e769dd5eaa4064ffa08f86bcc0ea324b4
parentf56ee1db81df6aa9432b7a62eaa8f4dc4a750e6a
usb: dwc3: Suspend USB SS PHY in host mode with device connect case

Currently driver is not suspending USB Super Speed PHY (here USB QMP
PHY) with below usecases.
a. USB super speed HUB is connected and going into bus suspend
b. USB super speed HUB is connected and having USB super speed device
connected on HUB's downstream port

This results into no USB super speed device connect or removal being
detected as autonomous mode is not being enabled with USB QMP PHY.
Fix these issues by suspending USB SS PHY in host mode with device
connect (i.e. HUB or HUB with USB SS device connected) case.

Change-Id: I469b02f0845228f55d9253e7683ea3c133fd9542
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
drivers/usb/dwc3/dwc3-msm.c