lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <CY8HT5NHUF4D.X59U8LV1BCFW@gimli.ms.mff.cuni.cz>
Date: Sun, 07 Jan 2024 14:02:36 +0100
From: "Karel Balej" <karelb@...li.ms.mff.cuni.cz>
To: "Krzysztof Kozlowski" <krzysztof.kozlowski@...aro.org>, "Karel Balej"
 <balejk@...fyz.cz>, "Lee Jones" <lee@...nel.org>, "Rob Herring"
 <robh+dt@...nel.org>, "Krzysztof Kozlowski"
 <krzysztof.kozlowski+dt@...aro.org>, "Conor Dooley" <conor+dt@...nel.org>,
 "Liam Girdwood" <lgirdwood@...il.com>, "Mark Brown" <broonie@...nel.org>,
 <devicetree@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Cc: Duje Mihanović <duje.mihanovic@...le.hr>,
 <~postmarketos/upstreaming@...ts.sr.ht>, <phone-devel@...r.kernel.org>
Subject: Re: [RFC PATCH 4/5] regulator: add 88pm88x regulators driver

On Sun Jan 7, 2024 at 11:35 AM CET, Krzysztof Kozlowski wrote:
> On 28/12/2023 10:39, Karel Balej wrote:
> > diff --git a/drivers/mfd/88pm88x.c b/drivers/mfd/88pm88x.c
> > index 69a8e39d43b3..999d0539b720 100644
> > --- a/drivers/mfd/88pm88x.c
> > +++ b/drivers/mfd/88pm88x.c
> > @@ -68,6 +68,21 @@ static struct mfd_cell pm886_devs[] = {
> >  		.num_resources = ARRAY_SIZE(pm88x_onkey_resources),
> >  		.resources = pm88x_onkey_resources,
> >  	},
> > +	{
> > +		.name = "88pm88x-regulator",
> > +		.id = PM88X_REGULATOR_ID_LDO2,
> > +		.of_compatible = "marvell,88pm88x-regulator",
> > +	},
> > +	{
> > +		.name = "88pm88x-regulator",
> > +		.id = PM88X_REGULATOR_ID_LDO15,
> > +		.of_compatible = "marvell,88pm88x-regulator",
> > +	},
> > +	{
> > +		.name = "88pm88x-regulator",
> > +		.id = PM886_REGULATOR_ID_BUCK2,
> > +		.of_compatible = "marvell,88pm88x-regulator",
>
> Same compatible per each regulator looks suspicious, if not even wrong.
> What are these?

The original attempt for upstreaming this MFD had a different compatible
for each regulator which was not correct according to the reviewers at
the time. I have thus used the same compatible for all regulators and
make the distinction in the regulator driver (using the .id property).
But I think that the problem here is again that I have confused the
purpose of .name and .of_compatible properties of struct mfd_cell - if a
driver is probed due to the .name property then I indeed should not need
compatible for the regulator driver at all.

>
> Best regards,
> Krzysztof

Best regards,
K. B.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ