]> git.karo-electronics.de Git - karo-tx-linux.git/commit
NET: MIPS: Lantiq: Non existing PHY was not handled gracefully
authorJohn Crispin <blogic@openwrt.org>
Tue, 17 Jan 2012 13:26:15 +0000 (14:26 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 26 Apr 2012 23:26:27 +0000 (00:26 +0100)
commitbc3bff8703c8c0c46e925d94517cc073a6636618
tree97b7123ae70343dd2b688a411b8107ea786fb29e
parent4d6152001382f7256894c2d2714895a8fc938858
NET: MIPS: Lantiq: Non existing PHY was not handled gracefully

The code blindly assumed that that a PHY device was present causing a BadVA.
In addition the driver should not fail to load incase no PHY was found.
Instead we print the following line and continue with no attached PHY.

   etop: mdio probe failed

Signed-off-by: John Crispin <blogic@openwrt.org>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3274/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
drivers/net/ethernet/lantiq_etop.c