summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_parser.py
diff options
context:
space:
mode:
authorSarthak Garg <quic_sartgarg@quicinc.com>2025-07-01 15:36:59 +0530
committerUlf Hansson <ulf.hansson@linaro.org>2025-07-03 15:25:01 +0200
commitdb58532188ebf51d52b1d7693d9e94c76b926e9f (patch)
tree39fb053c42d05b6ce8011fe593bb599a44f8206c /scripts/lib/kdoc/kdoc_parser.py
parent886eade45257554fa0f76e61d9f14bdbc753ec11 (diff)
mmc: sdhci-msm: Ensure SD card power isn't ON when card removed
Many mobile phones feature multi-card tray designs, where the same tray is used for both SD and SIM cards. If the SD card is placed at the outermost location in the tray, the SIM card may come in contact with SD card power-supply while removing the tray, possibly resulting in SIM damage. To prevent that, make sure the SD card is really inserted by reading the Card Detect pin state. If it's not, turn off the power in sdhci_msm_check_power_status() and also set the BUS_FAIL power state on the controller as part of pwr_irq handling for BUS_ON request. Signed-off-by: Sarthak Garg <quic_sartgarg@quicinc.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Link: https://lore.kernel.org/r/20250701100659.3310386-1-quic_sartgarg@quicinc.com Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions