Re: [PATCH] Add support for Mobilcom Debitel USB UMTS Surf-Stick to option driver

Oliver Neukum
2009-11-22T08:20:10Z

Am Sonntag, 22. November 2009 09:08:44 schrieb Gernot Hillier:
> In addition, this device seems to ignore setting of RTS/DTR by option_send_
> setup and doesn't answer the usb_control_msg leading to a 5 s timeout
> (USB_CTRL_SET_TIMEOUT) in userspace open() and other operations. As this
> confused several impatient userspace applications like Minicom and
> ModemManager, I decided to reduce the timeout to more reasonable 1000 ms.
> I don't think the usual USB GSM stick needs longer, so this should be
> safe.

Unfortunately the 5s timeout comes from the USB spec for control
messages. So reducing it is a serious matter. In this case I'd prefer
if you introduce a special case for these devices and fail the operation
without doing any IO.

Regards
Oliver