usb: dwc3-msm: adapt enum otg_state to drd_state
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
This commit is contained in:
parent
4b5255f5eb
commit
7f0b81a71f
1 changed files with 1 additions and 1 deletions
|
@ -2002,7 +2002,7 @@ static int dwc3_msm_prepare_suspend(struct dwc3_msm *mdwc)
|
|||
dwc3_msm_read_reg(mdwc->base, QSCRATCH_USB30_STS_REG));
|
||||
/* Mark fatal error for host mode or USB bus suspend case */
|
||||
if (mdwc->in_host_mode || (mdwc->vbus_active
|
||||
&& mdwc->otg_state == OTG_STATE_B_SUSPEND)) {
|
||||
&& mdwc->drd_state == DRD_STATE_PERIPHERAL_SUSPEND)) {
|
||||
queue_work(mdwc->dwc3_wq, &mdwc->resume_work);
|
||||
dev_err(mdwc->dev, "could not transition HS PHY to L2\n");
|
||||
return -EBUSY;
|
||||
|
|
Loading…
Add table
Reference in a new issue