Skip to contentSkip to conversation

xhci: handle port status events for removed USB3 hcd

PATCH New Mathias Nyman 1 participant 1 message Oct 1, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/2 xhci: handle port status events for removed USB3 hcd

Quoted 7 lines · Jack Pham

Hi Mathias,

Quoted 5 lines
Quoted 1 line

Jack, Peter, do these patches solve the remove issues you are seeing?

At my two USB3 platforms, only apply the 1st patch can fix my problem. Maybe my USB3 port change interrupt occurs always before removing USB2 HCD.

It's possible yes.

Quoted 8 lines
Quoted 1 line

Peter

Ditto. I think the xhci_irq() is getting triggered by something during usb_remove_hcd() (usb_disconnect on the root hub?) but is able to complete before it returns. That is, the NULL pointer dereference is resolved yet I don't see that "ignore port event for removed USB3 hcd" message at all.

Quoted 8 lines

Regardless, it's good to have here just in case, so

Will you be sending this as separate patches for -rc vs -stable?

Thanks,
Jack

Thanks, adding tested-by tags.

I'll send them to -rc with stable tag, and then later send a backported version to older kernel once I have a upstream commit ID I can refer to.

Thanks
-Mathias