summaryrefslogtreecommitdiffstats
path: root/drivers/staging/octeon-usb/octeon-hcd.c
diff options
context:
space:
mode:
authorAaro Koskinen2014-06-29 21:52:56 +0200
committerGreg Kroah-Hartman2014-07-09 01:39:22 +0200
commite5873388e2fe04aca439a44ae00ccfeb8536fc37 (patch)
treeda8fdb290f4390859500ca65cad459c214eedbf4 /drivers/staging/octeon-usb/octeon-hcd.c
parentstaging: octeon-usb: return transferred bytes only on success (diff)
downloadkernel-qcow2-linux-e5873388e2fe04aca439a44ae00ccfeb8536fc37.tar.gz
kernel-qcow2-linux-e5873388e2fe04aca439a44ae00ccfeb8536fc37.tar.xz
kernel-qcow2-linux-e5873388e2fe04aca439a44ae00ccfeb8536fc37.zip
staging: octeon-usb: fix endianness bug
wHubCharacteristics gets wrong value on big-endian CPUs. Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/octeon-usb/octeon-hcd.c')
-rw-r--r--drivers/staging/octeon-usb/octeon-hcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octeon-hcd.c
index a65b708b804a..095cc146eefc 100644
--- a/drivers/staging/octeon-usb/octeon-hcd.c
+++ b/drivers/staging/octeon-usb/octeon-hcd.c
@@ -3628,7 +3628,7 @@ static int octeon_usb_hub_control(struct usb_hcd *hcd, u16 typeReq, u16 wValue,
desc->bDescLength = 9;
desc->bDescriptorType = 0x29;
desc->bNbrPorts = 1;
- desc->wHubCharacteristics = 0x08;
+ desc->wHubCharacteristics = cpu_to_le16(0x08);
desc->bPwrOn2PwrGood = 1;
desc->bHubContrCurrent = 0;
desc->u.hs.DeviceRemovable[0] = 0;