staging: vc04_services: vchiq_arm: Add new bus type and device type
authorUmang Jain <umang.jain@ideasonboard.com>
Sat, 23 Sep 2023 14:31:57 +0000 (20:01 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Oct 2023 08:04:45 +0000 (10:04 +0200)
commit027e5703de6bfa1887443ed335118658e6fb41aa
treec18d8e448ddaa79355ad51c313a5857781fafa4c
parent311b94dc641dcb06b54e5e70555f19c6413eda96
staging: vc04_services: vchiq_arm: Add new bus type and device type

The devices that the vchiq interface registers (bcm2835-audio,
bcm2835-camera) are implemented and exposed by the VC04 firmware.
The device tree describes the VC04 itself with the resources required
to communicate with it through a mailbox interface. However, the
vchiq interface registers these devices as platform devices. This
also means the specific drivers for these devices are getting
registered as platform drivers. This is not correct and a blatant
abuse of platform device/driver.

Add a new bus type, vchiq_bus_type and device type (struct vchiq_device)
which will be used to migrate child devices that the vchiq interfaces
creates/registers from the platform device/driver.

Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Link: https://lore.kernel.org/r/20230923143200.268063-4-umang.jain@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/Makefile
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_bus.c [new file with mode: 0644]
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_bus.h [new file with mode: 0644]