Re: [PATCH net-next 2/2] net: macb: Add zynqmp SGMII dynamic configuration support

From: Andrew Lunn
Date: Sun Jul 24 2022 - 12:54:25 EST


> + 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