]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: lan9303: Fix lan9303_detect_phy_setup() for MDIO
authorEgil Hjelmeland <privat@egil-hjelmeland.no>
Sun, 30 Jul 2017 17:58:53 +0000 (19:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Jul 2017 02:23:29 +0000 (19:23 -0700)
commitabbc53cbfb2e2bb343df6734397251f5e4c5827e
treef726bff632bec2da4cbcfa120d3748928a7c083b
parenta6d868ae9a11b4f05d4fad3d1c586313f2453ca9
net: dsa: lan9303: Fix lan9303_detect_phy_setup() for MDIO

Handle that MDIO read with no response return 0xffff.

Signed-off-by: Egil Hjelmeland <privat@egil-hjelmeland.no>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/lan9303-core.c