Commit b132b04e193908a94d95065d0628f8fb0159cc55

Authored by Greg Kroah-Hartman
1 parent 49d0f078f4

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 <garloff@novell.com>
Cc: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Cc: David Vrabel <david.vrabel@csr.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff

drivers/usb/core/sysfs.c
... ... @@ -115,6 +115,12 @@
115 115 case USB_SPEED_HIGH:
116 116 speed = "480";
117 117 break;
  118 + case USB_SPEED_VARIABLE:
  119 + speed = "480";
  120 + break;
  121 + case USB_SPEED_SUPER:
  122 + speed = "5000";
  123 + break;
118 124 default:
119 125 speed = "unknown";
120 126 }