Commit 0d5a7023 authored by Ryan QIAN's avatar Ryan QIAN Committed by Jason Liu

ENGR00234933 mmc: sdhci: invalid cd_gpio for always_present host controller

By default, cd_gpio is 0 for always presented host controller, which is a
valid gpio. Then it will result to free_irq for 0 in esdhc_pltfm_exit for
these always_present host controllers.

Invalid cd_gpio if the controller is indicated to be always present.
Acked-by: default avatarDong Aisheng <>
Signed-off-by: default avatarRyan QIAN <>
parent 3c7d2684
......@@ -881,6 +881,8 @@ static int esdhc_pltfm_init(struct sdhci_host *host, struct sdhci_pltfm_data *pd
if (boarddata->always_present) {
/* remove BROKEN_CD to disable card polling */
/* if it is always present, invalid cd_gpio */
boarddata->cd_gpio = ARCH_NR_GPIOS + 1;
if (host->clk_mgr_en)
return 0;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment