All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot]  [PATCH] net: mv88e61xx: fix autonegotiation on ports
@ 2019-02-04 20:56 Tim Harvey
  2019-02-10 19:36 ` Chris Packham
  2019-02-16 10:35 ` [U-Boot] " sbabic at denx.de
  0 siblings, 2 replies; 3+ messages in thread
From: Tim Harvey @ 2019-02-04 20:56 UTC (permalink / raw)
  To: u-boot

phy_reset should be called before autoneg is setup

The only boards using MV88E61XX_SWITCH are:
 - alliedtelesis/SBx81LIFKW
 - alliedtelesis/SBx81LIFXCAT
 - gateworks/gw_ventana

Cc: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---
 drivers/net/phy/mv88e61xx.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/phy/mv88e61xx.c b/drivers/net/phy/mv88e61xx.c
index ea54a15310..c1e2860329 100644
--- a/drivers/net/phy/mv88e61xx.c
+++ b/drivers/net/phy/mv88e61xx.c
@@ -945,14 +945,14 @@ static int mv88e61xx_phy_config(struct phy_device *phydev)
 				continue;
 			}
 
-			res = genphy_config_aneg(phydev);
+			res = phy_reset(phydev);
 			if (res < 0) {
-				printf("Error setting PHY %i autoneg\n", i);
+				printf("Error resetting PHY %i\n", i);
 				continue;
 			}
-			res = phy_reset(phydev);
+			res = genphy_config_aneg(phydev);
 			if (res < 0) {
-				printf("Error resetting PHY %i\n", i);
+				printf("Error setting PHY %i autoneg\n", i);
 				continue;
 			}
 
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH] net: mv88e61xx: fix autonegotiation on ports
  2019-02-04 20:56 [U-Boot] [PATCH] net: mv88e61xx: fix autonegotiation on ports Tim Harvey
@ 2019-02-10 19:36 ` Chris Packham
  2019-02-16 10:35 ` [U-Boot] " sbabic at denx.de
  1 sibling, 0 replies; 3+ messages in thread
From: Chris Packham @ 2019-02-10 19:36 UTC (permalink / raw)
  To: u-boot

Hi Tim,

On 5/02/19 9:57 AM, Tim Harvey wrote:
> phy_reset should be called before autoneg is setup
> 
> The only boards using MV88E61XX_SWITCH are:
>   - alliedtelesis/SBx81LIFKW
>   - alliedtelesis/SBx81LIFXCAT
>   - gateworks/gw_ventana
> 
> Cc: Chris Packham <chris.packham@alliedtelesis.co.nz>
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>

Makes sense to me

Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>

> ---
>   drivers/net/phy/mv88e61xx.c | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/net/phy/mv88e61xx.c b/drivers/net/phy/mv88e61xx.c
> index ea54a15310..c1e2860329 100644
> --- a/drivers/net/phy/mv88e61xx.c
> +++ b/drivers/net/phy/mv88e61xx.c
> @@ -945,14 +945,14 @@ static int mv88e61xx_phy_config(struct phy_device *phydev)
>   				continue;
>   			}
>   
> -			res = genphy_config_aneg(phydev);
> +			res = phy_reset(phydev);
>   			if (res < 0) {
> -				printf("Error setting PHY %i autoneg\n", i);
> +				printf("Error resetting PHY %i\n", i);
>   				continue;
>   			}
> -			res = phy_reset(phydev);
> +			res = genphy_config_aneg(phydev);
>   			if (res < 0) {
> -				printf("Error resetting PHY %i\n", i);
> +				printf("Error setting PHY %i autoneg\n", i);
>   				continue;
>   			}
>   
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot]  net: mv88e61xx: fix autonegotiation on ports
  2019-02-04 20:56 [U-Boot] [PATCH] net: mv88e61xx: fix autonegotiation on ports Tim Harvey
  2019-02-10 19:36 ` Chris Packham
@ 2019-02-16 10:35 ` sbabic at denx.de
  1 sibling, 0 replies; 3+ messages in thread
From: sbabic at denx.de @ 2019-02-16 10:35 UTC (permalink / raw)
  To: u-boot

> phy_reset should be called before autoneg is setup
> The only boards using MV88E61XX_SWITCH are:
>  - alliedtelesis/SBx81LIFKW
>  - alliedtelesis/SBx81LIFXCAT
>  - gateworks/gw_ventana
> Cc: Chris Packham <chris.packham@alliedtelesis.co.nz>
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
> Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz>

Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-02-16 10:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-04 20:56 [U-Boot] [PATCH] net: mv88e61xx: fix autonegotiation on ports Tim Harvey
2019-02-10 19:36 ` Chris Packham
2019-02-16 10:35 ` [U-Boot] " sbabic at denx.de

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.