firmware: arm_scmi: Set polling timeout to max_rx_timeout_ms
authorCristian Marussi <cristian.marussi@arm.com>
Mon, 29 Nov 2021 19:11:42 +0000 (19:11 +0000)
committerSudeep Holla <sudeep.holla@arm.com>
Mon, 13 Dec 2021 17:41:47 +0000 (17:41 +0000)
commit582730b9cbcc534a39beaf3aa9078e2c431ff39f
tree685f27121e4bbf86601f23ce0f8feda012f5a3b2
parentd211ddeb511af5998dbd3e555be0fbe6033459d9
firmware: arm_scmi: Set polling timeout to max_rx_timeout_ms

Use transport specific transmission timeout (max_rx_timeout_ms) also for
polling transactions.

Initially when polling mode was added, it was intended to be used only
in scheduler context and hence the choice of 100us for the polling timeout.
However the only user for that was dropped for other SCMI concurrency
issues, so it shouldn't cause any issue to increase this timeout value now.

Link: https://lore.kernel.org/r/20211129191156.29322-3-cristian.marussi@arm.com
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
[sudeep.holla: Updated commit message with historical facts about 100us timeout]
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
drivers/firmware/arm_scmi/driver.c