Hi
kernel-4.9.17 is hanging in a readl() forever when calling rmmod
dwc3-of-simple
root@L:~# rmmod dwc3-of-simple
[ 48.980006] xhci-hcd xhci-hcd.1.auto: remove, state 1
[ 48.980094] usb usb4: USB disconnect, device number 1
[ 48.985172] xhci-hcd xhci-hcd.1.auto: USB bus 4 deregistered
[ 48.989257] xhci-hcd xhci-hcd.1.auto: remove, state 1
[ 48.994850] usb usb3: USB disconnect, device number 1
[ 49.001518] xhci-hcd xhci-hcd.1.auto: USB bus 3 deregistered
[ 49.005409] xhci-hcd xhci-hcd.0.auto: remove, state 1
[ 49.010691] usb usb2: USB disconnect, device number 1
<NOTHING happens for ages>
When rmmod'ing dwc3 first, it all works:
root@L:/# rmmod dwc3
[ 53.163991] xhci-hcd xhci-hcd.1.auto: remove, state 1
[ 53.164073] usb usb4: USB disconnect, device number 1
[ 53.169264] xhci-hcd xhci-hcd.1.auto: USB bus 4 deregistered
[ 53.173109] xhci-hcd xhci-hcd.1.auto: remove, state 1
[ 53.178952] usb usb3: USB disconnect, device number 1
[ 53.184900] xhci-hcd xhci-hcd.1.auto: USB bus 3 deregistered
[ 53.189322] xhci-hcd xhci-hcd.0.auto: remove, state 1
[ 53.194544] usb usb2: USB disconnect, device number 1
[ 53.200622] xhci-hcd xhci-hcd.0.auto: USB bus 2 deregistered
[ 53.204542] xhci-hcd xhci-hcd.0.auto: remove, state 1
[ 53.210376] usb usb1: USB disconnect, device number 1
[ 53.216305] xhci-hcd xhci-hcd.0.auto: USB bus 1 deregistered
root@L:/# rmmod dwc3-of-simple
root@L:/#
After adding lots of printk's I found out that it's stuck in a
readl(&xhci->op_regs->status) in
http://lxr.free-electrons.com/source/drivers/usb/host/xhci.c#L91
How to troubleshoot this further?
Someone said that this might indicate missing module dependencies but
I'm afraid that's beyond me since the code is in Linux for ages and
there are no exported symbols in dwc3-of-simple.c or dwc3/core.c
Thank you
Thomas
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html