Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e907a6cf authored by Sriharsha Allenki's avatar Sriharsha Allenki
Browse files

usb: dwc3-msm: Set vbus_active in peripheral only mode



The recent change in commit 0b74c9aa ("usb: dwc3: ep0: Fail
enqueue() when racing with vbus_sess disconnect") added a check
to prevent queuing on ep0 if vbus_active is unset. However on
some configurations if dwc3 is configured as peripheral-only, this
flag is not set. In those cases, simply set vbus_active to true.

Change-Id: Ica633cb9f0baefb779a516c3a32a6b92f90ced24
Fixes: 0b74c9aa ("usb: dwc3: ep0: Fail enqueue() when racing with vbus_sess disconnect")
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
parent 228ae040
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3835,6 +3835,7 @@ static int dwc3_msm_probe(struct platform_device *pdev)
			/* fall through */
		default:
			mdwc->vbus_active = true;
			dwc->vbus_active = true;
			break;
		}