[<prev] [next>] [day] [month] [year] [list]
Message-ID: <MW4PR17MB4243D8F6B61CE0B20E512F65DFA70@MW4PR17MB4243.namprd17.prod.outlook.com>
Date: Fri, 15 Jan 2021 17:22:38 +0000
From: "Badel, Laurent" <LaurentBadel@...on.com>
To: "davem@...emloft.net" <davem@...emloft.net>,
"m.felsch@...gutronix.de" <m.felsch@...gutronix.de>,
"fugang.duan@....com" <fugang.duan@....com>,
"kuba@...nel.org" <kuba@...nel.org>,
"andrew@...n.ch" <andrew@...n.ch>,
Heiner Kallweit <hkallweit1@...il.com>,
"linux@...linux.org.uk" <linux@...linux.org.uk>,
"p.zabel@...gutronix.de" <p.zabel@...gutronix.de>,
"lgirdwood@...il.com" <lgirdwood@...il.com>,
"broonie@...nel.org" <broonie@...nel.org>,
"robh+dt@...nel.org" <robh+dt@...nel.org>,
"richard.leitner@...data.com" <richard.leitner@...data.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"f.fainelli@...il.com" <f.fainelli@...il.com>,
"marex@...x.de" <marex@...x.de>
Subject: Subject: [PATCH v3 net-next 3/4] net:phy: Add PHY_RST_AFTER_PROBE
flag for LAN8710/20/40
Rename unused PHY_RST_AFTER_CLK_EN flag to PHY_RST_AFTER_PROBE for
LAN8710/LAN8720 and LAN8740. This flag can be used by phy_probe() to
assert PHY hardware reset after probing the driver.
Signed-off-by: Laurent Badel <laurentbadel@...on.com>
---
drivers/net/phy/smsc.c | 4 ++--
include/linux/phy.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/phy/smsc.c b/drivers/net/phy/smsc.c
index 33372756a451..ea966e463dbf 100644
--- a/drivers/net/phy/smsc.c
+++ b/drivers/net/phy/smsc.c
@@ -432,7 +432,7 @@ static struct phy_driver smsc_phy_driver[] = {
.name = "SMSC LAN8710/LAN8720",
/* PHY_BASIC_FEATURES */
-
+ .flags = PHY_RST_AFTER_PROBE,
.probe = smsc_phy_probe,
.remove = smsc_phy_remove,
@@ -459,7 +459,7 @@ static struct phy_driver smsc_phy_driver[] = {
.name = "SMSC LAN8740",
/* PHY_BASIC_FEATURES */
- .flags = PHY_RST_AFTER_CLK_EN,
+ .flags = PHY_RST_AFTER_PROBE,
.probe = smsc_phy_probe,
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 58b4a2d45df9..0d588ec6cd5e 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -78,7 +78,7 @@ extern const int phy_10gbit_features_array[1];
#define PHY_IGNORE_INTERRUPT -2
#define PHY_IS_INTERNAL 0x00000001
-#define PHY_RST_AFTER_CLK_EN 0x00000002
+#define PHY_RST_AFTER_PROBE 0x00000002
#define PHY_POLL_CABLE_TEST 0x00000004
#define MDIO_DEVICE_IS_PHY 0x80000000
--
2.17.1
-----------------------------
Eaton Industries Manufacturing GmbH ~ Registered place of business: Route de la Longeraie 7, 1110, Morges, Switzerland
-----------------------------
Powered by blists - more mailing lists