patch "xhci: do not report PLC when link is in internal resume state" added to usb-linus
Subsystems (3)
This is a note to let you know that I've just added the patch titled
xhci: do not report PLC when link is in internal resume state
to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-linus branch.
The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)
The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.
If you have any questions about this process, please let me know.
Quoted 1 line
From
aca3a0489ac019b58cf32794d5362bb284cb9b94Mon Sep 17 00:00:00 2001
From: Zhuang Jin Can <[email protected]>
Date: Tue, 21 Jul 2015 17:20:31 +0300
Subject: xhci: do not report PLC when link is in internal resume state
Port link change with port in resume state should not be reported to usbcore, as this is an internal state to be handled by xhci driver. Reporting PLC to usbcore may cause usbcore clearing PLC first and port change event irq won't be generated.
--- drivers/usb/host/xhci-hub.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
drivers/usb/host/xhci-hub.c +8 -1
@@ -591,7 +591,14 @@ static u32 xhci_get_port_status(struct usb_hcd *hcd, status |=USB_PORT_STAT_C_RESET <<16 ;/* USB3.0 only */ if (hcd->speed ==HCD_USB3 ) { -if ((raw_port_status &PORT_PLC )) +/* Port link change with port in resume state should not be +* reported to usbcore, as this is an internal state to be +* handled by xhci driver. Reporting PLC to usbcore may +* cause usbcore clearing PLC first and port change event +* irq won't be generated. +*/ +if ((raw_port_status &PORT_PLC ) && + (raw_port_status &PORT_PLS_MASK ) !=XDEV_RESUME ) status |=USB_PORT_STAT_C_LINK_STATE <<16 ;if ((raw_port_status &PORT_WRC )) status |=USB_PORT_STAT_C_BH_RESET <<16 ;
Signature · 1 line
2.4.6