diff options
author | Timur Tabi <timur@freescale.com> | 2011-10-04 16:44:43 -0500 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2011-10-09 17:57:53 -0500 |
commit | 30381716284b688cb1b4e315aa6b8ef7422fa172 (patch) | |
tree | dcc69b390f3aa32f12547903f19c4ebc336cc568 /arch/powerpc/cpu/mpc86xx | |
parent | 712cf7ab0b58e51a69e339397457d3591b6b650e (diff) | |
download | u-boot-imx-30381716284b688cb1b4e315aa6b8ef7422fa172.zip u-boot-imx-30381716284b688cb1b4e315aa6b8ef7422fa172.tar.gz u-boot-imx-30381716284b688cb1b4e315aa6b8ef7422fa172.tar.bz2 |
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>
Diffstat (limited to 'arch/powerpc/cpu/mpc86xx')
0 files changed, 0 insertions, 0 deletions