Skip to content

Commit 45d9306

Browse files
Benjamin GaignardLee Jones
authored andcommitted
mfd: stm32: Enable regmap fast_io for stm32-lptimer
Because stm32-lptimer need to write in registers in interrupt context enable regmap fast_io to use a spin_lock to protect registers access rather than a mutex. Signed-off-by: Benjamin Gaignard <benjamin.gaignard@st.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
1 parent e0bcc58 commit 45d9306

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/mfd/stm32-lptimer.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ static const struct regmap_config stm32_lptimer_regmap_cfg = {
1717
.val_bits = 32,
1818
.reg_stride = sizeof(u32),
1919
.max_register = STM32_LPTIM_MAX_REGISTER,
20+
.fast_io = true,
2021
};
2122

2223
static int stm32_lptimer_detect_encoder(struct stm32_lptimer *ddata)

0 commit comments

Comments
 (0)