diff options
author | Marek Vasut <marex@denx.de> | 2019-06-23 15:11:43 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-06-29 00:32:51 +0300 |
commit | 337d1727a3895775b5e5ef67d3ca0fea2e2ae768 (patch) | |
tree | cc6997f0ed4b638c74a9a4fdd4e84403cf6d1664 /drivers/net/ethernet/ti/cpsw_priv.h | |
parent | 7c3d310d8fc44e549f0ac77b2cc4bc796419e38b (diff) | |
download | linux-337d1727a3895775b5e5ef67d3ca0fea2e2ae768.tar.xz |
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 'drivers/net/ethernet/ti/cpsw_priv.h')
-rw-r--r-- | drivers/net/ethernet/ti/cpsw_priv.h | 1 |
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; |