[PATCH 07/11] pmdomain: core: Export a common ->sync_state() helper for genpd providers
Ulf Hansson
ulf.hansson at linaro.org
Thu May 8 03:05:42 PDT 2025
On Wed, 7 May 2025 at 18:23, Dan Carpenter <dan.carpenter at linaro.org> wrote:
>
> On Thu, Apr 17, 2025 at 04:25:05PM +0200, Ulf Hansson wrote:
> > +void of_genpd_sync_state(struct device *dev)
> > +{
> > + struct device_node *np = dev->of_node;
> > + struct generic_pm_domain *genpd;
> > +
> > + if (!np)
> > + return;
> > +
> > + mutex_lock(&gpd_list_lock);
> > + list_for_each_entry(genpd, &gpd_list, gpd_list_node) {
> > + if (genpd->provider == &np->fwnode) {
>
> Presumably this would be "== of_fwnode_handle(np)) {" as well...
Yes, in fact there are a whole bunch of them in genpd. I am making
preparatory patch to change all of them.
>
> regards,
> dan carpenter
Thanks for reviewing!
Kind regards
Uffe
More information about the linux-arm-kernel
mailing list