]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
powerpc/85xx: fix null pointer dereference when init the SGMII TBI PHY
authorTimur Tabi <timur@freescale.com>
Tue, 4 Oct 2011 21:44:43 +0000 (16:44 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Sun, 9 Oct 2011 22:57:53 +0000 (17:57 -0500)
commit30381716284b688cb1b4e315aa6b8ef7422fa172
treedcc69b390f3aa32f12547903f19c4ebc336cc568
parent712cf7ab0b58e51a69e339397457d3591b6b650e
powerpc/85xx: fix null pointer dereference when init the SGMII TBI PHY

Function dtsec_configure_serdes() needs to know where the TBI PHY registers
are in order to configure SGMII for proper SerDes operation.

During SGMII initialzation, fm_eth_init_mac() passing NULL for 'phyregs'
when it called init_dtsec(), because it was believed that phyregs was not
used.  In fact, it is used by dtsec_configure_serdes() to configure the TBI
PHY registers.

We also need to define the PHY registers in struct fm_mdio.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/include/asm/fsl_fman.h
drivers/net/fm/dtsec.c
drivers/net/fm/eth.c