mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-21 20:04:01 +00:00
226b74c3d2
Power supply to card QCA9377 & QCA6574 is used for wlan and bluetooth as well. Now if SDIO card is switched to 1.8V signaling voltage, it will not switch back to 3.3V without a power cycle. CMD0 will not make SD (SDIO) card enter 3.3V signalling voltage. Since the power supply for mentioned card is also used to power bluetooth along with wlan, so card cannot be power cycled for wlan alone from such mmc host This patch adds a capability for such host which cannot power cycle the card. Thus during resume of sdio (mmc_sdio_resume), it checks if host has MMC_CAP2_BROKEN_PWR_CYCLE capability set. In case if this capability is set we do mmc_sdio_power_restore. This patch also fixes the resume path that if there is an oldcard present and it's an UHS card then CMD11 may give no response. In that case we need to switch only host signal voltage to 1.8V as card is already in 1.8V. Without this patch software assumes that card is switched to 3.3V on power cycle and tries voltage switch sequence which fails (because host driver will not control this power supply and thus card will never enter into 3.3V supply). Thus UHS mode is not entered. Change-Id: I1fae116fd3c5b3854761ac09da1ffec7f6ddfec9 Signed-off-by: Ritesh Harjani <riteshh@codeaurora.org> Signed-off-by: Asutosh Das <asutoshd@codeaurora.org> |
||
---|---|---|
.. | ||
bus.c | ||
bus.h | ||
core.c | ||
core.h | ||
debugfs.c | ||
host.c | ||
host.h | ||
Kconfig | ||
Makefile | ||
mmc.c | ||
mmc_ops.c | ||
mmc_ops.h | ||
quirks.c | ||
sd.c | ||
sd.h | ||
sd_ops.c | ||
sd_ops.h | ||
sdio.c | ||
sdio_bus.c | ||
sdio_bus.h | ||
sdio_cis.c | ||
sdio_cis.h | ||
sdio_io.c | ||
sdio_irq.c | ||
sdio_ops.c | ||
sdio_ops.h | ||
slot-gpio.c |