Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233562
b: refs/heads/master
c: acb52cb
h: refs/heads/master
v: v3
  • Loading branch information
Maciej Szmigiero authored and Greg Kroah-Hartman committed Feb 17, 2011
1 parent bdc8463 commit cd7f5ac
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3c18e30f87ac5466bddbb05cf955605efd7db025
refs/heads/master: acb52cb1613e1d3c8a8c650717cc51965c60d7d4
12 changes: 12 additions & 0 deletions trunk/drivers/usb/serial/visor.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <linux/uaccess.h>
#include <linux/usb.h>
#include <linux/usb/serial.h>
#include <linux/usb/cdc.h>
#include "visor.h"

/*
Expand Down Expand Up @@ -479,6 +480,17 @@ 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)
return -ENODEV;

if (serial->dev->actconfig->desc.bConfigurationValue != 1) {
dev_err(&serial->dev->dev, "active config #%d != 1 ??\n",
serial->dev->actconfig->desc.bConfigurationValue);
Expand Down

0 comments on commit cd7f5ac

Please sign in to comment.