From: Oliver Neukum Date: Wed, 20 Apr 2016 14:28:09 +0000 (+0200) Subject: hub: admit devices are SS+ X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d64aab0c6fdc67113f2332a295d244b53bf694d6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git hub: admit devices are SS+ If a port can do 10 Gb/s the kernel should say so. The corresponding check needs to be added. Signed-off.by: Oliver Neukum > Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 38cc4bae0a82..c2270d8fac12 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c @@ -104,6 +104,8 @@ static int usb_reset_and_verify_device(struct usb_device *udev); static inline char *portspeed(struct usb_hub *hub, int portstatus) { + if (hub_is_superspeedplus(hub->hdev)) + return "10.0 Gb/s"; if (hub_is_superspeed(hub->hdev)) return "5.0 Gb/s"; if (portstatus & USB_PORT_STAT_HIGH_SPEED)