mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mmc: rtsx_usb_sdmmc: Avoid keeping the device runtime resumed when unused
The rtsx_usb_sdmmc driver may bail out in its ->set_ios() callback when no SD card is inserted. This is wrong, as it could cause the device to remain runtime resumed when it's unused. Fix this behaviour. Tested-by: Ritesh Raj Sarraf <[email protected]> Cc: <[email protected]> Cc: Alan Stern <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
This commit is contained in:
parent
02265cd603
commit
31cf742f51
1 changed files with 0 additions and 5 deletions
|
|
@ -1138,11 +1138,6 @@ static void sdmmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
|
|||
dev_dbg(sdmmc_dev(host), "%s\n", __func__);
|
||||
mutex_lock(&ucr->dev_mutex);
|
||||
|
||||
if (rtsx_usb_card_exclusive_check(ucr, RTSX_USB_SD_CARD)) {
|
||||
mutex_unlock(&ucr->dev_mutex);
|
||||
return;
|
||||
}
|
||||
|
||||
sd_set_power_mode(host, ios->power_mode);
|
||||
sd_set_bus_width(host, ios->bus_width);
|
||||
sd_set_timing(host, ios->timing, &host->ddr_mode);
|
||||
|
|
|
|||
Loading…
Reference in a new issue