staging: vc04_services: bcm2835-camera: Explicitly set DMA mask
authorUmang Jain <umang.jain@ideasonboard.com>
Sat, 23 Sep 2023 14:31:55 +0000 (20:01 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Oct 2023 08:04:44 +0000 (10:04 +0200)
commitbc65b13eddc35f0cf5b429ca143b9394a6826707
tree73d06e8e0a9f8038c5ec766a564c7f17ca92021e
parent274fba8bb9e3dd581d91372a0bb84fe32870aa60
staging: vc04_services: bcm2835-camera: Explicitly set DMA mask

In the following patches, vchiq_arm will be migrated to create and use
its own bus and all the vchiq drivers (bcm2835-camera, bcm2835-audio)
will be registered to it. Since the platform driver/device model
internally sets the DMA mask for its registered devices, we would have
to do it ourself when we remove the platform driver/device registration
for vchiq devices.

This patch explicitly sets the DMA mask to bcm2835-camera so as not
to introduce a regression when we move away from platform
device/driver model.

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Link: https://lore.kernel.org/r/20230923143200.268063-2-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c