Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75f43ac commit 42b32b1Copy full SHA for 42b32b1
drivers/usb/dwc2/core_intr.c
@@ -307,6 +307,7 @@ static void dwc2_handle_conn_id_status_change_intr(struct dwc2_hsotg *hsotg)
307
static void dwc2_handle_session_req_intr(struct dwc2_hsotg *hsotg)
308
{
309
int ret;
310
+ u32 hprt0;
311
312
/* Clear interrupt */
313
dwc2_writel(hsotg, GINTSTS_SESSREQINT, GINTSTS);
@@ -328,6 +329,13 @@ static void dwc2_handle_session_req_intr(struct dwc2_hsotg *hsotg)
328
329
* established
330
*/
331
dwc2_hsotg_disconnect(hsotg);
332
+ } else {
333
+ /* Turn on the port power bit. */
334
+ hprt0 = dwc2_read_hprt0(hsotg);
335
+ hprt0 |= HPRT0_PWR;
336
+ dwc2_writel(hsotg, hprt0, HPRT0);
337
+ /* Connect hcd after port power is set. */
338
+ dwc2_hcd_connect(hsotg);
339
}
340
341
0 commit comments