greybus: es2: Fix endian conversion issues
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 22 Dec 2015 01:00:36 +0000 (03:00 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 22 Dec 2015 02:22:43 +0000 (18:22 -0800)
Convert all USB request fields between CPU and protocol endianness.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/es2.c

index 334ed06b8900a1c5868f517d5ddb83f36b64ed71..5a991c0c4924a2b53274b64a5a90280815bbb551 100644 (file)
@@ -234,7 +234,7 @@ int es2_ap_csi_setup(struct gb_host_device *hd, bool start,
                cfg_req.clock_mode = cfg->clock_mode;
                cfg_req.num_lanes = cfg->num_lanes;
                cfg_req.padding = 0;
-               cfg_req.bus_freq = cfg->bus_freq;
+               cfg_req.bus_freq = cpu_to_le32(cfg->bus_freq);
        } else {
                cfg_req.clock_mode = 0;
                cfg_req.num_lanes = 0;