Skip to content

Commit cc0aac7

Browse files
vireshksudeep-holla
authored andcommitted
firmware: arm_ffa: Set dma_mask for ffa devices
Set dma_mask for FFA devices, otherwise DMA allocation using the device pointer lead to following warning: WARNING: CPU: 1 PID: 1 at kernel/dma/mapping.c:597 dma_alloc_attrs+0xe0/0x124 Signed-off-by: Viresh Kumar <[email protected]> Message-Id: <e3dd8042ac680bd74b6580c25df855d092079c18.1737107520.git.viresh.kumar@linaro.org> Signed-off-by: Sudeep Holla <[email protected]>
1 parent c67c233 commit cc0aac7

File tree

1 file changed

+1
-0
lines changed
  • drivers/firmware/arm_ffa

1 file changed

+1
-0
lines changed

drivers/firmware/arm_ffa/bus.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ ffa_device_register(const struct ffa_partition_info *part_info,
212212
dev = &ffa_dev->dev;
213213
dev->bus = &ffa_bus_type;
214214
dev->release = ffa_release_device;
215+
dev->dma_mask = &dev->coherent_dma_mask;
215216
dev_set_name(&ffa_dev->dev, "arm-ffa-%d", id);
216217

217218
ffa_dev->id = id;

0 commit comments

Comments
 (0)