[U-Boot] [PATCH] phy/marvell: Rewrite the MV88E1111 phy config function based on kernel code
Zang Roy-R61911
r61911 at freescale.com
Mon Oct 24 04:30:05 CEST 2011
> -----Original Message-----
> From: Wolfgang Denk [mailto:wd at denx.de]
> Sent: Monday, October 24, 2011 3:42 AM
> To: Zang Roy-R61911
> Cc: u-boot at lists.denx.de; Kumar Gala
> Subject: Re: [U-Boot] [PATCH] phy/marvell: Rewrite the MV88E1111 phy config
> function based on kernel code
>
> Dear Roy Zang,
>
> In message <1319178713-12472-2-git-send-email-tie-fei.zang at freescale.com> you
> wrote:
> > The original m88e1111s_config() does not do the SGMII mode
> > initialization and is buggy. Rewrite the function according to
> > 3.0.6 kernel function m88e1111_config_init() in drivers/net/phy/marvell.c
> >
> > Signed-off-by: Roy Zang <tie-fei.zang at freescale.com>
> > Acked-by: Andy Fleming <afleming at freescale.com>
> > Cc: Kumar Gala <galak at kernel.crashing.org>
> ...
> > + /* soft reset */
> > + phy_write(phydev, MDIO_DEVAD_NONE, MII_BMCR, BMCR_RESET);
> > + do
> > + reg = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMCR);
> > + while (reg & BMCR_RESET);
> ...
> > + /* soft reset */
> > + phy_write(phydev, MDIO_DEVAD_NONE, MII_BMCR, BMCR_RESET);
> > + do
> > + reg = phy_read(phydev, MDIO_DEVAD_NONE, MII_BMCR);
> > + while (reg & BMCR_RESET);
>
> Do we really need this double reset?
The MV88E1111 user manual requests "any changes to HWCFG_MODE of Extended PHY Specific Status Register must be followed by software reset to take effect"
More information about the U-Boot
mailing list