[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <176217884879.8690.13419980100895110857@freya>
Date: Mon, 03 Nov 2025 19:37:28 +0530
From: Jai Luthra <jai.luthra@...asonboard.com>
To: Florian Fainelli <florian.fainelli@...adcom.com>, Krzysztof Kozlowski <krzk@...nel.org>, Raspberry Pi Kernel Maintenance <kernel-list@...pberrypi.com>, bcm-kernel-feedback-list@...adcom.com
Cc: Dave Stevenson <dave.stevenson@...pberrypi.com>, 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
Subject: Re: [PATCH 13/13] platform/raspberrypi: vchiq: Register vc-sm-cma as a platform driver
Quoting Jai Luthra (2025-11-03 19:27:41)
> Quoting Krzysztof Kozlowski (2025-11-02 15:03:55)
> > On 31/10/2025 18:27, Jai Luthra wrote:
> > > 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 | 3 +++
> > > 1 file changed, 3 insertions(+)
> > >
> > > diff --git a/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c b/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c
> > > index 6a7b96d3dae6275a483ef15dc619c5510454765e..09d33bec46ec45175378fff8dd1084d0a8a12dd6 100644
> > > --- a/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c
> > > +++ b/drivers/platform/raspberrypi/vchiq-interface/vchiq_arm.c
> > > @@ -63,6 +63,7 @@
> > > * the interface.
> > > */
> > > static struct vchiq_device *bcm2835_audio;
> > > +static struct vchiq_device *vcsm_cma;
> >
> > Please don't write singletons. How do you handle probe of two devices?
>
> This driver instantiates all the devices under the vchiq bus during its
> probe.
>
> The VCHIQ firmware doesn't support device enumeration, hence we have to
> list out the supported devices here.
And as Laurent just pointed out to me, yes these shouldn't be globally
defined singletons.
I'll move them inside struct vchiq_drv_mgmt in v2.
>
> >
> > >
> > > static const struct vchiq_platform_info bcm2835_info = {
> > > .cache_line_size = 32,
> > > @@ -1421,6 +1422,7 @@ static int vchiq_probe(struct platform_device *pdev)
> >
> >
> > Best regards,
> > Krzysztof
>
> Thanks,
> Jai
Powered by blists - more mailing lists