]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ti: am65-cpsw: Fix fwnode passed to phylink_create()
authorSiddharth Vadapalli <s-vadapalli@ti.com>
Tue, 24 May 2022 06:25:58 +0000 (11:55 +0530)
committerJakub Kicinski <kuba@kernel.org>
Thu, 26 May 2022 04:49:25 +0000 (21:49 -0700)
commite8a1587e36ff65aae4ffdaacc0eb66bfc680e1f9
tree37690abb5d14691c42117937f41c47d12e28cea8
parentcb25c2efc27d2b067142fd158fadb0fa4342f184
net: ethernet: ti: am65-cpsw: Fix fwnode passed to phylink_create()

am65-cpsw-nuss driver incorrectly uses fwnode member of common
ethernet device's "struct device_node" instead of using fwnode
member of the port's "struct device_node" in phylink_create().
This results in all ports having the same phy data when there
are multiple ports with their phy properties populated in their
respective nodes rather than the common ethernet device node.

Fix it here by using fwnode member of the port's node.

Fixes: e2f1617c5883 ("net: ethernet: ti: am65-cpsw: Convert to PHYLINK")
Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Link: https://lore.kernel.org/r/20220524062558.19296-1-s-vadapalli@ti.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ti/am65-cpsw-nuss.c