bugfix: Guruplug: Use standard miiphy call to reset PHY chip.
PATCH 1/1 bugfix: Guruplug: Use standard miiphy call to reset PHY chip.
Current PHY Software Reset operation in guruplug does not poll reset bit in control register to go to 0(auto clearing) for making sure reset was successful.This patch uses standard miiphy call miiphy_reset to make sure proper PHY reset operation.
--- board/Marvell/guruplug/guruplug.c | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-)
board/Marvell/guruplug/guruplug.c +1 -8
@@ -146,14 +146,7 @@ void mv_phy_88e1121_init(char *name)miiphy_write (name, devadr,MV88E1121_PGADR_REG ,0 );/* reset the phy */ -if (miiphy_read (name, devadr,PHY_BMCR , ®) !=0 ) { -printf ("Err..(%s) PHY status read failed\n" , __FUNCTION__); -return ; - } -if (miiphy_write (name, devadr,PHY_BMCR , reg |0x8000 ) !=0 ) { -printf ("Err..(%s) PHY reset failed\n" , __FUNCTION__); -return ; - } +miiphy_reset (name, devadr);printf ("88E1121 Initialized on %s\n" , name); }
Signature · 1 line
1.5.4.3
PATCH 1/1 bugfix: Guruplug: Use standard miiphy call to reset PHY chip.
Quoted 42 lines
-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Mahavir Jain
Sent: Wednesday, May 19, 2010 2:26 PM
To: u-boot at lists.denx.de
Cc: Mahavir Jain
Subject: [U-Boot] [PATCH Repost] bugfix: Guruplug: Use standard miiphy call to reset PHY chip.Current PHY Software Reset operation in guruplug does not poll reset bit in control register to go to 0(auto clearing) for making sure reset was successful.This patch uses standard miiphy call
miiphy_resetto make sure proper PHY reset operation.Signed-off-by Mahavir Jain <[email protected]>--- board/Marvell/guruplug/guruplug.c | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-)board/Marvell/guruplug/guruplug.c +1
-8@@ -146,14 +146,7 @@ void mv_phy_88e1121_init(char *name)miiphy_write (name, devadr,MV88E1121_PGADR_REG ,0 );/* reset the phy */ -if (miiphy_read (name, devadr,PHY_BMCR , ®) !=0 ) { -printf ("Err..(%s) PHY status read failed\n" , __FUNCTION__); -return ; - } -if (miiphy_write (name, devadr,PHY_BMCR , reg |0x8000 ) !=0 ) { -printf ("Err..(%s) PHY reset failed\n" , __FUNCTION__); -return ; - } +miiphy_reset (name, devadr);printf ("88E1121 Initialized on %s\n" , name);
Quoted 2 lines
}
--
Applied to u-boot-marvell.git master branch
Regards..
Prafulla . .