Re: [PATCH v2 06/13] soc: synaptics: add SL2610 system controller support
From: Jisheng Zhang
Date: Mon Nov 23 2026 - 07:54:42 EST
On Mon, Nov 23, 2026 at 11:31:42AM +0100, Krzysztof Kozlowski wrote:
> On Sun, Nov 15, 2026 at 06:23:45PM +0800, Jisheng Zhang wrote:
>
> > +static const struct sl2610_syscon_data sl2610_mcu_data = {
> > + .cells = sl2610_mcu_cells,
> > + .num_cells = ARRAY_SIZE(sl2610_mcu_cells),
> > +};
> > +
> > +static const struct sl2610_syscon_data sl2610_avio_data = {
> > + .cells = sl2610_avio_cells,
> > + .num_cells = ARRAY_SIZE(sl2610_avio_cells),
> > +};
> > +
> > +static const struct sl2610_syscon_data sl2610_cpu_data = {
> > + .cells = sl2610_cpu_cells,
> > + .num_cells = ARRAY_SIZE(sl2610_cpu_cells),
>
> That's just MFD driver, so should be in MFD, no? Why placing standard
> MFD code - nothing soc specific - in the soc directory?
I'm not sure which is better. But FWICT, sophgo, samsung, microchip put
mfd drivers in soc directory. So I guess the reason behind this is these
drivers are soc specific?
>
>
> > +};
> > +
> > +static int sl2610_syscon_probe(struct platform_device *pdev)
> > +{
> > + const struct sl2610_syscon_data *data = device_get_match_data(&pdev->dev);
> > +
> > + return devm_mfd_add_devices(&pdev->dev, PLATFORM_DEVID_AUTO,
> > + data->cells, data->num_cells, NULL, 0, NULL);
> > +}
>
> Best regards,
> Krzysztof
>