USB: add speed values for USB 3.0 and wireless controllers
authorGreg Kroah-Hartman <[email protected]>
Thu, 14 Jan 2010 18:33:19 +0000 (10:33 -0800)
committerGreg 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

index 485edf937f257ae846b921eae465f2655841f1b7..5f3908f6e2dc12f455b9036da9621478976a3dd9 100644 (file)
@@ -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";
        }