]> git.baikalelectronics.ru Git - kernel.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)
commitc811b78b891be87075d270f28019fa40b19899d7
tree07255a2decb8027ad24372f4e5923b5ae31562e5
parent2f85abc7cd16382f570a503e9b39538305421c29
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: 5f52e4c5d1e9 ("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