mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
e0bcc58d87
commit
45d93065c8
|
@ -17,6 +17,7 @@ static const struct regmap_config stm32_lptimer_regmap_cfg = {
|
||||||
.val_bits = 32,
|
.val_bits = 32,
|
||||||
.reg_stride = sizeof(u32),
|
.reg_stride = sizeof(u32),
|
||||||
.max_register = STM32_LPTIM_MAX_REGISTER,
|
.max_register = STM32_LPTIM_MAX_REGISTER,
|
||||||
|
.fast_io = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int stm32_lptimer_detect_encoder(struct stm32_lptimer *ddata)
|
static int stm32_lptimer_detect_encoder(struct stm32_lptimer *ddata)
|
||||||
|
|
Loading…
Reference in New Issue