[PATCH] USB: add dynamic id functionality to USB core
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 16 Nov 2005 21:41:28 +0000 (13:41 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 4 Jan 2006 21:48:32 +0000 (13:48 -0800)
commit733260ff9c45bd4db60f45d17e8560a4a68dff4d
treee7f09a9a9e2d7a9f22288c9777f7b03906a89e20
parentddae41be6145f5f9cb4e6df35661a09121b90672
[PATCH] USB: add dynamic id functionality to USB core

Echo the usb vendor and product id to the "new_id" file in the driver's
sysfs directory, and then that driver will be able to bind to a device
with those ids if it is present.

Example:
echo 0557 2008 > /sys/bus/usb/drivers/foo_driver/new_id
adds the hex values 0557 and 2008 to the device id table for the foo_driver.

Note, usb-serial drivers do not currently work with this capability yet.
usb-storage also might have some oddities.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/driver.c
include/linux/usb.h