From: Mathias Nyman Date: Thu, 19 Apr 2018 16:05:52 +0000 (+0300) Subject: usb: set root hub lane counts X-Git-Tag: v4.18-rc1~136^2~120 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a2d49572e11ef54f854f6b7db48846286b1676d5;p=users%2Fjedix%2Flinux-maple.git usb: set root hub lane counts Set the the rx_lane and tx_lane count to "2" for USB 3.2 hosts. For all other older hosts set the default lane counts to 1 Signed-off-by: Mathias Nyman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 5a799f84dcc21..ac5bcf449d7d4 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c @@ -2793,6 +2793,9 @@ int usb_add_hcd(struct usb_hcd *hcd, hcd->self.root_hub = rhdev; mutex_unlock(&usb_port_peer_mutex); + rhdev->rx_lanes = 1; + rhdev->tx_lanes = 1; + switch (hcd->speed) { case HCD_USB11: rhdev->speed = USB_SPEED_FULL; @@ -2807,6 +2810,8 @@ int usb_add_hcd(struct usb_hcd *hcd, rhdev->speed = USB_SPEED_SUPER; break; case HCD_USB32: + rhdev->rx_lanes = 2; + rhdev->tx_lanes = 2; case HCD_USB31: rhdev->speed = USB_SPEED_SUPER_PLUS; break;