Commit e5873388 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Greg Kroah-Hartman

staging: octeon-usb: fix endianness bug

wHubCharacteristics gets wrong value on big-endian CPUs.
Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8dcf4ece
...@@ -3628,7 +3628,7 @@ static int octeon_usb_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue, ...@@ -3628,7 +3628,7 @@ static int octeon_usb_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
desc->bDescLength = 9; desc->bDescLength = 9;
desc->bDescriptorType = 0x29; desc->bDescriptorType = 0x29;
desc->bNbrPorts = 1; desc->bNbrPorts = 1;
desc->wHubCharacteristics = 0x08; desc->wHubCharacteristics = cpu_to_le16(0x08);
desc->bPwrOn2PwrGood = 1; desc->bPwrOn2PwrGood = 1;
desc->bHubContrCurrent = 0; desc->bHubContrCurrent = 0;
desc->u.hs.DeviceRemovable[0] = 0; desc->u.hs.DeviceRemovable[0] = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment