mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
update sdmmc driver: disable sd insert/remove wakeup
This commit is contained in:
@@ -279,7 +279,6 @@ void mmc_remove_card(struct mmc_card *card)
|
||||
#endif
|
||||
|
||||
if (mmc_card_present(card)) {
|
||||
mmc_card_clr_present(card); //add by kfx
|
||||
if (mmc_host_is_spi(card->host)) {
|
||||
printk(KERN_INFO "%s: SPI card removed\n",
|
||||
mmc_hostname(card->host));
|
||||
|
||||
@@ -590,7 +590,7 @@ static void mmc_sd_detect(struct mmc_host *host)
|
||||
#endif
|
||||
mmc_release_host(host);
|
||||
|
||||
if (err && mmc_card_present(host->card)) { //mod by kfx
|
||||
if (err) {
|
||||
mmc_sd_remove(host);
|
||||
|
||||
mmc_claim_host(host);
|
||||
|
||||
@@ -1365,7 +1365,7 @@ static int rk29_sdmmc_suspend(struct platform_device *pdev, pm_message_t state)
|
||||
dev_info(host->dev, "Enter rk29_sdmmc_suspend\n");
|
||||
if(host->mmc && !host->is_sdio){
|
||||
ret = mmc_suspend_host(host->mmc, state);
|
||||
if(host->enable_sd_warkup)
|
||||
if(!host->enable_sd_warkup)
|
||||
free_irq(host->gpio_irq, host);
|
||||
}
|
||||
rk29_sdmmc_write(host->regs, SDMMC_CLKENA, 0);
|
||||
@@ -1384,7 +1384,7 @@ static int rk29_sdmmc_resume(struct platform_device *pdev)
|
||||
clk_enable(host->clk);
|
||||
rk29_sdmmc_write(host->regs, SDMMC_CLKENA, 1);
|
||||
if(host->mmc && !host->is_sdio){
|
||||
if(host->enable_sd_warkup)
|
||||
if(!host->enable_sd_warkup)
|
||||
ret = request_irq(host->gpio_irq,
|
||||
rk29_sdmmc_detect_change_isr,
|
||||
rk29_sdmmc_get_cd(host->mmc)?IRQF_TRIGGER_RISING : IRQF_TRIGGER_FALLING,
|
||||
|
||||
Reference in New Issue
Block a user