firmware: qcom_scm: fix bogous abuse of dma-direct internals
authorChristoph Hellwig <hch@lst.de>
Tue, 14 Apr 2020 12:31:36 +0000 (14:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:50:21 +0000 (17:50 +0200)
commit0c884f3236f3b04d8fca163e0b2dcde13a5faa34
tree6d837ca444c0974d2eeae4ff994b6aacfa60af86
parent0c48b6df64c0e4070bf82c678f1dbc1259a3187a
firmware: qcom_scm: fix bogous abuse of dma-direct internals

[ Upstream commit 459b1f86f1cba7de813fbc335df476c111feec22 ]

As far as the device is concerned the dma address is the physical
address.  There is no need to convert it to a physical address,
especially not using dma-direct internals that are not available
to drivers and which will interact badly with IOMMUs.  Last but not
least the commit introducing it claimed to just fix a type issue,
but actually changed behavior.

Fixes: 6e37ccf78a532 ("firmware: qcom_scm: Use proper types for dma mappings")
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20200414123136.441454-1-hch@lst.de
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/firmware/qcom_scm.c