diff options
author | William Breathitt Gray <[email protected]> | 2021-02-26 10:29:31 +0900 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2021-02-27 16:10:28 +0000 |
commit | fae6f62e6a580b663ecf42c2120a0898deae9137 (patch) | |
tree | 8e790bad71c7aa67b35e32bd462d6867bac5d1fa /lib/mpi | |
parent | 4f5434086d9223f20b3128a7dc78b35271e76655 (diff) |
counter: stm32-timer-cnt: Report count function when SLAVE_MODE_DISABLED
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 <[email protected]>
Cc: Maxime Coquelin <[email protected]>
Cc: Alexandre Torgue <[email protected]>
Signed-off-by: William Breathitt Gray <[email protected]>
Reviewed-by: Fabrice Gasnier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions