]> git.baikalelectronics.ru Git - kernel.git/commit
jme: GHC register control fix for new hardware
authorakeemting <akeem@jmicron.com>
Thu, 4 Dec 2008 05:19:16 +0000 (21:19 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Dec 2008 05:19:16 +0000 (21:19 -0800)
commit8c38b15957a34075c37cc1eddf1ac3a2ddc2b08a
tree98a0e6000bf92f26b0a2f75afbe8daf8f6f602d5
parentffbf91b789a711ea0fd341ef24d542ebe8dfc191
jme: GHC register control fix for new hardware

Due to the hardware design, except the first chip on the market,
other chips needs to setup the clock source for MAC processor
implicitly through Global Host Control Register(GHC).
(Strange design huh?)

10/100M uses the PCI-E as clock source, and 1G uses GPHY.

And I reordered the code a little, to make it easier to read.

Found-by: "Ethan" <ethanhsiao@jmicron.com>
Fixed-by: "akeemting" <akeem@jmicron.com>
Signed-off-by: "Guo-Fu Tseng" <cooldavid@cooldavid.org>
Acked-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/jme.c
drivers/net/jme.h