misc: fastrpc: Add dma_mask to fastrpc_channel_ctx
authorAbel Vesa <abel.vesa@linaro.org>
Fri, 25 Nov 2022 07:14:05 +0000 (07:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Nov 2022 17:45:34 +0000 (18:45 +0100)
commit9bde43a0e2f469961e18d0a3496a9a74379c22bf
treeaac51f5cd5ac5e1ca95f9d5913aab9e5bf414bc0
parent532ad70c6d449029cfa3eac8408f427e31334f33
misc: fastrpc: Add dma_mask to fastrpc_channel_ctx

dma_set_mask_and_coherent only updates the mask to which the device
dma_mask pointer points to. Add a dma_mask to the channel ctx and set
the device dma_mask to point to that, otherwise the dma_set_mask will
return an error and the dma_set_coherent_mask will be skipped too.

Co-developed-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20221125071405.148786-11-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/fastrpc.c