wusb: pretty print new wireless USB devices when they connect
New code being pushed to linuxuwb.org requires this patch to connect WUSB devices. Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Родитель
5bb6e0ae8f
Коммит
83a0719673
|
@ -2028,6 +2028,7 @@ hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1,
|
||||||
int i, j, retval;
|
int i, j, retval;
|
||||||
unsigned delay = HUB_SHORT_RESET_TIME;
|
unsigned delay = HUB_SHORT_RESET_TIME;
|
||||||
enum usb_device_speed oldspeed = udev->speed;
|
enum usb_device_speed oldspeed = udev->speed;
|
||||||
|
char *speed, *type;
|
||||||
|
|
||||||
/* root hub ports have a slightly longer reset period
|
/* root hub ports have a slightly longer reset period
|
||||||
* (from USB 2.0 spec, section 7.1.7.5)
|
* (from USB 2.0 spec, section 7.1.7.5)
|
||||||
|
@ -2084,17 +2085,21 @@ hub_port_init (struct usb_hub *hub, struct usb_device *udev, int port1,
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
dev_info (&udev->dev,
|
type = "";
|
||||||
"%s %s speed USB device using %s and address %d\n",
|
switch (udev->speed) {
|
||||||
(udev->config) ? "reset" : "new",
|
|
||||||
({ char *speed; switch (udev->speed) {
|
|
||||||
case USB_SPEED_LOW: speed = "low"; break;
|
case USB_SPEED_LOW: speed = "low"; break;
|
||||||
case USB_SPEED_FULL: speed = "full"; break;
|
case USB_SPEED_FULL: speed = "full"; break;
|
||||||
case USB_SPEED_HIGH: speed = "high"; break;
|
case USB_SPEED_HIGH: speed = "high"; break;
|
||||||
|
case USB_SPEED_VARIABLE:
|
||||||
|
speed = "variable";
|
||||||
|
type = "Wireless ";
|
||||||
|
break;
|
||||||
default: speed = "?"; break;
|
default: speed = "?"; break;
|
||||||
}; speed;}),
|
}
|
||||||
udev->bus->controller->driver->name,
|
dev_info (&udev->dev,
|
||||||
udev->devnum);
|
"%s %s speed %sUSB device using %s and address %d\n",
|
||||||
|
(udev->config) ? "reset" : "new", speed, type,
|
||||||
|
udev->bus->controller->driver->name, udev->devnum);
|
||||||
|
|
||||||
/* Set up TT records, if needed */
|
/* Set up TT records, if needed */
|
||||||
if (hdev->tt) {
|
if (hdev->tt) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче