Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Abel Vesa and committed by
Greg Kroah-Hartman
9bde43a0 532ad70c

+2
+2
drivers/misc/fastrpc.c
··· 278 278 struct list_head invoke_interrupted_mmaps; 279 279 bool secure; 280 280 bool unsigned_support; 281 + u64 dma_mask; 281 282 }; 282 283 283 284 struct fastrpc_device { ··· 2304 2303 kref_init(&data->refcount); 2305 2304 2306 2305 dev_set_drvdata(&rpdev->dev, data); 2306 + rdev->dma_mask = &data->dma_mask; 2307 2307 dma_set_mask_and_coherent(rdev, DMA_BIT_MASK(32)); 2308 2308 INIT_LIST_HEAD(&data->users); 2309 2309 INIT_LIST_HEAD(&data->invoke_interrupted_mmaps);