]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
iommu/msm: Fix "scheduling while atomic" bug
authorGeorgi Djakov <georgi.djakov@linaro.org>
Fri, 11 Sep 2015 15:33:57 +0000 (18:33 +0300)
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>
Mon, 11 Jan 2016 09:54:34 +0000 (09:54 +0000)
commita3a84ccdbb06ae25db323e1859e6481c7d43046b
tree83f61a0a261ef5580b9f983bff4f31503a469c90
parent9e4dfd6891e32e0270b34c0b35e888bc006a1d3a
iommu/msm: Fix "scheduling while atomic" bug

In the msm iommu driver currently we incorrectly use clk_prepare_enable()
and clk_disable_unprepare() functions that are sleeping and should not be
called in atomic context. Fix this by preparing clocks in advance and use
only clk_enable() in atomic context.

Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
drivers/iommu/msm_iommu.c