bnx2x: Fix port identification for the 84834
authorYaniv Rosner <yanivr@broadcom.com>
Wed, 27 Feb 2013 13:06:44 +0000 (13:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Feb 2013 20:37:29 +0000 (15:37 -0500)
commit8ce7684533013d0a0dfbd627ed0430ecb0c82213
tree9b7400f61db85979709406a10ac5d9e501396ce6
parentfaf1e7857a1b87cd8baf48c3e962142e21ad417c
bnx2x: Fix port identification for the 84834

Fix the "ethtool -p" for boards with BCM84834, by using LED4 of the PHY
to toggle the link LED while keeping interrupt disabled to avoid NIG attentions,
and at the end restore NIG to previous state.

Signed-off-by: Yaniv Rosner <yanivr@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h