]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
USB: add speed values for USB 3.0 and wireless controllers
authorGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Jan 2010 18:33:19 +0000 (10:33 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 1 Apr 2010 22:55:36 +0000 (15:55 -0700)
commit b132b04e193908a94d95065d0628f8fb0159cc55 upstream.

These controllers say "unknown" for their speed in sysfs, which
obviously isn't correct.

Reported-by: Kurt Garloff <garloff@novell.com>
Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: David Vrabel <david.vrabel@csr.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/core/sysfs.c

index b5c72e458943f753d5981c20596de1ffe376fb4a..7bc1469c8f0ed50ca68916a197896d9e0ec2bf5b 100644 (file)
@@ -111,6 +111,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";
        }