atmel_sdhci: Force card-detect if MMC_CAP_NONREMOVABLE.
authorZixun LI <admin@hifiphile.com>
Wed, 17 May 2023 13:49:45 +0000 (15:49 +0200)
committerEugen Hristev <eugen.hristev@collabora.com>
Mon, 24 Jul 2023 11:21:00 +0000 (14:21 +0300)
commite83b6f99fc512acda05691db35e7d83817eac0b9
tree879cb0ed8d9e7534805e92dbd66ff74e2eb820ab
parentf5b9587449f7f240da58c1cf8468d8103386ec8c
atmel_sdhci: Force card-detect if MMC_CAP_NONREMOVABLE.

If the device attached to the MMC bus is not removable, set force card-detect
bit to bypass card detection procedure, so card detection pin can be used for
other purposes.

It's also a workaround for SAMA5D2 who doesn't drive CMD if using GPIO for card
detection.

Signed-off-by: Zixun LI <zli@ogga.fr>
Reviewed-by: Eugen Hristev <eugen.hristev@collabora.com>
drivers/mmc/atmel_sdhci.c