aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpiolib.c
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>2021-02-26 10:29:31 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-25 09:04:09 +0100
commitc5fe922eaf1a669741094a07076ed34b44c9b7e7 (patch)
treedb9f0cea9c716ae87484aad2c8337b4b77b0deff /drivers/gpio/gpiolib.c
parentf854abe46b0edd757046908d191888ff919c30ea (diff)
downloadkernel_replicant_linux-c5fe922eaf1a669741094a07076ed34b44c9b7e7.tar.gz
kernel_replicant_linux-c5fe922eaf1a669741094a07076ed34b44c9b7e7.tar.bz2
kernel_replicant_linux-c5fe922eaf1a669741094a07076ed34b44c9b7e7.zip
counter: stm32-timer-cnt: Report count function when SLAVE_MODE_DISABLED
[ Upstream commit fae6f62e6a580b663ecf42c2120a0898deae9137 ] When in SLAVE_MODE_DISABLED mode, the count still increases if the counter is enabled because an internal clock is used. This patch fixes the stm32_count_function_get() and stm32_count_function_set() functions to properly handle this behavior. Fixes: ad29937e206f ("counter: Add STM32 Timer quadrature encoder") Cc: Fabrice Gasnier <fabrice.gasnier@st.com> Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com> Cc: Alexandre Torgue <alexandre.torgue@st.com> Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com> Reviewed-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com> Link: https://lore.kernel.org/r/20210226012931.161429-1-vilhelm.gray@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpio/gpiolib.c')
0 files changed, 0 insertions, 0 deletions