2013-12-27 07:27:52 +08:00
|
|
|
From bea69c47f5b93b3142f8833f8a34b666d5d7d6a7 Mon Sep 17 00:00:00 2001
|
2013-10-07 02:31:32 +08:00
|
|
|
From: Hauke Mehrtens <hauke@hauke-m.de>
|
2013-12-27 07:27:52 +08:00
|
|
|
Date: Fri, 20 Dec 2013 02:16:11 +0100
|
|
|
|
Subject: [PATCH 206/208] b44: activate PHY when MAC is off
|
2013-10-07 02:31:32 +08:00
|
|
|
|
|
|
|
Without this patch we can not access the PHY when the MAC is switched
|
|
|
|
off. This PHY access is needed to configure the switch, which is done
|
|
|
|
through PHY registers.
|
|
|
|
|
|
|
|
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
|
2013-12-27 07:27:52 +08:00
|
|
|
Signed-off-by: David S. Miller <davem@davemloft.net>
|
2013-10-07 02:31:32 +08:00
|
|
|
---
|
|
|
|
drivers/net/ethernet/broadcom/b44.c | 5 ++++-
|
|
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
--- a/drivers/net/ethernet/broadcom/b44.c
|
|
|
|
+++ b/drivers/net/ethernet/broadcom/b44.c
|
2013-12-27 07:27:52 +08:00
|
|
|
@@ -1360,7 +1360,10 @@ static void b44_halt(struct b44 *bp)
|
2013-10-07 02:31:32 +08:00
|
|
|
bw32(bp, B44_MAC_CTRL, MAC_CTRL_PHY_PDOWN);
|
|
|
|
/* now reset the chip, but without enabling the MAC&PHY
|
|
|
|
* part of it. This has to be done _after_ we shut down the PHY */
|
|
|
|
- b44_chip_reset(bp, B44_CHIP_RESET_PARTIAL);
|
2013-10-23 05:01:35 +08:00
|
|
|
+ if (bp->flags & B44_FLAG_EXTERNAL_PHY)
|
2013-10-07 02:31:32 +08:00
|
|
|
+ b44_chip_reset(bp, B44_CHIP_RESET_FULL);
|
|
|
|
+ else
|
|
|
|
+ b44_chip_reset(bp, B44_CHIP_RESET_PARTIAL);
|
|
|
|
}
|
|
|
|
|
|
|
|
/* bp->lock is held. */
|