On Wed, 2012-08-15 at 15:43 +0200, Bjørn Mork wrote:
> The ZTE (Vodafone) K5006-Z use the following
> interface layout:
> 
> 00 DIAG
> 01 secondary
> 02 modem
> 03 networkcard
> 04 storage
> 
> Ignoring interface #3 which is handled by the qmi_wwan
> driver.

At some point you should just start adding them with
USB_DEVICE_INTERFACE_NUMBER, no?  That's cleaner than the blacklisting
stuff IMHO, even though it does require more entries in the device
table.

Dan

> Cc: Thomas Schäfer <tschae...@t-online.de>
> Cc: <sta...@vger.kernel.org>
> Signed-off-by: Bjørn Mork <bj...@mork.no>
> ---
>  drivers/usb/serial/option.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/usb/serial/option.c b/drivers/usb/serial/option.c
> index 9930628..cc40f47 100644
> --- a/drivers/usb/serial/option.c
> +++ b/drivers/usb/serial/option.c
> @@ -886,6 +886,8 @@ static const struct usb_device_id option_ids[] = {
>       { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1010, 0xff, 0xff, 
> 0xff),
>         .driver_info = (kernel_ulong_t)&net_intf4_blacklist },
>       { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1012, 0xff, 0xff, 
> 0xff) },
> +     { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1018, 0xff, 0xff, 
> 0xff),
> +       .driver_info = (kernel_ulong_t)&net_intf3_blacklist },
>       { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1057, 0xff, 0xff, 
> 0xff) },
>       { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1058, 0xff, 0xff, 
> 0xff) },
>       { USB_DEVICE_AND_INTERFACE_INFO(ZTE_VENDOR_ID, 0x1059, 0xff, 0xff, 
> 0xff) },


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to