[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20260105-b4-vc-sm-cma-v2-6-4daea749ced9@ideasonboard.com>
Date: Mon, 05 Jan 2026 14:26:52 +0530
From: Jai Luthra <jai.luthra@...asonboard.com>
To: Florian Fainelli <florian.fainelli@...adcom.com>,
Raspberry Pi Kernel Maintenance <kernel-list@...pberrypi.com>,
bcm-kernel-feedback-list@...adcom.com,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Dave Stevenson <dave.stevenson@...pberrypi.com>
Cc: Phil Elwell <phil@...pberrypi.com>, Stefan Wahren <wahrenst@....net>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
Kieran Bingham <kieran.bingham@...asonboard.com>,
Sumit Semwal <sumit.semwal@...aro.org>,
Christian König <christian.koenig@....com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-rpi-kernel@...ts.infradead.org,
Jai Luthra <jai.luthra@...asonboard.com>
Subject: [PATCH v2 6/6] platform/raspberrypi: vchiq: Register vc-sm-cma as
a platform driver
From: Dave Stevenson <dave.stevenson@...pberrypi.com>
Register the vc-sm-cma driver as a platform driver under vchiq.
Signed-off-by: Dave Stevenson <dave.stevenson@...pberrypi.com>
Signed-off-by: Jai Luthra <jai.luthra@...asonboard.com>
---
drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c | 2 ++
include/linux/raspberrypi/vchiq_arm.h | 1 +
2 files changed, 3 insertions(+)
diff --git a/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c b/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c
index 2cc7574a6132d9a26278439eb5f89c7bad94d764..00c31f18bb69fa8f21a2a048393ea76615eb926b 100644
--- a/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c
+++ b/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c
@@ -1415,6 +1415,7 @@ static int vchiq_probe(struct platform_device *pdev)
vchiq_debugfs_init(&mgmt->state);
mgmt->audio_dev = vchiq_device_register(&pdev->dev, "bcm2835-audio");
+ mgmt->vcsm_cma_dev = vchiq_device_register(&pdev->dev, "vcsm-cma");
return 0;
}
@@ -1423,6 +1424,7 @@ static void vchiq_remove(struct platform_device *pdev)
{
struct vchiq_drv_mgmt *mgmt = dev_get_drvdata(&pdev->dev);
+ vchiq_device_unregister(mgmt->vcsm_cma_dev);
vchiq_device_unregister(mgmt->audio_dev);
vchiq_debugfs_deinit();
vchiq_deregister_chrdev();
diff --git a/include/linux/raspberrypi/vchiq_arm.h b/include/linux/raspberrypi/vchiq_arm.h
index 541b4efd64d9a8229c7e4b5bc21137a9899af9c6..d59837eaaa8c0e699575897c01d17359a58b0e62 100644
--- a/include/linux/raspberrypi/vchiq_arm.h
+++ b/include/linux/raspberrypi/vchiq_arm.h
@@ -62,6 +62,7 @@ struct vchiq_drv_mgmt {
* the interface.
*/
struct vchiq_device *audio_dev;
+ struct vchiq_device *vcsm_cma_dev;
};
struct user_service {
--
2.52.0
Powered by blists - more mailing lists