]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial-generic: use a single set of device IDs
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 31 May 2012 21:03:52 +0000 (17:03 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Jun 2012 21:01:56 +0000 (14:01 -0700)
commit7c7d24fb52f146e1164aab0f0a963a2fbaf4e907
tree8927ef05a82096047c25a04f1bc7ca3d0f480dbe
parent63e9e6c4af5288c593ec1ca69f313fb9585dd6c6
USB: serial-generic: use a single set of device IDs

The usb-serial-generic driver uses different device IDs for its USB
matching and its serial matching.  This can lead to problems: The
driver can end up getting bound to a USB interface without being
allowed to bind to the corresponding serial port.

This patch (as1557) fixes the problem by using the same device ID
table (the one that can be altered by the "vendor=" and "product="
module parameters) for both purposes.  The unused table is removed.
Now the driver will bind only to the intended devices.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Bjørn Mork <bjorn@mork.no>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/generic.c