FAILED: patch "[PATCH] usb: dwc2: Fix session request interrupt handler" failed to apply to 4.4-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 4.4-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 42b32b164acecd850edef010915a02418345a033 Mon Sep 17 00:00:00 2001
From: Artur Petrosyan <[email protected]>
Date: Thu, 8 Apr 2021 13:45:49 +0400
Subject: [PATCH] usb: dwc2: Fix session request interrupt handler
According to programming guide in host mode, port
power must be turned on in session request
interrupt handlers.
Fixes 21795c826a45 ("usb: dwc2: exit hibernation on session request")
Cc <[email protected]>
Signed-off-by Artur Petrosyan <[email protected]>
Signed-off-by Greg Kroah-Hartman <[email protected]>
drivers/usb/dwc2/core_intr.c +8 -0
@@ -307,6 +307,7 @@ static void dwc2_handle_conn_id_status_change_intr(struct dwc2_hsotg *hsotg)static void dwc2_handle_session_req_intr (struct dwc2_hsotg *hsotg) {int ret; +u32 hprt0;/* Clear interrupt */ dwc2_writel (hsotg,GINTSTS_SESSREQINT ,GINTSTS );
@@ -328,6 +329,13 @@ static void dwc2_handle_session_req_intr(struct dwc2_hsotg *hsotg)* established */ dwc2_hsotg_disconnect (hsotg); + }else { +/* Turn on the port power bit. */ + hprt0 =dwc2_read_hprt0 (hsotg); + hprt0 |=HPRT0_PWR ; +dwc2_writel (hsotg, hprt0,HPRT0 ); +/* Connect hcd after port power is set. */ +dwc2_hcd_connect (hsotg); } }