Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1526919 > unrolled thread

[PATCH] net: phy: micrel: fix KSZ8041FTL supported value

Started byKirill Esipov <yesipov@gmail.com>
First post2016-11-21 18:00 +0100
Last post2016-11-24 02:30 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] net: phy: micrel: fix KSZ8041FTL supported value Kirill Esipov <yesipov@gmail.com> - 2016-11-21 18:00 +0100
    Re: [PATCH] net: phy: micrel: fix KSZ8041FTL supported value David Miller <davem@davemloft.net> - 2016-11-24 02:30 +0100

#1526919 — [PATCH] net: phy: micrel: fix KSZ8041FTL supported value

FromKirill Esipov <yesipov@gmail.com>
Date2016-11-21 18:00 +0100
Subject[PATCH] net: phy: micrel: fix KSZ8041FTL supported value
Message-ID<sG06L-3IM-39@gated-at.bofh.it>
Fix setting of SUPPORTED_FIBRE bit as it was not present in features
of KSZ8041.

Signed-off-by: Kirill Esipov <yesipov@gmail.com>
---
 drivers/net/phy/micrel.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
index 081df68..ea92d52 100644
--- a/drivers/net/phy/micrel.c
+++ b/drivers/net/phy/micrel.c
@@ -318,12 +318,12 @@ static int ksz8041_config_init(struct phy_device *phydev)
 	/* Limit supported and advertised modes in fiber mode */
 	if (of_property_read_bool(of_node, "micrel,fiber-mode")) {
 		phydev->dev_flags |= MICREL_PHY_FXEN;
-		phydev->supported &= SUPPORTED_FIBRE |
-				     SUPPORTED_100baseT_Full |
+		phydev->supported &= SUPPORTED_100baseT_Full |
 				     SUPPORTED_100baseT_Half;
-		phydev->advertising &= ADVERTISED_FIBRE |
-				       ADVERTISED_100baseT_Full |
+		phydev->supported |= SUPPORTED_FIBRE;
+		phydev->advertising &= ADVERTISED_100baseT_Full |
 				       ADVERTISED_100baseT_Half;
+		phydev->advertising |= ADVERTISED_FIBRE;
 		phydev->autoneg = AUTONEG_DISABLE;
 	}
 
-- 
2.7.4

[toc] | [next] | [standalone]


#1528922

FromDavid Miller <davem@davemloft.net>
Date2016-11-24 02:30 +0100
Message-ID<sGR1o-44N-11@gated-at.bofh.it>
In reply to#1526919
From: Kirill Esipov <yesipov@gmail.com>
Date: Mon, 21 Nov 2016 19:53:31 +0300

> Fix setting of SUPPORTED_FIBRE bit as it was not present in features
> of KSZ8041.
> 
> Signed-off-by: Kirill Esipov <yesipov@gmail.com>

Applied.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web