diff options
author | Benjamin Gaignard <benjamin.gaignard@st.com> | 2020-06-03 14:54:37 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-06-18 12:19:49 +0200 |
commit | 45d93065c8ec4e671f4b1ff02b5b3a633658a92f (patch) | |
tree | f847ffafb72ada7b4cbc781cae87dd0cb647147d /drivers | |
parent | mfd: stm32: Add defines to be used for clkevent purpose (diff) | |
download | linux-45d93065c8ec4e671f4b1ff02b5b3a633658a92f.tar.xz linux-45d93065c8ec4e671f4b1ff02b5b3a633658a92f.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mfd/stm32-lptimer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/stm32-lptimer.c b/drivers/mfd/stm32-lptimer.c index a00f99f36559..746e51a17cc8 100644 --- a/drivers/mfd/stm32-lptimer.c +++ b/drivers/mfd/stm32-lptimer.c @@ -17,6 +17,7 @@ static const struct regmap_config stm32_lptimer_regmap_cfg = { .val_bits = 32, .reg_stride = sizeof(u32), .max_register = STM32_LPTIM_MAX_REGISTER, + .fast_io = true, }; static int stm32_lptimer_detect_encoder(struct stm32_lptimer *ddata) |