Commit e715a54f authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Greg Kroah-Hartman

greybus: es2: Fix endian conversion issues

Convert all USB request fields between CPU and protocol endianness.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 98ce3b0a
...@@ -234,7 +234,7 @@ int es2_ap_csi_setup(struct gb_host_device *hd, bool start, ...@@ -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.clock_mode = cfg->clock_mode;
cfg_req.num_lanes = cfg->num_lanes; cfg_req.num_lanes = cfg->num_lanes;
cfg_req.padding = 0; cfg_req.padding = 0;
cfg_req.bus_freq = cfg->bus_freq; cfg_req.bus_freq = cpu_to_le32(cfg->bus_freq);
} else { } else {
cfg_req.clock_mode = 0; cfg_req.clock_mode = 0;
cfg_req.num_lanes = 0; cfg_req.num_lanes = 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