aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/device.py
diff options
context:
space:
mode:
authorFabrice Gasnier <[email protected]>2021-10-22 14:19:29 +0200
committerJonathan Cameron <[email protected]>2021-11-17 17:52:34 +0000
commitf711f28e71e965c0d1141c830fa7131b41abbe75 (patch)
treef52e8da190e80a3b0d3f9bcbb03c18b898fb69b7 /scripts/gdb/linux/device.py
parentcd0082235783f814241a1c9483fb89e405f4f892 (diff)
iio: adc: stm32: fix a current leak by resetting pcsel before disabling vdda
Some I/Os are connected to ADC input channels, when the corresponding bit in PCSEL register are set on STM32H7 and STM32MP15. This is done in the prepare routine of stm32-adc driver. There are constraints here, as PCSEL shouldn't be set when VDDA supply is disabled. Enabling/disabling of VDDA supply in done via stm32-adc-core runtime PM routines (before/after ADC is enabled/disabled). Currently, PCSEL remains set when disabling ADC. Later on, PM runtime can disable the VDDA supply. This creates some conditions on I/Os that can start to leak current. So PCSEL needs to be cleared when disabling the ADC. Fixes: 95e339b6e85d ("iio: adc: stm32: add support for STM32H7") Signed-off-by: Fabrice Gasnier <[email protected]> Reviewed-by: Olivier Moysan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/device.py')
0 files changed, 0 insertions, 0 deletions