USB: Ignore storage device in modem mode on DWN-652
authorPascal Terjan <pterjan@mandriva.com>
Thu, 16 Apr 2009 17:00:45 +0000 (19:00 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Jun 2009 04:44:41 +0000 (21:44 -0700)
commitc5be1b52d9ea6ede4931691bf9f0bd454515aa52
tree7094af3b339a6c3babc039f1984250902d386f1f
parentcc71329b3b89b4a5be849b617f2c4f151f0b9213
USB: Ignore storage device in modem mode on DWN-652

D-Link DWN-652 in Modem mode exposes 3 interfaces
- First one is the USB storage one
- Second one is for both control and connection
- Third one is unknown

This patch avoids usb-storage trying to switch again when already in
modem mode, and exposes only 2 ttyUSB instead of 3 by not attaching
to the storage interface

Signed-off-by: Pascal Terjan <pterjan@mandriva.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/option.c
drivers/usb/storage/option_ms.c
drivers/usb/storage/unusual_devs.h