diff options
author | Jon Medhurst <tixy@linaro.org> | 2015-04-23 17:06:25 +0100 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2015-06-30 10:12:24 +0100 |
commit | eed576232a8185ff9b18d207f9aef867e9275820 (patch) | |
tree | 5c5286d8b2dd1948272f5bd8755a39831f751791 | |
parent | 3b2a12e610e8ad5693bab9db21d2ed2a62bf4e9c (diff) |
mailbox: scpi: Fix initialisation of clk_set_value messageslsk-3.10-armlt-scpi
There is a 'reserved' member in struct clk_set_value which message
initialisation wasn't allowing for. That resulted in a corrupt message
being sent to SCP and the clock rate not being adjusted.
Signed-off-by: Jon Medhurst <tixy@linaro.org>
-rw-r--r-- | drivers/mailbox/scpi_protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mailbox/scpi_protocol.c b/drivers/mailbox/scpi_protocol.c index 6ba444daba84..dde7c274d093 100644 --- a/drivers/mailbox/scpi_protocol.c +++ b/drivers/mailbox/scpi_protocol.c @@ -460,7 +460,7 @@ static unsigned long scpi_clk_get_val(u16 clk_id) static int scpi_clk_set_val(u16 clk_id, unsigned long rate) { int stat; - struct clk_set_value clk = { cpu_to_le16(clk_id), cpu_to_le32(rate) }; + struct clk_set_value clk = { cpu_to_le16(clk_id), 0, cpu_to_le32(rate) }; return scpi_send_message(SCPI_CMD_SET_CLOCK_VALUE, &clk, sizeof(clk), &stat); |