]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: mtk-sd: disable wakeup in .remove() and in the error path of .probe()
authorJoe Hattori <joe@pf.is.s.u-tokyo.ac.jp>
Tue, 3 Dec 2024 02:34:42 +0000 (11:34 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Dec 2024 13:02:06 +0000 (14:02 +0100)
commit2f19001192ccc20152685ff7babe0717ae71f518
tree8acea046b980aec77fbd04cd629277dc19bff8a7
parentb2dc310a5591a880b8b59aa88babf54390da9f1a
mmc: mtk-sd: disable wakeup in .remove() and in the error path of .probe()

commit f3d87abe11ed04d1b23a474a212f0e5deeb50892 upstream.

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: 527f36f5efa4 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/mtk-sd.c