Skip to content
Commit 0ffd21d5 authored by Serge Semin's avatar Serge Semin Committed by Guenter Roeck
Browse files

hwmon: (bt1-pvt) Wait for the completion with timeout



If the PVT sensor is suddenly powered down while a caller is waiting for
the conversion completion, the request won't be finished and the task will
hang up on this procedure until the power is back up again. Let's call the
wait_for_completion_timeout() method instead to prevent that. The cached
timeout is exactly what we need to predict for how long conversion could
normally last.

Fixes: 87976ce2 ("hwmon: Add Baikal-T1 PVT sensor driver")
Signed-off-by: default avatarSerge Semin <Sergey.Semin@baikalelectronics.ru>
Link: https://lore.kernel.org/r/20200920110924.19741-4-Sergey.Semin@baikalelectronics.ru


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 0015503e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment