]> git.dujemihanovic.xyz Git - u-boot.git/commit
drivers: net: cpsw: fix cpsw dp parse when num slaves as 1
authorMugunthan V N <mugunthanvnm@ti.com>
Thu, 28 Apr 2016 10:06:04 +0000 (15:36 +0530)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 24 May 2016 16:42:02 +0000 (11:42 -0500)
commitb2003c5458e883c691f3a7f5f770e6ed36e1b9d7
tree986357b636ff192e4bf302e35d90d59838d9e78c
parent3d12e804956ca996b6621cd1e04fabd39b401882
drivers: net: cpsw: fix cpsw dp parse when num slaves as 1

On some boards number of slaves can be 1 when only one port
ethernet is pinned out. So do not break when slave_index and
num slaves check fails, instead continue to parse the next
child.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/cpsw.c