staging: bcm2835-camera: Register bcm2835-camera with vchiq_bus_type
authorUmang Jain <umang.jain@ideasonboard.com>
Sat, 23 Sep 2023 14:31:59 +0000 (20:01 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Oct 2023 08:04:45 +0000 (10:04 +0200)
commit899038ae82bd65191c6a2f19bf693bf6f24e5b3c
tree44fe714769faa72228ff83cb1679394a7329e33d
parent162bd0dda990e25a9d55412a8b6db245a2cf77f6
staging: bcm2835-camera: Register bcm2835-camera with vchiq_bus_type

Register the bcm2835-camera with the vchiq_bus_type instead of using
platform driver/device.

Since we moved away bcm2835-camera from platform driver/device,
we have to set the DMA mask explicitly. Set the DMA mask at probe
time.

Also the VCHIQ firmware doesn't support device enumeration, hence
one has to maintain a list of devices to be registered in the interface.

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