]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: at91-pio4: Fix slew rate disablement
authorTudor Ambarus <tudor.ambarus@microchip.com>
Fri, 9 Apr 2021 08:25:22 +0000 (11:25 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 13 Apr 2021 07:42:18 +0000 (09:42 +0200)
commitf0665e8d19b660b64efc90403bb7c2645ab5f527
treebd4d99da10ba646f13c1520709b794a752c2e3e0
parent1335a6800513014f93aad538d625454b3402d494
pinctrl: at91-pio4: Fix slew rate disablement

The slew rate was enabled by default for each configuration of the
pin. In case the pin had more than one configuration, even if
we set the slew rate as disabled in the device tree, the next pin
configuration would set again the slew rate enabled by default,
overwriting the slew rate disablement.
Instead of enabling the slew rate by default for each pin configuration,
enable the slew rate by default just once per pin, regardless of the
number of configurations. This way the slew rate disablement will also
work for cases where pins have multiple configurations.

Fixes: 9e1c7c7d5b47 ("pinctrl: at91-pio4: add support for slew-rate")
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Link: https://lore.kernel.org/r/20210409082522.625168-1-tudor.ambarus@microchip.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91-pio4.c