USB: Add optional match for interface class to dynamic ID facility
authorJosua Dietze <digidietze@draisberghof.de>
Sun, 23 Oct 2011 12:22:29 +0000 (14:22 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Nov 2011 18:18:29 +0000 (10:18 -0800)
commitff231db811803ef3292532d1d87eaf6882a26cc4
treec200ed75706d3b42970d7693dbfbd6c790207714
parent332960bd7eb48ef21923b4876e7fe3487d6bf11c
USB: Add optional match for interface class to dynamic ID facility

When adding the ID of a composite device dynamically to a driver, all
hitherto unbound interfaces are bound to this driver regardless of their
class, which may not be intended.
The patch adds the option to tell the targeted interface class to a driver
via the "new_id" attribute, in addition to the device ID.
Also, it appends the ABI documentation accordingly.

Example:
$ echo "1234 2a2a ff" >/sys/bus/usb-serial/drivers/option1/new_id
will bind only vendor-specific interfaces to the 3G driver.

Signed-off-by: Josua Dietze <digidietze@draisberghof.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Documentation/ABI/testing/sysfs-bus-usb
drivers/usb/core/driver.c