Re: [PATCH 3/3] hwmon: bt1-pvt: Wait for the completion with timeout

2020-10-02 Thread Guenter Roeck
On Sun, Sep 20, 2020 at 02:09:23PM +0300, Serge Semin wrote: > 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 >

[PATCH 3/3] hwmon: bt1-pvt: Wait for the completion with timeout

2020-09-20 Thread Serge Semin
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