]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net:cpsw: fix probe_dt when only slave 1 is pinned out
authorMugunthan V N <mugunthanvnm@ti.com>
Fri, 24 Oct 2014 13:21:33 +0000 (18:51 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Oct 2014 19:44:35 +0000 (15:44 -0400)
commitb6f256b68783b608af61d4b783d1776d0504f9dc
tree51d9f2bf09897dfcf6e634ac6b594872a88c30ae
parente3257f0ba1442cf03df78c852176bd982b1cdb87
drivers: net:cpsw: fix probe_dt when only slave 1 is pinned out

when slave 0 has no phy and slave 1 connected to phy, driver probe will
fail as there is no phy id present for slave 0 device tree, so continuing
even though no phy-id found, also moving mac-id read later to ensure
mac-id is read from device tree even when phy-id entry in not found.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c