Commit 97d4090a authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar
Browse files

power: pm8xxx-ccadc: fix incorrect offset value



A race condition exists where an interrupt could trigger as soon as
it is requested, causing uninitialized data to be written in the offset
trim registers.

Fix this by initializing the offset values before requesting the interrupt.
Also keep the interrupt disabled, the driver enables them only when it
needs to use it.

Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
Change-Id: I69690f64b599f56f7beaf6854061b2a54da44148
parent ec6fd7af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment