Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 56902d5e authored by Can Guo's avatar Can Guo Committed by Ram Prakash Gupta
Browse files

mmc: core: Fix card remove detect when use extcon



Since SDM845 uses extcon for card insertion and remove detection
and cd_gpio in device tree is not given, so the mmc_gpio_get_cd
function cannot detect card remove by reading gpio value. Fix it
by checking extcon state if extcon is initialized during sdhci
msm probe.

Change-Id: Ib44d211f707393cb440c387a06fa70d3adc99736
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
Signed-off-by: default avatarRam Prakash Gupta <rampraka@codeaurora.org>
parent 79c36b07
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment