]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: sdhci-msm: pervent access to suspended controller
authorMantas Pucka <mantas@8devices.com>
Thu, 21 Mar 2024 14:30:01 +0000 (14:30 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2024 14:32:43 +0000 (16:32 +0200)
commit56b99a52229d7f8cd1f53d899f57aa7eb4b199af
tree56f07e6e53b08dda6730c366ed6cfc491b41e187
parentf6c5d21db16a0910152ec8aa9d5a7aed72694505
mmc: sdhci-msm: pervent access to suspended controller

commit f8def10f73a516b771051a2f70f2f0446902cb4f upstream.

Generic sdhci code registers LED device and uses host->runtime_suspended
flag to protect access to it. The sdhci-msm driver doesn't set this flag,
which causes a crash when LED is accessed while controller is runtime
suspended. Fix this by setting the flag correctly.

Cc: stable@vger.kernel.org
Fixes: 67e6db113c90 ("mmc: sdhci-msm: Add pm_runtime and system PM support")
Signed-off-by: Mantas Pucka <mantas@8devices.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20240321-sdhci-mmc-suspend-v1-1-fbc555a64400@8devices.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/sdhci-msm.c