diff options
| author | 2014-01-23 23:12:29 +0200 | |
|---|---|---|
| committer | 2014-02-07 10:54:30 -0800 | |
| commit | b7945b77cd03094458f3624bc82a27e0d36e75d0 (patch) | |
| tree | 55fa77ff4d051b90a69e2fca601dea3c3c7562c1 /drivers/usb/core/generic.c | |
| parent | staging/usbip: Change vhci_hcd store_attach() device information message to include speed string (diff) | |
| download | linux-dev-b7945b77cd03094458f3624bc82a27e0d36e75d0.tar.xz linux-dev-b7945b77cd03094458f3624bc82a27e0d36e75d0.zip | |
staging: usbip: convert usbip-host driver to usb_device_driver
This driver was previously an interface driver. Since USB/IP
exports a whole device, not just an interface, it would make
sense to be a device driver.
This patch also modifies the way userspace sees and uses a
shared device:
* the usbip_status file is no longer created for interface 0, but for
the whole device (such as
/sys/devices/pci0000:00/0000:00:01.2/usb1/1-1/usbip_status).
* per interface information, such as interface class or protocol, is
no longer sent/received; only device specific information is
transmitted.
* since the driver was moved one level below in the USB architecture,
there is no need to bind/unbind each interface, just the device as a
whole.
Signed-off-by: Valentina Manea <valentina.manea.m@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/generic.c')
| -rw-r--r-- | drivers/usb/core/generic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/core/generic.c b/drivers/usb/core/generic.c index acbfeb0a0119..358ca8dd784f 100644 --- a/drivers/usb/core/generic.c +++ b/drivers/usb/core/generic.c @@ -155,6 +155,7 @@ int usb_choose_configuration(struct usb_device *udev) } return i; } +EXPORT_SYMBOL_GPL(usb_choose_configuration); static int generic_probe(struct usb_device *udev) { |
