]> git.baikalelectronics.ru Git - uboot.git/commit
firmware: ti_sci: Fix TISCI mailbox receive timeout handling
authorAndreas Dannenberg <dannenberg@ti.com>
Wed, 24 Apr 2019 19:20:08 +0000 (14:20 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 3 May 2019 11:23:17 +0000 (07:23 -0400)
commit393c47201e44781fb470c980f8f68e5ef485b274
treeadfb8f3f0fcc19cbc2d1ee799d19a32205dc12d2
parentc1450b8a36687b1020fb14b77307feb29ad0483e
firmware: ti_sci: Fix TISCI mailbox receive timeout handling

An earlier commit converted the TISCI receive timeouts to be specified
in ms rather than us however it failed to take this change into account
when passing the actual timeout to be used when invoking the mailbox
receive API. This leads to the actual timeout to be 1,000 times shorter
than expected and as a result certain TISCI operations would fail.

Fix the issue by converting the timeout declared in ms to us on the fly
as expected by the respective API.

Fixes: 920cea07e0c5 ("firmware: ti_sci: Add support for NAVSS resource management")
Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
drivers/firmware/ti_sci.c