b44: use fixed PHY device if we do not find any
authorHauke Mehrtens <hauke@hauke-m.de>
Fri, 20 Dec 2013 01:16:13 +0000 (02:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Dec 2013 01:48:49 +0000 (20:48 -0500)
commitb04138b335203b79ffe1b14750fa245a4dab7191
tree34b919de0a5f3ab927dda225a84cc624ab624741
parent656a7c2b1210deddf76444ecc76e058c0404ce80
b44: use fixed PHY device if we do not find any

The ADM6996L switch and some Broadcom switches with two MII interfaces
like the BCM5325F connected to two MACs on the SoC, used on some
routers do not return a valid value when reading the PHY id register
and Linux thinks there is no PHY at all, but that is wrong.
This patch registers a fixed phy in the arch code and then searches it
when there is no other phy in the Ethernet driver code.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/mips/bcm47xx/setup.c
drivers/net/ethernet/broadcom/b44.c
drivers/net/ethernet/broadcom/b44.h