Messages in this thread | | | Date | Sun, 24 Jul 2022 18:53:59 +0200 | From | Andrew Lunn <> | Subject | Re: [PATCH net-next 2/2] net: macb: Add zynqmp SGMII dynamic configuration support |
| |
> + ret = of_property_read_u32_array(pdev->dev.of_node, "power-domains", > + pm_info, ARRAY_SIZE(pm_info)); > + if (ret < 0) { > + dev_err(&pdev->dev, "Failed to read power management information\n"); > + return ret; > + } > + ret = zynqmp_pm_set_gem_config(pm_info[1], GEM_CONFIG_FIXED, 0); > + if (ret < 0) > + return ret; > +
Documentation/devicetree/bindings/net/cdns,macb.yaml says:
power-domains: maxItems: 1
Yet you are using pm_info[1]?
Andrew
| |