summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSean Anderson <sean.anderson@seco.com>2021-10-04 17:50:02 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-13 10:10:52 +0200
commit7308e2f2b5c9cd7d665c6f42b0c890c64e9e27cf (patch)
treea2ff4247565298b0b952b873d57ba3dd6dc3a73c /drivers
parent198d4e60e932f59bc8555afb015b90e8c898ac1b (diff)
downloadlinux-stable-7308e2f2b5c9cd7d665c6f42b0c890c64e9e27cf.tar.gz
linux-stable-7308e2f2b5c9cd7d665c6f42b0c890c64e9e27cf.tar.bz2
linux-stable-7308e2f2b5c9cd7d665c6f42b0c890c64e9e27cf.zip
net: sfp: Fix typo in state machine debug string
[ Upstream commit 25a9da6641f1f66006e93ddbefee13a437efa8c0 ] The string should be "tx_disable" to match the state enum. Fixes: 4005a7cb4f55 ("net: phy: sftp: print debug message with text, not numbers") Signed-off-by: Sean Anderson <sean.anderson@seco.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/phy/sfp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c
index 47d518e6d5d4..71bafc8f5ed0 100644
--- a/drivers/net/phy/sfp.c
+++ b/drivers/net/phy/sfp.c
@@ -113,7 +113,7 @@ static const char * const sm_state_strings[] = {
[SFP_S_LINK_UP] = "link_up",
[SFP_S_TX_FAULT] = "tx_fault",
[SFP_S_REINIT] = "reinit",
- [SFP_S_TX_DISABLE] = "rx_disable",
+ [SFP_S_TX_DISABLE] = "tx_disable",
};
static const char *sm_state_to_str(unsigned short sm_state)