summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-04-06 14:11:21 -0400
committerTom Rini <trini@konsulko.com>2021-04-06 14:11:21 -0400
commit2e216be8cf1e38df0f84963222cb6becaf0fc78e (patch)
tree654e6ab485435687b4a224adc2702b9ee0678c88 /common
parent1883652c8e34fa625ce303b82f559d9b907963c1 (diff)
parent82e4e198ed7afd5103f728dd21bff80ecfe8dd72 (diff)
downloadu-boot-2e216be8cf1e38df0f84963222cb6becaf0fc78e.tar.gz
Merge https://source.denx.de/u-boot/custodians/u-boot-usb
- XHCI fixes
Diffstat (limited to 'common')
-rw-r--r--common/usb_hub.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/usb_hub.c b/common/usb_hub.c
index 3d856e7de7..ba11a188ca 100644
--- a/common/usb_hub.c
+++ b/common/usb_hub.c
@@ -144,7 +144,8 @@ int usb_get_port_status(struct usb_device *dev, int port, void *data)
if (!usb_hub_is_root_hub(dev->dev) && usb_hub_is_superspeed(dev)) {
struct usb_port_status *status = (struct usb_port_status *)data;
- u16 tmp = (status->wPortStatus) & USB_SS_PORT_STAT_MASK;
+ u16 tmp = le16_to_cpu(status->wPortStatus) &
+ USB_SS_PORT_STAT_MASK;
if (status->wPortStatus & USB_SS_PORT_STAT_POWER)
tmp |= USB_PORT_STAT_POWER;
@@ -152,7 +153,7 @@ int usb_get_port_status(struct usb_device *dev, int port, void *data)
USB_SS_PORT_STAT_SPEED_5GBPS)
tmp |= USB_PORT_STAT_SUPER_SPEED;
- status->wPortStatus = tmp;
+ status->wPortStatus = cpu_to_le16(tmp);
}
#endif