On 31/05/18 12:40, Lucas Stach wrote: > Hi Ulf, > > Am Donnerstag, den 31.05.2018, 12:59 +0200 schrieb Ulf Hansson: >> To support devices being partitioned across multiple PM domains, let's >> begin with extending genpd to cope with these kind of configurations. >> >> Therefore, add a new exported function genpd_dev_pm_attach_by_id(), which >> is similar to the existing genpd_dev_pm_attach(), but with the difference >> that it allows its callers to provide an index to the PM domain that it >> wants to attach. >> >> Note that, genpd_dev_pm_attach_by_id() shall only be called by the driver >> core / PM core, similar to how the existing dev_pm_domain_attach() makes >> use of genpd_dev_pm_attach(). However, this is implemented by following >> changes on top. > > by_id() APIs are not really intuitive to use for driver writers. Other > subsystems have solved this by providing a "-names" property to give > the phandles a bit more meaning and then providing a by_name API. I > would really appreciate if PM domains could move in the same direction. As discussed here [0], there are plans to add that. Cheers Jon [0] https://patchwork.ozlabs.org/patch/921938/ -- nvpublic -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html