projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd38f73
)
bnx2x: Fix BCM54618se invalid link indication
author
Yaniv Rosner
<
[email protected]
>
Tue, 2 Aug 2011 23:00:00 +0000
(23:00 +0000)
committer
David S. Miller
<
[email protected]
>
Wed, 3 Aug 2011 10:22:18 +0000
(
03:22
-0700)
After resetting BCM54618se, link partner would still see link since the PHY wasn't put into low-power state.
Signed-off-by: Yaniv Rosner <
[email protected]
>
Signed-off-by: Eilon Greenstein <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/bnx2x/bnx2x_link.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnx2x/bnx2x_link.c
b/drivers/net/bnx2x/bnx2x_link.c
index cf8b8d13ab6cee6241b1f1fc2a755fe6414e6b56..5e6f3513862cf78e9c2f96f66b7b66d98ed5623f 100644
(file)
--- a/
drivers/net/bnx2x/bnx2x_link.c
+++ b/
drivers/net/bnx2x/bnx2x_link.c
@@
-10219,8
+10219,15
@@
static void bnx2x_54618se_link_reset(struct bnx2x_phy *phy,
u32 cfg_pin;
u8 port;
- /* This works with E3 only, no need to check the chip
- before determining the port. */
+ /*
+ * In case of no EPIO routed to reset the GPHY, put it
+ * in low power mode.
+ */
+ bnx2x_cl22_write(bp, phy, MDIO_PMA_REG_CTRL, 0x800);
+ /*
+ * This works with E3 only, no need to check the chip
+ * before determining the port.
+ */
port = params->port;
cfg_pin = (REG_RD(bp, params->shmem_base +
offsetof(struct shmem_region,