]> git.karo-electronics.de Git - karo-tx-linux.git/commit
USB: option: fix when the driver is loaded incorrectly for some Huawei devices.
authorma rui <m00150988@huawei.com>
Mon, 1 Nov 2010 03:32:18 +0000 (11:32 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:33:04 +0000 (13:33 -0800)
commit80ebd076aef99ba687f564dfcfc2efa93d4a60e4
treeb414aff5ec5c82474e132a1ab0f07d0814471244
parentf3c0230f138ef73471dd1ab9ac49410ebfe7c9c1
USB: option: fix when the driver is loaded incorrectly for some Huawei devices.

commit 58c0d9d70109bd7e82bdb9517007311a48499960 upstream.

When huawei datacard with PID 0x14AC is insterted into Linux system, the
present kernel will load the "option" driver to all the interfaces. But
actually, some interfaces run as other function and do not need "option"
driver.

In this path, we modify the id_tables, when the PID is 0x14ac ,VID is
0x12d1, Only when the interface's Class is 0xff,Subclass is 0xff, Pro is
0xff, it does need "option" driver.

Signed-off-by: ma rui <m00150988@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/option.c