New version of patch which autodetects devices with ACM class.
Tested on Galaxy Spica.
Signed-off-by: Maciej Szmigiero <mhej@xxxxx>
diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c[...]
index 15a5d89..e1c4527 100644
--- a/drivers/usb/serial/visor.c
+++ b/drivers/usb/serial/visor.c
@@ -479,6 +480,15 @@ static int visor_probe(struct usb_serial *serial,
dbg("%s", __func__);
+ /* some Samsung Android phones in modem mode have the same ID */
+ /* as SPH-I500, but they are ACM devices, so dont bind to them */
+ if ((id->idVendor == SAMSUNG_VENDOR_ID)&&
+ (id->idProduct == SAMSUNG_SPH_I500_ID)&&
+ (serial->dev->descriptor.bDeviceClass == USB_CLASS_COMM)&&
+ (serial->dev->descriptor.bDeviceSubClass ==
+ USB_CDC_SUBCLASS_ACM))