]> 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)
commit048b54353e9aed77d700bfad4924950428731690
treecc6997f0ed4b638c74a9a4fdd4e84403cf6d1664
parent4bbe85fcf4540526b7e2075a1e7ba9dab0563157
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