Skip to content

Commit 13f6dff

Browse files
Ansuelfrank-w
authored andcommitted
net: phy: as21xxx: add flag PHY_DETACH_NO_HW_RESET
Add flag PHY_DETACH_NO_HW_RESET to handle firmware getting reset on calling phy_detach() if the GPIO reset PIN is defined in DT. This will skip the firmware from getting reset permitting the PHY to continue work when the PHY is torn down and gets up again. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
1 parent 2e1c5a0 commit 13f6dff

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

drivers/net/phy/as21xxx.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ static struct phy_driver as21xxx_drivers[] = {
965965
.led_hw_control_set = as21xxx_led_hw_control_set,
966966
.led_hw_control_get = as21xxx_led_hw_control_get,
967967
.led_polarity_set = as21xxx_led_polarity_set,
968-
.flags = PHY_DETACH_NO_RESET,
968+
.flags = PHY_DETACH_NO_HW_RESET,
969969
},
970970
{
971971
PHY_ID_MATCH_EXACT(PHY_ID_AS21011PB1),
@@ -978,7 +978,7 @@ static struct phy_driver as21xxx_drivers[] = {
978978
.led_hw_control_set = as21xxx_led_hw_control_set,
979979
.led_hw_control_get = as21xxx_led_hw_control_get,
980980
.led_polarity_set = as21xxx_led_polarity_set,
981-
.flags = PHY_DETACH_NO_RESET,
981+
.flags = PHY_DETACH_NO_HW_RESET,
982982
},
983983
{
984984
PHY_ID_MATCH_EXACT(PHY_ID_AS21010PB1),
@@ -991,7 +991,7 @@ static struct phy_driver as21xxx_drivers[] = {
991991
.led_hw_control_set = as21xxx_led_hw_control_set,
992992
.led_hw_control_get = as21xxx_led_hw_control_get,
993993
.led_polarity_set = as21xxx_led_polarity_set,
994-
.flags = PHY_DETACH_NO_RESET,
994+
.flags = PHY_DETACH_NO_HW_RESET,
995995
},
996996
{
997997
PHY_ID_MATCH_EXACT(PHY_ID_AS21010JB1),
@@ -1004,7 +1004,7 @@ static struct phy_driver as21xxx_drivers[] = {
10041004
.led_hw_control_set = as21xxx_led_hw_control_set,
10051005
.led_hw_control_get = as21xxx_led_hw_control_get,
10061006
.led_polarity_set = as21xxx_led_polarity_set,
1007-
.flags = PHY_DETACH_NO_RESET,
1007+
.flags = PHY_DETACH_NO_HW_RESET,
10081008
},
10091009
{
10101010
PHY_ID_MATCH_EXACT(PHY_ID_AS21210PB1),
@@ -1017,7 +1017,7 @@ static struct phy_driver as21xxx_drivers[] = {
10171017
.led_hw_control_set = as21xxx_led_hw_control_set,
10181018
.led_hw_control_get = as21xxx_led_hw_control_get,
10191019
.led_polarity_set = as21xxx_led_polarity_set,
1020-
.flags = PHY_DETACH_NO_RESET,
1020+
.flags = PHY_DETACH_NO_HW_RESET,
10211021
},
10221022
{
10231023
PHY_ID_MATCH_EXACT(PHY_ID_AS21510JB1),
@@ -1030,7 +1030,7 @@ static struct phy_driver as21xxx_drivers[] = {
10301030
.led_hw_control_set = as21xxx_led_hw_control_set,
10311031
.led_hw_control_get = as21xxx_led_hw_control_get,
10321032
.led_polarity_set = as21xxx_led_polarity_set,
1033-
.flags = PHY_DETACH_NO_RESET,
1033+
.flags = PHY_DETACH_NO_HW_RESET,
10341034
},
10351035
{
10361036
PHY_ID_MATCH_EXACT(PHY_ID_AS21510PB1),
@@ -1043,7 +1043,7 @@ static struct phy_driver as21xxx_drivers[] = {
10431043
.led_hw_control_set = as21xxx_led_hw_control_set,
10441044
.led_hw_control_get = as21xxx_led_hw_control_get,
10451045
.led_polarity_set = as21xxx_led_polarity_set,
1046-
.flags = PHY_DETACH_NO_RESET,
1046+
.flags = PHY_DETACH_NO_HW_RESET,
10471047
},
10481048
{
10491049
PHY_ID_MATCH_EXACT(PHY_ID_AS21511JB1),
@@ -1056,7 +1056,7 @@ static struct phy_driver as21xxx_drivers[] = {
10561056
.led_hw_control_set = as21xxx_led_hw_control_set,
10571057
.led_hw_control_get = as21xxx_led_hw_control_get,
10581058
.led_polarity_set = as21xxx_led_polarity_set,
1059-
.flags = PHY_DETACH_NO_RESET,
1059+
.flags = PHY_DETACH_NO_HW_RESET,
10601060
},
10611061
{
10621062
PHY_ID_MATCH_EXACT(PHY_ID_AS21210JB1),
@@ -1069,7 +1069,7 @@ static struct phy_driver as21xxx_drivers[] = {
10691069
.led_hw_control_set = as21xxx_led_hw_control_set,
10701070
.led_hw_control_get = as21xxx_led_hw_control_get,
10711071
.led_polarity_set = as21xxx_led_polarity_set,
1072-
.flags = PHY_DETACH_NO_RESET,
1072+
.flags = PHY_DETACH_NO_HW_RESET,
10731073
},
10741074
{
10751075
PHY_ID_MATCH_EXACT(PHY_ID_AS21511PB1),
@@ -1082,7 +1082,7 @@ static struct phy_driver as21xxx_drivers[] = {
10821082
.led_hw_control_set = as21xxx_led_hw_control_set,
10831083
.led_hw_control_get = as21xxx_led_hw_control_get,
10841084
.led_polarity_set = as21xxx_led_polarity_set,
1085-
.flags = PHY_DETACH_NO_RESET,
1085+
.flags = PHY_DETACH_NO_HW_RESET,
10861086
},
10871087
};
10881088
module_phy_driver(as21xxx_drivers);

0 commit comments

Comments
 (0)