path: root/drivers/net/ethernet/ti/cpsw_priv.h
diff options
authorMarek Vasut <marex@denx.de>2019-06-23 14:11:43 +0200
committerDavid S. Miller <davem@davemloft.net>2019-06-28 14:32:51 -0700
commit337d1727a3895775b5e5ef67d3ca0fea2e2ae768 (patch)
treecc6997f0ed4b638c74a9a4fdd4e84403cf6d1664 /drivers/net/ethernet/ti/cpsw_priv.h
parentMerge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf (diff)
net: ethernet: ti: cpsw: Assign OF node to slave devices
Assign OF node to CPSW slave devices, otherwise it is not possible to bind e.g. DSA switch to them. Without this patch, the DSA code tries to find the ethernet device by OF match, but fails to do so because the slave device has NULL OF node. Signed-off-by: Marek Vasut <marex@denx.de> Cc: David S. Miller <davem@davemloft.net> Cc: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/cpsw_priv.h b/drivers/net/ethernet/ti/cpsw_priv.h
index 04795b97ee71..e32f11da2dce 100644
--- a/drivers/net/ethernet/ti/cpsw_priv.h
+++ b/drivers/net/ethernet/ti/cpsw_priv.h
@@ -272,6 +272,7 @@ struct cpsw_host_regs {
struct cpsw_slave_data {
+ struct device_node *slave_node;
struct device_node *phy_node;
char phy_id[MII_BUS_ID_SIZE];
int phy_if;