From: Christian Marangi Date: Mon, 24 Jun 2024 21:03:30 +0000 (+0200) Subject: net: mediatek: handle alternative name for pn_swap property X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=1223e5bb17b15ffb4587de8aa6ed2b6ac051734f;p=u-boot.git net: mediatek: handle alternative name for pn_swap property Handle alternative name for pn_swap property as upstream linux use mediatek,pnswap. Signed-off-by: Christian Marangi --- diff --git a/drivers/net/mtk_eth.c b/drivers/net/mtk_eth.c index 94f17a97fe..5098afef8a 100644 --- a/drivers/net/mtk_eth.c +++ b/drivers/net/mtk_eth.c @@ -1964,7 +1964,9 @@ static int mtk_eth_of_to_plat(struct udevice *dev) return -ENODEV; } - priv->pn_swap = ofnode_read_bool(args.node, "pn_swap"); + /* Upstream linux use mediatek,pnswap instead of pn_swap */ + priv->pn_swap = ofnode_read_bool(args.node, "pn_swap") || + ofnode_read_bool(args.node, "mediatek,pnswap"); } else if (priv->phy_interface == PHY_INTERFACE_MODE_USXGMII) { /* get corresponding usxgmii phandle */ ret = dev_read_phandle_with_args(dev, "mediatek,usxgmiisys",