The /sys/kernel/debug/usb/devices file doesn't know about Wireless or SuperSpeed USB. This patch (as1416) teaches it. Signed-off-by: Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> CC: David Vrabel <david.vrabel@xxxxxxx> CC: Sarah Sharp <sarah.a.sharp@xxxxxxxxxxxxxxx> --- I wasn't sure what to put in the Wireless case. The string I chose has the disadvantage of not being a number, so it might confuse programs that try to parse it. If anyone has a better suggestion, let me know. Even the SuperSpeed case is (in theory) variable. But for now we don't support anything other than 5 billion bits per second. Index: usb-2.6/drivers/usb/core/devices.c =================================================================== --- usb-2.6.orig/drivers/usb/core/devices.c +++ usb-2.6/drivers/usb/core/devices.c @@ -66,8 +66,8 @@ #define ALLOW_SERIAL_NUMBER static const char *format_topo = -/* T: Bus=dd Lev=dd Prnt=dd Port=dd Cnt=dd Dev#=ddd Spd=ddd MxCh=dd */ -"\nT: Bus=%2.2d Lev=%2.2d Prnt=%2.2d Port=%2.2d Cnt=%2.2d Dev#=%3d Spd=%3s MxCh=%2d\n"; +/* T: Bus=dd Lev=dd Prnt=dd Port=dd Cnt=dd Dev#=ddd Spd=dddd MxCh=dd */ +"\nT: Bus=%2.2d Lev=%2.2d Prnt=%2.2d Port=%2.2d Cnt=%2.2d Dev#=%3d Spd=%-4s MxCh=%2d\n"; static const char *format_string_manufacturer = /* S: Manufacturer=xxxx */ @@ -520,11 +520,15 @@ static ssize_t usb_device_dump(char __us speed = "1.5"; break; case USB_SPEED_UNKNOWN: /* usb 1.1 root hub code */ case USB_SPEED_FULL: - speed = "12 "; break; + speed = "12"; break; case USB_SPEED_HIGH: speed = "480"; break; + case USB_SPEED_WIRELESS: /* Wireless has no real fixed speed */ + speed = "Wls"; break; + case USB_SPEED_SUPER: + speed = "5000"; break; default: - speed = "?? "; + speed = "??"; } data_end = pages_start + sprintf(pages_start, format_topo, bus->busnum, level, parent_devnum, -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html