From: Bjørn Mork Date: Sat, 19 May 2012 17:19:48 +0000 (+0200) Subject: USB: cdc-wdm: Add Vodafone/Huawei K5005 support X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=de102ef41f24a4c251c4a3838796bb27557d4d93;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git USB: cdc-wdm: Add Vodafone/Huawei K5005 support Tested-by: Thomas Schäfer Signed-off-by: Bjørn Mork Cc: stable Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/class/cdc-wdm.c b/drivers/usb/class/cdc-wdm.c index ea8b304f0e8..8fd398dffce 100644 --- a/drivers/usb/class/cdc-wdm.c +++ b/drivers/usb/class/cdc-wdm.c @@ -55,6 +55,15 @@ static const struct usb_device_id wdm_ids[] = { .bInterfaceSubClass = 1, .bInterfaceProtocol = 9, /* NOTE: CDC ECM control interface! */ }, + { + /* Vodafone/Huawei K5005 (12d1:14c8) and similar modems */ + .match_flags = USB_DEVICE_ID_MATCH_VENDOR | + USB_DEVICE_ID_MATCH_INT_INFO, + .idVendor = HUAWEI_VENDOR_ID, + .bInterfaceClass = USB_CLASS_VENDOR_SPEC, + .bInterfaceSubClass = 1, + .bInterfaceProtocol = 57, /* NOTE: CDC ECM control interface! */ + }, { } };