Skip to content
Commit 960a6f03 authored by Van Petrosyan's avatar Van Petrosyan Committed by Daniel DeGrasse
Browse files

sensor: lis2dh: cache CTRL1 on PM_DEVICE_ACTION_TURN_ON



Cache CTRL1 into reg_ctrl1_active_val inside lis2dh_init_chip()
in the PM_DEVICE_ACTION_TURN_ON path.  This prevents the first
runtime-PM RESUME from writing 0x00 to CTRL1 and disabling the sensor
when runtime-PM is enabled.

Fixes: #92196

Signed-off-by: default avatarVan Petrosyan <van.petrosyan@sensirion.com>
parent 7da64e7b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment