]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/net/tg3.c
tg3: Use constant 500KHz MI clock on adapters with a CPMU
authorMatt Carlson <mcarlson@broadcom.com>
Fri, 2 May 2008 23:47:53 +0000 (16:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 May 2008 23:47:53 +0000 (16:47 -0700)
commit8ef214288622bf523a3b3096958292a1c63132ad
treea9c1139ca15d642ec14a423d1ea163be81fbbce9
parent026672d0997c911c9bef9aabe862884fc0add106
tg3: Use constant 500KHz MI clock on adapters with a CPMU

The MI clock is not configured correctly on adapters with the CPMU
present.  The tg3 driver has code which statically sets the MI clock to
be a fraction of the speed at which the core clock is running.
However, the CPMU can change the adapter's core clock frequency based
on operating conditions.  Consequently, the MI will run slow when the
core's clock has been slowed down.

There is a new 500KHz constant frequency clock available on adapters
with a CPMU.  This patch removes the static core clock scaling and
configures the MI clock to use this new 500KHz clock instead.

Running the MI clock at slower speeds will not directly result in data
corruption, but it does challenge the PHY read and write routine timeouts.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c
drivers/net/tg3.h