]> Git Repo - linux.git/commitdiff
net: stmmac: fix "snps,axi-config" node property parsing
authorJisheng Zhang <[email protected]>
Fri, 2 Dec 2022 16:17:39 +0000 (00:17 +0800)
committerPaolo Abeni <[email protected]>
Tue, 6 Dec 2022 09:23:24 +0000 (10:23 +0100)
In dt-binding snps,dwmac.yaml, some properties under "snps,axi-config"
node are named without "axi_" prefix, but the driver expects the
prefix. Since the dt-binding has been there for a long time, we'd
better make driver match the binding for compatibility.

Fixes: afea03656add ("stmmac: rework DMA bus setting and introduce new platform AXI structure")
Signed-off-by: Jisheng Zhang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Paolo Abeni <[email protected]>
drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c

index 50f6b4a14be4cbc027ee0844a5db896767f83873..eb6d9cd8e93f88770288ca902c07da3c4296caaf 100644 (file)
@@ -108,10 +108,10 @@ static struct stmmac_axi *stmmac_axi_setup(struct platform_device *pdev)
 
        axi->axi_lpi_en = of_property_read_bool(np, "snps,lpi_en");
        axi->axi_xit_frm = of_property_read_bool(np, "snps,xit_frm");
-       axi->axi_kbbe = of_property_read_bool(np, "snps,axi_kbbe");
-       axi->axi_fb = of_property_read_bool(np, "snps,axi_fb");
-       axi->axi_mb = of_property_read_bool(np, "snps,axi_mb");
-       axi->axi_rb =  of_property_read_bool(np, "snps,axi_rb");
+       axi->axi_kbbe = of_property_read_bool(np, "snps,kbbe");
+       axi->axi_fb = of_property_read_bool(np, "snps,fb");
+       axi->axi_mb = of_property_read_bool(np, "snps,mb");
+       axi->axi_rb =  of_property_read_bool(np, "snps,rb");
 
        if (of_property_read_u32(np, "snps,wr_osr_lmt", &axi->axi_wr_osr_lmt))
                axi->axi_wr_osr_lmt = 1;
This page took 0.052225 seconds and 4 git commands to generate.