]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: cpsw: don't ignore phy-mode if phy-handle is used
authorDavid Rivshin <drivshin@allworx.com>
Thu, 28 Apr 2016 01:38:26 +0000 (21:38 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Apr 2016 21:27:30 +0000 (17:27 -0400)
commit32f83f558cc52262f5cb44aa0306069f51ba56ce
tree336a87e13d221fde490d46f077f00c986854bd23
parent64d4d8e09a99920a0f0524d10aa470378e5718df
drivers: net: cpsw: don't ignore phy-mode if phy-handle is used

The phy-mode emac property was only being processed in the phy_id
or fixed-link cases. However if phy-handle was specified instead,
an error message would complain about the lack of phy_id or
fixed-link, and then jump past the of_get_phy_mode(). This would
result in the PHY mode defaulting to MII, regardless of what the
devicetree specified.

Fixes: f0a9ba90d1ca ("drivers: net: cpsw: add phy-handle parsing")
Signed-off-by: David Rivshin <drivshin@allworx.com>
Tested-by: Nicolas Chauvet <kwizart@gmail.com>
Tested-by: Andrew Goodbody <andrew.goodbody@cambrionix.com>
Reviewed-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c