Message ID | 20231123-b4-camss-named-power-domains-v6-0-3ec2fd9e8e36@linaro.org |
---|---|
Headers | show |
Series | media: qcom: camss: Introduce support for named power-domains | expand |
Right now we use fixed indexes to assign power-domains, with a requirement for the TOP GDSC to come last in the list. Adding support for named power-domains means the declaration in the dtsi can come in any order. After this change we continue to support the old indexing - if a SoC resource declaration or the in-use dtb doesn't declare power-domain names we fall back to the default legacy indexing.
On 06/12/2023 12:35, Hans Verkuil wrote: >> + if (IS_ERR_OR_NULL(camss->genpd)) { >> ret = PTR_ERR(camss->genpd); > I get this smatch warning here: > > drivers/media/platform/qcom/camss/camss.c:1555 camss_configure_pd() warn: passing zero to 'PTR_ERR' > > I'm not really sure what the intent is here. > > If the fix is small, then I can change it myself, otherwise I need an updated patch. > > Regards, > > Hans Update sent