diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2010-09-13 10:43:25 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-10-22 13:21:40 -0400 |
commit | 834e2312e7a384877a876b0d34dffc3046c96bcb (patch) | |
tree | 992afc42022690e2aa08461abf4aef094de467e4 /drivers/usb/core | |
parent | d3134c3b1a5d2a9dca2ddacacb5d08fad7941d8c (diff) |
USB: teach "devices" file about Wireless and SuperSpeed USB
The /sys/kernel/debug/usb/devices file doesn't know about Wireless or
SuperSpeed USB. This patch (as1416b) teaches it, and updates the
Documentation/usb/proc_sub_info.txt file accordingly.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: David Vrabel <david.vrabel@csr.com>
CC: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/devices.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/usb/core/devices.c b/drivers/usb/core/devices.c index 3449742c00e1..ddb4dc980923 100644 --- a/drivers/usb/core/devices.c +++ b/drivers/usb/core/devices.c | |||
@@ -66,8 +66,8 @@ | |||
66 | #define ALLOW_SERIAL_NUMBER | 66 | #define ALLOW_SERIAL_NUMBER |
67 | 67 | ||
68 | static const char *format_topo = | 68 | static const char *format_topo = |
69 | /* T: Bus=dd Lev=dd Prnt=dd Port=dd Cnt=dd Dev#=ddd Spd=ddd MxCh=dd */ | 69 | /* T: Bus=dd Lev=dd Prnt=dd Port=dd Cnt=dd Dev#=ddd Spd=dddd MxCh=dd */ |
70 | "\nT: Bus=%2.2d Lev=%2.2d Prnt=%2.2d Port=%2.2d Cnt=%2.2d Dev#=%3d Spd=%3s MxCh=%2d\n"; | 70 | "\nT: Bus=%2.2d Lev=%2.2d Prnt=%2.2d Port=%2.2d Cnt=%2.2d Dev#=%3d Spd=%-4s MxCh=%2d\n"; |
71 | 71 | ||
72 | static const char *format_string_manufacturer = | 72 | static const char *format_string_manufacturer = |
73 | /* S: Manufacturer=xxxx */ | 73 | /* S: Manufacturer=xxxx */ |
@@ -520,11 +520,14 @@ static ssize_t usb_device_dump(char __user **buffer, size_t *nbytes, | |||
520 | speed = "1.5"; break; | 520 | speed = "1.5"; break; |
521 | case USB_SPEED_UNKNOWN: /* usb 1.1 root hub code */ | 521 | case USB_SPEED_UNKNOWN: /* usb 1.1 root hub code */ |
522 | case USB_SPEED_FULL: | 522 | case USB_SPEED_FULL: |
523 | speed = "12 "; break; | 523 | speed = "12"; break; |
524 | case USB_SPEED_WIRELESS: /* Wireless has no real fixed speed */ | ||
524 | case USB_SPEED_HIGH: | 525 | case USB_SPEED_HIGH: |
525 | speed = "480"; break; | 526 | speed = "480"; break; |
527 | case USB_SPEED_SUPER: | ||
528 | speed = "5000"; break; | ||
526 | default: | 529 | default: |
527 | speed = "?? "; | 530 | speed = "??"; |
528 | } | 531 | } |
529 | data_end = pages_start + sprintf(pages_start, format_topo, | 532 | data_end = pages_start + sprintf(pages_start, format_topo, |
530 | bus->busnum, level, parent_devnum, | 533 | bus->busnum, level, parent_devnum, |