mmc: atmel-mci: Move card detect gpio polarity quirk to gpiolib
authorBalamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com>
Fri, 25 Aug 2023 09:51:57 +0000 (15:21 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 25 Aug 2023 11:40:21 +0000 (13:40 +0200)
commit98ac9e4fc07f101c435f1ab6b395b6245b096a68
tree5b65240da2eff68bb9e8f562913faf4be55c251c
parentd2c6d518c21d73d96616e08a19eccd4642f4bafa
mmc: atmel-mci: Move card detect gpio polarity quirk to gpiolib

The polarity of the card detection gpio is handled by the "cd-inverted"
property in the device tree. Move this inversion logic to gpiolib to avoid
reading the gpio raw value.

Signed-off-by: Balamanikandan Gunasundar <balamanikandan.gunasundar@microchip.com>
Suggested-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230825095157.76073-4-balamanikandan.gunasundar@microchip.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/gpio/gpiolib-of.c
drivers/mmc/host/atmel-mci.c