Skip to content

Commit f3d87ab

Browse files
joehattoristorulf
authored andcommitted
mmc: mtk-sd: disable wakeup in .remove() and in the error path of .probe()
Current implementation leaves pdev->dev as a wakeup source. Add a device_init_wakeup(&pdev->dev, false) call in the .remove() function and in the error path of the .probe() function. Signed-off-by: Joe Hattori <[email protected]> Fixes: 527f36f ("mmc: mediatek: add support for SDIO eint wakup IRQ") Cc: [email protected] Message-ID: <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
1 parent a56335c commit f3d87ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/mmc/host/mtk-sd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3070,6 +3070,7 @@ static int msdc_drv_probe(struct platform_device *pdev)
30703070
msdc_gate_clock(host);
30713071
platform_set_drvdata(pdev, NULL);
30723072
release_mem:
3073+
device_init_wakeup(&pdev->dev, false);
30733074
if (host->dma.gpd)
30743075
dma_free_coherent(&pdev->dev,
30753076
2 * sizeof(struct mt_gpdma_desc),
@@ -3103,6 +3104,7 @@ static void msdc_drv_remove(struct platform_device *pdev)
31033104
host->dma.gpd, host->dma.gpd_addr);
31043105
dma_free_coherent(&pdev->dev, MAX_BD_NUM * sizeof(struct mt_bdma_desc),
31053106
host->dma.bd, host->dma.bd_addr);
3107+
device_init_wakeup(&pdev->dev, false);
31063108
}
31073109

31083110
static void msdc_save_reg(struct msdc_host *host)

0 commit comments

Comments
 (0)