Re: Slow mobile broadband detection



Wow, fantastic. I'll let you know something when I'll be able to check
this (next week).

Many thanks.

2011/6/30 Dan Williams <dcbw redhat com>:
> On Sun, 2011-06-19 at 15:48 +0200, D. Guandalino wrote:
>> Hi, any news?
>
> If you're able to test a kernel patch, try this for the option driver.
> If that works for you I'll submit it upstream.
>
> diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
> index 4e7d3b4..bcd6e90 100644
> --- a/drivers/usb/serial/option.c
> +++ b/drivers/usb/serial/option.c
> @@ -441,6 +441,13 @@ static const struct option_blacklist_info alcatel_x200_blacklist = {
>        .reason = OPTION_BLACKLIST_SENDSETUP
>  };
>
> +static const u8 zte_0037_no_sendsetup[] = { 0, 1 };
> +static const struct option_blacklist_info zte_0037_blacklist = {
> +       .infolen = ARRAY_SIZE(zte_0037_no_sendsetup),
> +       .ifaceinfo = zte_0037_no_sendsetup,
> +       .reason = OPTION_BLACKLIST_SENDSETUP
> +};
> +
>  static const struct usb_device_id option_ids[] = {
>        { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_COLT) },
>        { USB_DEVICE(OPTION_VENDOR_ID, OPTION_PRODUCT_RICOLA) },
> @@ -671,7 +678,9 @@ static const struct usb_device_id option_ids[] = {
>        { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0032, 0xff, 0xff, 0xff) },
>        { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0033, 0xff, 0xff, 0xff) },
>        { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0034, 0xff, 0xff, 0xff) },
> -       { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0037, 0xff, 0xff, 0xff) },
> +       { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0037, 0xff, 0xff, 0xff),
> +         .driver_info = (kernel_ulong_t)&zte_0037_blacklist
> +       },
>        { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0038, 0xff, 0xff, 0xff) },
>        { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0039, 0xff, 0xff, 0xff) },
>        { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x0040, 0xff, 0xff, 0xff) },
>
>
>


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