]> err.no Git - linux-2.6/commit
ibm_newemac: PowerPC 440EP/440GR EMAC PHY clock workaround
authorValentine Barshak <vbarshak@ru.mvista.com>
Tue, 22 Apr 2008 00:46:48 +0000 (10:46 +1000)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 25 Apr 2008 06:08:08 +0000 (02:08 -0400)
commit11121e3008a9282fc185cb2e81eda2d5436d099b
tree76bdf974ea16692f90c4cea5ab87c3aee81d8ef0
parent0925ab5d385b6cd1c435c82bfc01898c81f3d062
ibm_newemac: PowerPC 440EP/440GR EMAC PHY clock workaround

This patch adds ibm_newemac PHY clock workaround for 440EP/440GR EMAC
attached to a PHY which doesn't generate RX clock if there is no link.
The code is based on the previous ibm_emac driver stuff. The 440EP/440GR
allows controlling each EMAC clock separately as opposed to global clock
selection for 440GX.

BenH: Made that #ifdef CONFIG_PPC_DCR_NATIVE for now as dcri_* stuff doesn't
exist for MMIO type DCRs like Cell. Some future rework & improvements of the
DCR infrastructure will make that cleaner but for now, this makes it work.

Signed-off-by: Valentine Barshak <vbarshak@ru.mvista.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/ibm_newemac/core.c
drivers/net/ibm_newemac/core.h