Re: option driver crashes on modem removal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Oliver Neukum <oneukum@xxxxxxxx> writes:

>> I hope some of the USB experts can tell us what the correct behaviour
>> is
>> here.  Should the driver treat EPROTO like ESHUTDOWN?  Or should the
>> host controller use some ESHUTDOWN instead?
>
> No. ESHUTDOWN is reserved for the removal of the HC.

Then I have to ask: Why do I see ESHUTDOWN when I pull the modem from
one of my ehci-pci ports?


> The driver that does handle it in an exemplary manner is HID.
>
> You ought to limit the number of immediate retries to a very low
> number, then use a timer with exponential backoff and then proceed
> to reset, if applicable.
>
> Detection of a hot unplug is not immediate. It may take a few hundred
> ms.

Sounds reasonable. I guess this should be solved for all USB serial
drivers having an interrupt in callback.

Bjørn
--
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



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux