MUSB interrupt storm on device removal
Hi,
Quoted 20 lines · Måns Rullgård
I have a strange problem with the musb driver in host mode on AM3358 (beaglebone) hardware. If I connect a multi-port serial adapter and open two or more of the ttys, then unplug the device, an interrupt storm ensues that makes the system completely unresponsive until the watchdog resets it. Enabling some debug messages, I get this repeated endlessly:
musb-hdrc musb-hdrc.1: usbintr (0) epintr(1c0000)
musb-hdrc musb-hdrc.1: end 2 RX proto error
musb-hdrc musb-hdrc.1: ... next ep2 RX urb72aabc13
musb-hdrc musb-hdrc.1: <-- hw2 urb72aabc13spd3 dev4 ep3inh_addr02h_port00bytes 4096 musb-hdrc musb-hdrc.1: RXCSR2 := 2020
musb-hdrc musb-hdrc.1: end 3 RX proto error
musb-hdrc musb-hdrc.1: ... next ep3 RX urb94c2cc43
musb-hdrc musb-hdrc.1: <-- hw3 urb94c2cc43spd3 dev4 ep2inh_addr02h_port00bytes 4096 musb-hdrc musb-hdrc.1: RXCSR3 := 2020
musb-hdrc musb-hdrc.1: end 4 RX proto error
musb-hdrc musb-hdrc.1: ... next ep4 RX urbcbdc39c6
musb-hdrc musb-hdrc.1: <-- hw4 urbcbdc39c6spd3 dev4 ep5inh_addr02h_port00bytes 4096 musb-hdrc musb-hdrc.1: RXCSR4 := 2020
Quoted 4 lines
This happens with both a two-port FTDI serial adapter and a Simcom GSM modem (Qualcomm based) using the "option" driver. In both cases, the problem occurs only if two or more of the ttys are opened when the device is unplugged.
Please help me to understand the test case so that I can try to replicate the issue - if I connect a multi-port FTDI adapter, use cat command to open more than one port then unplug the adapter, I should see the flooding debug messages?
On which kernel version do you see the problem?
Regards,
-Bin.