]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: fix for fixed-link mode
authorMilind Parab <mparab@cadence.com>
Mon, 13 Jan 2020 03:30:43 +0000 (03:30 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 14 Jan 2020 02:37:42 +0000 (18:37 -0800)
commit6c21b0ecbd949568e376133bb9818e1dadf5a2fe
tree14f8d83668ab4fccd151413119e8b3441f413c55
parent33b70fa0ec3b327b70be9de09667dc90c5d60444
net: macb: fix for fixed-link mode

This patch fix the issue with fixed link. With fixed-link
device opening fails due to macb_phylink_connect not
handling fixed-link mode, in which case no MAC-PHY connection
is needed and phylink_connect return success (0), however
in current driver attempt is made to search and connect to
PHY even for fixed-link.

Fixes: 46e1536937ee ("net: macb: convert to phylink")
Signed-off-by: Milind Parab <mparab@cadence.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cadence/macb_main.c