b44: abort when no PHY is available at all
authorHauke Mehrtens <hauke@hauke-m.de>
Fri, 20 Dec 2013 01:16:08 +0000 (02:16 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Dec 2013 01:48:48 +0000 (20:48 -0500)
commit7befa6abe09c84269b8af614a166409090346cf8
treef62842358cffb36a5df5a1f28e8e1cb820fb9b35
parent5ab6329c5224d8135d76da18066edf3395f679f5
b44: abort when no PHY is available at all

When the phy address is 31, this means that there is no PHY connected
to this MAC at all, no internal and no external PHY. Reading these PHY
registers causes a system reset on some routers.

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