From: Mathias Nyman Date: Thu, 10 Dec 2015 07:59:27 +0000 (+0200) Subject: usb: show speed "10000" in sysfs for USB 3.1 SuperSpeedPlus devices X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b2316645ca5ea93eb8f637f57199fbbe88bee07d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git usb: show speed "10000" in sysfs for USB 3.1 SuperSpeedPlus devices The same way as SuperSpeed devices show "5000" as device speed we wan't to show "10000" as the default speed for SuperSpeedPlus devices in sysfs. Signed-off-by: Mathias Nyman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/sysfs.c b/drivers/usb/core/sysfs.c index 65b6e6b84043..f195320d35c0 100644 --- a/drivers/usb/core/sysfs.c +++ b/drivers/usb/core/sysfs.c @@ -141,6 +141,9 @@ static ssize_t speed_show(struct device *dev, struct device_attribute *attr, case USB_SPEED_SUPER: speed = "5000"; break; + case USB_SPEED_SUPER_PLUS: + speed = "10000"; + break; default: speed = "unknown"; }