]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: sdhci-msm: fix mutex while in spinlock
authorJorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Mon, 1 Jul 2019 15:01:25 +0000 (17:01 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 10 Jul 2019 11:17:30 +0000 (13:17 +0200)
commit5e6b6651d22de109ebf48ca00d0373bc2c0cc080
tree07255a2decb8027ad24372f4e5923b5ae31562e5
parent8751c8bd8b91abb0887ab971651a1ac72d3b9398
mmc: sdhci-msm: fix mutex while in spinlock

mutexes can sleep and therefore should not be taken while holding a
spinlock. move clk_get_rate (can sleep) outside the spinlock protected
region.

Fixes: 83736352e0ca ("mmc: sdhci-msm: Update DLL reset sequence")
Cc: stable@vger.kernel.org
Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Vinod Koul <vkoul@kernel.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-msm.c