Re: [PATCH 3/4] thermal: ti-soc-thermal: Simplify polling with iopoll

2021-02-06 Thread Adam Ford
On Fri, Feb 5, 2021 at 7:45 AM Tony Lindgren wrote: > > We can use iopoll for checking the EOCZ (end of conversion) bit. And with > this we now also want to handle the timeout errors properly. > > For omap3, we need about 1.2ms for the single mode sampling to wait for > EOCZ down, so let's use

[PATCH 3/4] thermal: ti-soc-thermal: Simplify polling with iopoll

2021-02-05 Thread Tony Lindgren
We can use iopoll for checking the EOCZ (end of conversion) bit. And with this we now also want to handle the timeout errors properly. For omap3, we need about 1.2ms for the single mode sampling to wait for EOCZ down, so let's use 1.5ms timeout there. Waiting for sampling to start is faster and