phy: call adjust_link in attach if using fixed-link
Normally, phy_update_status is in charge of reporting a change in link
status when phy is updated. When using fixed-link, speed and duplex are
initialized directly after registering the phy and there is no driver.
Hence when phy_update_status is called, the check for new values fails
and returns directly. Since update_link call is mandatory for some
network devices to work, call it directly when using fixed link in
phy_device_attach to force update of link.

Signed-off-by: Clement Leger <clement.leger@kalray.eu>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 63b9aad commit 9e3ea51f546fe4ed193ed97c47c7af09b1e5b477
@Clément Leger Clément Leger authored on 15 Oct 2018
Sascha Hauer committed on 16 Oct 2018
Showing 1 changed file
View
drivers/net/phy/phy.c