2013-03-13 18:24:48

by Manoj Iyer

[permalink] [raw]
Subject: [PATCH 0/1] USB: Added quirk to recognize GE0301 3G modem as an interface.

From: Manoj Iyer <[email protected]>

This patch enables GE0301 3G modem as an interface, the patch has been
part of the Ubuntu kernel for a while but I forgot to upstream.
Test details can be found in the bug http://bugs.launchpad.net/bugs/348861

Please consider this patch for upstream.

Manoj Iyer (1):
USB: Added quirk to recognize GE0301 3G modem as an interface.

drivers/usb/storage/unusual_devs.h | 7 +++++++
1 file changed, 7 insertions(+)

--
1.7.9.5


2013-03-13 18:25:57

by Manoj Iyer

[permalink] [raw]
Subject: [PATCH 1/1] USB: Added quirk to recognize GE0301 3G modem as an interface.

From: Manoj Iyer <[email protected]>

Signed-off-by: Manoj Iyer <[email protected]>
Reported-by: Timo Aaltonen <[email protected]>
Original-author: Timo Aaltonen <[email protected]>

BugLink: http://bugs.launchpad.net/bugs/348861
---
drivers/usb/storage/unusual_devs.h | 7 +++++++
1 file changed, 7 insertions(+)

diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h
index 72923b5..f31a6f9 100644
--- a/drivers/usb/storage/unusual_devs.h
+++ b/drivers/usb/storage/unusual_devs.h
@@ -1169,6 +1169,13 @@ UNUSUAL_DEV( 0x0af0, 0x6971, 0x0000, 0x9999,
USB_SC_DEVICE, USB_PR_DEVICE, option_ms_init,
0),

+/* Reported by Timo Aaltonen <[email protected]> */
+UNUSUAL_DEV( 0x0af0, 0x7011, 0x0000, 0x9999,
+ "Option",
+ "Mass Storage",
+ USB_SC_DEVICE, USB_PR_DEVICE, option_ms_init,
+ 0 ),
+
/* Reported by F. Aben <[email protected]>
* This device (wrongly) has a vendor-specific device descriptor.
* The entry is needed so usb-storage can bind to it's mass-storage
--
1.7.9.5

2013-03-13 18:51:23

by Bjørn Mork

[permalink] [raw]
Subject: Re: [PATCH 1/1] USB: Added quirk to recognize GE0301 3G modem as an interface.

[email protected] writes:

> +/* Reported by Timo Aaltonen <[email protected]> */
> +UNUSUAL_DEV( 0x0af0, 0x7011, 0x0000, 0x9999,
> + "Option",
> + "Mass Storage",
> + USB_SC_DEVICE, USB_PR_DEVICE, option_ms_init,
> + 0 ),
> +
> /* Reported by F. Aben <[email protected]>
> * This device (wrongly) has a vendor-specific device descriptor.
> * The entry is needed so usb-storage can bind to it's mass-storage


This device is already supported by the default usb_modeswitch
configuration:

bjorn@nemi:~$ tar zxOvf /usr/share/usb_modeswitch/configPack.tar.gz 0af0:7011
0af0:7011
# Option HSO device

TargetClass=0xff

MessageContent="55534243785634120100000080000601000000000000000000000000000000"

NoDriverLoading=1


Install the usb-modeswitch package and you're done. No need to patch
the kernel for this.


Bjørn