From: "Clément Léger" <clement.leger@bootlin.com>
To: Philipp Zabel <p.zabel@pengutronix.de>
Cc: Rob Herring <robh+dt@kernel.org>,
Frank Rowand <frowand.list@gmail.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Allan Nielsen <allan.nielsen@microchip.com>,
linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH 0/2] add fwnode support to reset subsystem
Date: Thu, 24 Mar 2022 11:16:31 +0100 [thread overview]
Message-ID: <20220324111631.64208e6a@fixe.home> (raw)
In-Reply-To: <6e04fbc91a924201aac672165a938bf76cf873f1.camel@pengutronix.de>
Le Thu, 24 Mar 2022 11:08:15 +0100,
Philipp Zabel <p.zabel@pengutronix.de> a écrit :
> > - It can be used as a PCIe endpoint, connected to a separate platform
> > that acts as the PCIe root complex. In this case, all the devices
> > that are embedded on this SoC are exposed through PCIe BARs and the
> > ARM64 cores of the SoC are not used. Since this is a PCIe card, it
> > can be plugged on any platform, of any architecture supporting PCIe.
> >
> > Appart from adding software node support, the fwnode API would also
> > allow to add ACPI support more easily later.
>
> Thank you for the explanation. So this would be used by the sparx5
> switch reset driver to provide the microchip,lan966x-switch-reset
> controller via software node?
Exactly.
>
> If that needs to be converted to fwnode anyway, it would be nice to
> include the conversion in this series as an example.
Yes indeed, the sparx5 driver was modified in my private tree. I will
change it to use fwnode.
>
> [...]
> > On that side, I must say I'm not really competent regarding ACPI
> > which I do not know enough to answer you on that point.
> >
> > The discussions we had with Mark Brown regarding fwnode ACPI support
> > pointed out the fact that we should not create unwanted ACPI support
> > by using the same descriptions/specifications that exists for the
> > device-tree. In order to avoid that, we suggested to explicitely left
> > out ACPI with this fwnode support. This will allow to specify that
> > support later and integrate it in the subsystem that have been
> > converted to fwnode.
>
> Ok.
>
> > >
> > > On the other hand, I think it would be good to avoid the direct of_node
> > > assignment, possibly by letting devm_reset_controller_register()
> > > initialize of_node or fwnode from the device for most cases, and by
> > > adding of_reset_controller_register() and
> > > fwnode_reset_controller_register() variants that take the node as an
> > > argument for the rest.
> > > That could allow to eventually get rid of the of_node pointer.
> >
> > Ok, I see that. Do you want this to be done in this series ?
>
> Just thinking out loudly, before starting to drop the
> rcdev->of_node assigment from drivers en masse, I'd like to use the
> opportunity and turn reset_controller_register() and friends into
> macros that provide the module owner as a parameter, so the explicit
> rcdev->owner = THIS_MODULE assignment can be removed from the drivers
> as well.
Indeed, that seems like a good thing to do, direct assignments are often
a pain to change all other the place. BTW, once drivers are converted
to avoid direct assignment of the of_node field, it will be removable,
the fwnode field will be sufficient for all operations.
Thanks,
Clément
--
Clément Léger,
Embedded Linux and Kernel engineer at Bootlin
https://bootlin.com
prev parent reply other threads:[~2022-03-24 10:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-23 9:50 [PATCH 0/2] add fwnode support to reset subsystem Clément Léger
2022-03-23 9:50 ` [PATCH 1/2] of: add function to convert fwnode_reference_args to of_phandle_args Clément Léger
2022-03-23 9:50 ` [PATCH 2/2] reset: add support for fwnode Clément Léger
2022-03-23 15:29 ` Philipp Zabel
2022-03-23 16:21 ` Clément Léger
2022-03-24 9:19 ` Clément Léger
2022-03-24 9:39 ` Philipp Zabel
2022-03-24 9:44 ` Philipp Zabel
2022-03-23 15:07 ` [PATCH 0/2] add fwnode support to reset subsystem Philipp Zabel
2022-03-23 16:05 ` Clément Léger
2022-03-24 10:08 ` Philipp Zabel
2022-03-24 10:16 ` Clément Léger [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220324111631.64208e6a@fixe.home \
--to=clement.leger@bootlin.com \
--cc=alexandre.belloni@bootlin.com \
--cc=allan.nielsen@microchip.com \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=robh+dt@kernel.org \
--cc=thomas.petazzoni@bootlin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).