diff mbox series

Subject: [PATCH v3 net-next 3/4] net:phy: Add PHY_RST_AFTER_PROBE flag for LAN8710/20/40

Message ID MW4PR17MB4243D8F6B61CE0B20E512F65DFA70@MW4PR17MB4243.namprd17.prod.outlook.com (mailing list archive)
State Changes Requested
Headers show
Series Subject: [PATCH v3 net-next 3/4] net:phy: Add PHY_RST_AFTER_PROBE flag for LAN8710/20/40 | expand

Checks

Context Check Description
netdev/cover_letter success Link
netdev/fixes_present success Link
netdev/patch_count success Link
netdev/tree_selection success Guessed tree name to be net-next
netdev/subject_prefix warning Target tree name not specified in the subject
netdev/cc_maintainers success CCed 6 of 6 maintainers
netdev/source_inline success Was 0 now: 0
netdev/verify_signedoff success Link
netdev/module_param success Was 0 now: 0
netdev/build_32bit fail Errors and warnings before: 624 this patch: 614
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/verify_fixes success Link
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 24 lines checked
netdev/build_allmodconfig_warn fail Errors and warnings before: 540 this patch: 534
netdev/header_inline success Link
netdev/stable success Stable not CCed

Commit Message

Badel, Laurent Jan. 15, 2021, 5:22 p.m. UTC
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@eaton.com>
---
 drivers/net/phy/smsc.c | 4 ++--
 include/linux/phy.h    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

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