1
0
Fork 0

greybus: es2: Fix endian conversion issues

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>
hifive-unleashed-5.1
Laurent Pinchart 2015-12-22 03:00:36 +02:00 committed by Greg Kroah-Hartman
parent 98ce3b0a71
commit e715a54f4b
1 changed files with 1 additions and 1 deletions

View 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;