]> git.baikalelectronics.ru Git - 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)
commit22973431886137906a8fdbe4715d789ddf2b6510
treecc6997f0ed4b638c74a9a4fdd4e84403cf6d1664
parent636eeba75467f9d8c98c5f9c826bcc37dd67cb1b
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