]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net: ethernet: ti: cpsw: Assign OF node to slave devices
authorMarek Vasut <marex@denx.de>
Sun, 23 Jun 2019 12:11:43 +0000 (14:11 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2019 21:32:51 +0000 (14:32 -0700)
commit337d1727a3895775b5e5ef67d3ca0fea2e2ae768
treecc6997f0ed4b638c74a9a4fdd4e84403cf6d1664
parent7c3d310d8fc44e549f0ac77b2cc4bc796419e38b
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>
drivers/net/ethernet/ti/cpsw.c
drivers/net/ethernet/ti/cpsw_priv.h