Skip to content
Commit 05788883 authored by Kornel Dulęba's avatar Kornel Dulęba Committed by Anas Nashif
Browse files

drivers: sensors: npcx_tach: Clear stale data



The tachometer collects the data continuously setting a "data ready" bit
when it's ready. The availability bit has to be cleared before the
register is updated.
The driver also supports underflow detection, when the bit indicating it
is set the reading of "0" is returned.
The problem here is that there is that once the underflow bit is cleared
we might end up reading stale data.
To prevent that clear the "data ready" bit when underflow is detected

Signed-off-by: default avatarKornel Dulęba <mindal@semihalf.com>
parent 2b607733
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment