mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
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 <joe@pf.is.s.u-tokyo.ac.jp>
Fixes: 527f36f5ef
("mmc: mediatek: add support for SDIO eint wakup IRQ")
Cc: stable@vger.kernel.org
Message-ID: <20241203023442.2434018-1-joe@pf.is.s.u-tokyo.ac.jp>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
parent
a56335c85b
commit
f3d87abe11
@ -3070,6 +3070,7 @@ static int msdc_drv_probe(struct platform_device *pdev)
|
|||||||
msdc_gate_clock(host);
|
msdc_gate_clock(host);
|
||||||
platform_set_drvdata(pdev, NULL);
|
platform_set_drvdata(pdev, NULL);
|
||||||
release_mem:
|
release_mem:
|
||||||
|
device_init_wakeup(&pdev->dev, false);
|
||||||
if (host->dma.gpd)
|
if (host->dma.gpd)
|
||||||
dma_free_coherent(&pdev->dev,
|
dma_free_coherent(&pdev->dev,
|
||||||
2 * sizeof(struct mt_gpdma_desc),
|
2 * sizeof(struct mt_gpdma_desc),
|
||||||
@ -3103,6 +3104,7 @@ static void msdc_drv_remove(struct platform_device *pdev)
|
|||||||
host->dma.gpd, host->dma.gpd_addr);
|
host->dma.gpd, host->dma.gpd_addr);
|
||||||
dma_free_coherent(&pdev->dev, MAX_BD_NUM * sizeof(struct mt_bdma_desc),
|
dma_free_coherent(&pdev->dev, MAX_BD_NUM * sizeof(struct mt_bdma_desc),
|
||||||
host->dma.bd, host->dma.bd_addr);
|
host->dma.bd, host->dma.bd_addr);
|
||||||
|
device_init_wakeup(&pdev->dev, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void msdc_save_reg(struct msdc_host *host)
|
static void msdc_save_reg(struct msdc_host *host)
|
||||||
|
Loading…
Reference in New Issue
Block a user