]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
usb: show speed "10000" in sysfs for USB 3.1 SuperSpeedPlus devices
authorMathias Nyman <mathias.nyman@linux.intel.com>
Thu, 10 Dec 2015 07:59:27 +0000 (09:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Jan 2016 04:16:52 +0000 (20:16 -0800)
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 <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/sysfs.c

index 65b6e6b840431a7b91184fccd110390678e3bb8e..f195320d35c0a8a10238f82907fb300626b5ce88 100644 (file)
@@ -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";
        }