projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49d0f07
)
USB: add speed values for USB 3.0 and wireless controllers
author
Greg Kroah-Hartman
<
[email protected]
>
Thu, 14 Jan 2010 18:33:19 +0000
(10:33 -0800)
committer
Greg Kroah-Hartman
<
[email protected]
>
Wed, 20 Jan 2010 23:24:35 +0000
(15:24 -0800)
These controllers say "unknown" for their speed in sysfs, which
obviously isn't correct.
Reported-by: Kurt Garloff <
[email protected]
>
Cc: Sarah Sharp <
[email protected]
>
Cc: David Vrabel <
[email protected]
>
Cc: stable <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/core/sysfs.c
patch
|
blob
|
history
diff --git
a/drivers/usb/core/sysfs.c
b/drivers/usb/core/sysfs.c
index 485edf937f257ae846b921eae465f2655841f1b7..5f3908f6e2dc12f455b9036da9621478976a3dd9 100644
(file)
--- a/
drivers/usb/core/sysfs.c
+++ b/
drivers/usb/core/sysfs.c
@@
-115,6
+115,12
@@
show_speed(struct device *dev, struct device_attribute *attr, char *buf)
case USB_SPEED_HIGH:
speed = "480";
break;
+ case USB_SPEED_VARIABLE:
+ speed = "480";
+ break;
+ case USB_SPEED_SUPER:
+ speed = "5000";
+ break;
default:
speed = "unknown";
}