diff options
| -rw-r--r-- | drivers/usb/misc/usb251xb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/misc/usb251xb.c b/drivers/usb/misc/usb251xb.c index 119aeb658c81..4d6ae3795a88 100644 --- a/drivers/usb/misc/usb251xb.c +++ b/drivers/usb/misc/usb251xb.c | |||
| @@ -574,6 +574,8 @@ static int usb251xb_get_ofdata(struct usb251xb *hub, | |||
| 574 | hub->port_swap = USB251XB_DEF_PORT_SWAP; | 574 | hub->port_swap = USB251XB_DEF_PORT_SWAP; |
| 575 | usb251xb_get_ports_field(hub, "swap-dx-lanes", data->port_cnt, | 575 | usb251xb_get_ports_field(hub, "swap-dx-lanes", data->port_cnt, |
| 576 | &hub->port_swap); | 576 | &hub->port_swap); |
| 577 | if (of_get_property(np, "swap-us-lanes", NULL)) | ||
| 578 | hub->port_swap |= BIT(0); | ||
| 577 | 579 | ||
| 578 | /* The following parameters are currently not exposed to devicetree, but | 580 | /* The following parameters are currently not exposed to devicetree, but |
| 579 | * may be as soon as needed. | 581 | * may be as soon as needed. |
