diff options
author | Sudeep Holla <sudeep.holla@arm.com> | 2016-01-15 12:57:38 +0100 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2016-02-16 10:26:27 +0100 |
commit | 3bdd884371b6fe68bb144aa4661d6a774a5417f1 (patch) | |
tree | b39317174aa1326f30db7ab73ccab9c67d4feddb /drivers/hwmon | |
parent | firmware: arm_scpi: fix send_message and sensor_get_value for big-endian (diff) | |
download | linux-3bdd884371b6fe68bb144aa4661d6a774a5417f1.tar.xz linux-3bdd884371b6fe68bb144aa4661d6a774a5417f1.zip |
firmware: arm_scpi: decrease Tx timeout to 20ms
Currently we have Tx timeout of 50ms while Rx timeout of 20 ms. Tx state
machine is maintained by the mailbox framework and Rx by SCPI driver.
It is possible that before msg_submit call tx_prepare(because of other
message in the queue and the channel being active), wait for completion
in scpi_send_message times out and the buffers are freed. In that case
when Tx state machine timer goes off later, poll_txdone calls
scpi_tx_prepare on that message, which adds it to the rx_pending list,
corrupting link pointers.
This patch reduces the Tx timeout to 20ms and increases Rx timeout to
30ms to avoid the above mentioned issue.
Reported-by: Jon Medhurst (Tixy) <tixy@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/hwmon')
0 files changed, 0 insertions, 0 deletions