From: Greg Kroah-Hartman Date: Thu, 14 Jan 2010 18:33:19 +0000 (-0800) Subject: USB: add speed values for USB 3.0 and wireless controllers X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b132b04e193908a94d95065d0628f8fb0159cc55;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git USB: add speed values for USB 3.0 and wireless controllers These controllers say "unknown" for their speed in sysfs, which obviously isn't correct. Reported-by: Kurt Garloff Cc: Sarah Sharp Cc: David Vrabel Cc: stable Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/sysfs.c b/drivers/usb/core/sysfs.c index 485edf937f25..5f3908f6e2dc 100644 --- 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"; }