bnx2x: Fix register access timeout in 10M
commit0c786f0246951fdd9b206249aab9601fb788f9e4
authorYaniv Rosner <yanivr@broadcom.com>
Thu, 5 Nov 2009 17:18:32 +0000 (5 19:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Nov 2009 04:00:52 +0000 (5 20:00 -0800)
tree3738650a16563d059a0a5a4bb7b5700a6e5016a3
parent46d15cc7a09d6a7f96908b2cd812744c483893b4
bnx2x: Fix register access timeout in 10M

In BCM8481 when link speed goes from 1G to 10M, driver received timeout
since the MAC clock hasn't synced yet with the new speed, so it is required
first to program the MAC with the new speed, and only then configure other
parameters

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/bnx2x_link.c