From patchwork Mon Oct 4 21:50:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 12534941 X-Patchwork-Delegate: kuba@kernel.org Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2D4D4C433EF for ; Mon, 4 Oct 2021 21:50:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F08F761409 for ; Mon, 4 Oct 2021 21:50:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233708AbhJDVwV (ORCPT ); Mon, 4 Oct 2021 17:52:21 -0400 Received: from mail-eopbgr20059.outbound.protection.outlook.com ([40.107.2.59]:39557 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230010AbhJDVwS (ORCPT ); Mon, 4 Oct 2021 17:52:18 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hEL3R0ay9CmHYBep4e5DLBmzJnjwytC3BDGeg72Gw0yQoTerGkQ7OpGUvnMnmaQ5MIvfd4ak1B7tY8+JIbQJtP2XMh31Cstz5s3yO+arC9bVhSMsc8WQVYuBObHBy2Rtw5KY5hPXJzVkVnFxCyT+Gzw1q46nnMhOUo5KNTluE0VawGVbNHq55+YILewHs0IhvlteiSx8Tb3FxHnQ/yQ0CeoNbQMAzCpMqeogxWsgPkANjzYoPAAV1tIthu12rF+A6Bqb8FGgpn3XUUcTArKUMqWELg9NgQJe8eX4lYoYKkML366DS+kXOxp+aBkhqUFOJ/59f5yjuvfX0P+oJoRtww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Mxsf7ryfNRgKipgUBTsTB1H0rHbBbNQhLarQvGr/QZ0=; b=YIkTuGCvKjkHJWVRs8ReCpJtWpTIoJCKHGzobJ6BqSEFgfyfIQc2xV3uoQj3Is8SRGG+Wv1DyIazSeFS2E9lUAjtXjQDCWBs3HXLz/Eod1xDpvrtW83+FO9p0aFaGasS1HimLldFDid2UJXVKwUhIG2idqMgolCKHUEUIPA2mGC5Hf6kTcayScCtShbtNfpwRYneaFmD6j25rBHgXekZ0AD9YyqrQ+pyyFR087+MHAiOStcvbnK3+I/rV704SMLo5lT/YaCUBOHGNRxH8oXqtjdyKfo1mB7+u0PBOSwj0E4wL8RElDBHRWzCLHrxH74N6A1lST78TxWIlfI01OPO6Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=seco.com; dmarc=pass action=none header.from=seco.com; dkim=pass header.d=seco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secospa.onmicrosoft.com; s=selector2-secospa-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Mxsf7ryfNRgKipgUBTsTB1H0rHbBbNQhLarQvGr/QZ0=; b=jutWCBp2u11IZi0/ll6sKUE8AS3O7RI4fi+PxG4QdpwHVNgn4yhgyhwm7Tkqrw9wKWmIS3UIPsyAKIEN5cT5XtUijd+Rq0LdU/8qVckLm2TNtoONUUlYjipz72GIM4iMafH9Lg8CvLF//FZ5mYtn3UBkukcwKHriUfKGYqqyqW0= Authentication-Results: armlinux.org.uk; dkim=none (message not signed) header.d=none;armlinux.org.uk; dmarc=none action=none header.from=seco.com; Received: from DB7PR03MB4523.eurprd03.prod.outlook.com (2603:10a6:10:19::27) by DB8PR03MB5577.eurprd03.prod.outlook.com (2603:10a6:10:10a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.13; Mon, 4 Oct 2021 21:50:27 +0000 Received: from DB7PR03MB4523.eurprd03.prod.outlook.com ([fe80::a9aa:f363:66e:fadf]) by DB7PR03MB4523.eurprd03.prod.outlook.com ([fe80::a9aa:f363:66e:fadf%6]) with mapi id 15.20.4566.022; Mon, 4 Oct 2021 21:50:27 +0000 From: Sean Anderson To: Russell King , netdev@vger.kernel.org Cc: Heiner Kallweit , Florian Fainelli , Jakub Kicinski , "David S . Miller" , linux-kernel@vger.kernel.org, Andrew Lunn , Sean Anderson Subject: [net PATCH] net: sfp: Fix typo in state machine debug string Date: Mon, 4 Oct 2021 17:50:02 -0400 Message-Id: <20211004215002.1647148-1-sean.anderson@seco.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: BL1PR13CA0440.namprd13.prod.outlook.com (2603:10b6:208:2c3::25) To DB7PR03MB4523.eurprd03.prod.outlook.com (2603:10a6:10:19::27) MIME-Version: 1.0 Received: from plantagenet.inhand.com (50.195.82.171) by BL1PR13CA0440.namprd13.prod.outlook.com (2603:10b6:208:2c3::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.7 via Frontend Transport; Mon, 4 Oct 2021 21:50:25 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0049523e-ef36-4694-2f00-08d98780f9cc X-MS-TrafficTypeDiagnostic: DB8PR03MB5577: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2657; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Sgpf1NFnQVX58cWm5wcFT69NhjFZNUv6Z8RJMupTM2yfm3m3X8DYWgv5lGdopSivkNjyY1uhxidlfnCVMP0DUWIlkwkHN326ltkOD76IFSKTfYRxXKyIrUPRNFORzkhepM4hCNgjZUd0MHG2LBVood9XpQ2W4p0c6yNN6sZnDKDk6wW3qoKjD92BLcbdm2CaJ79mMvrpMgn204jPant/dkV5ExMnJXqGSON0VaumvQaIv6xfcGa/X2cs6F0BVhtO/LkICQSNlzceRVi0q1Cf6opiSj0GqYNjAuA4e9RYowo+a2NMEP+Np7U9a3OMx4vOHA+CAxWYDepUcvXlKNPKIIX3ObaobPyUxlf+k1mgGHagpUy8zhPRrWOXrg55E0ddbiEEIY0k8EaNFkXeNXNuazamFjeepmdd8GCakUBYKNWegiKONPMuNK5v7Uai8K7lSxWQ3rzFTLRQF2pNOpSlYQetdkESE89UhAnJmrz3mrH7SPU6eCg5MbxDF6qoa6LJXMbdkWruh02ezlrTLgsTWFz2tJ1iCMmGu7jnVPmMWhkAJcXu3YPuq9wVELi7wxgXSHlDVEbLcbjWlfQm3/LQed6OdzN2SRLgl7td7QZyEkKPACMwIHvyyumXSM7mRmVFjZ4IKUkAFx9I/iNENHfBNTWw0g7uJgun7nZRrG4eVVAstDQWSx08BNlOUgPZ0rjFMM0PbdiQOz0GamHpLLoWHYONxfGm3baLojPmW8oxKcXPuiquNQbFf2lL2pJzjGro4ly942yA+tzXMIdfdL5rbbLc4rWghgdUTJ3uUzFphmQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR03MB4523.eurprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(38350700002)(5660300002)(6506007)(26005)(8936002)(66946007)(38100700002)(1076003)(66476007)(52116002)(66556008)(186003)(6512007)(54906003)(508600001)(4326008)(2616005)(956004)(36756003)(6666004)(86362001)(44832011)(966005)(4744005)(8676002)(2906002)(316002)(107886003)(6486002)(83380400001);DIR:OUT;SFP:1101; X-MS-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9HluoMnLG7DCpc44tbpseSukW2HOhNUZjXk6b0cf99efhUTRfSGrK7d5d8hby7Rvbe0bu3eZ8KJ3YlEC80WlWD08XpccHAyNr+YQQBAyXEg0tYzOVVfL/rM9y/1ycPa3malicHrrj2UyhUH+B69y1YXLEeJ/Ed54oYbKPLN1MwViKnqAZ4l2ZUAseAZcODk4+8uuqJ3m6+IRszwuNjKWMtplCOGmyox6CZ9agLHezxFLir8R9lKhlW9DGohf5hzuE3gQJlXtuNXjQ7TewpbW+fzHn07VQCkesh7S3gkdmHZI1YcmlA6JTCm6YDm X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0049523e-ef36-4694-2f00-08d98780f9cc X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4523.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2021 21:50:26.9651 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: bBXu8t0Qs9erogCgydBMfcZBIcmysDiLvqkKXQ1mCpeptKOWfYHhlY6+HhZQng0Fn3awVQjKP4eQMh1puuPi/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR03MB5577 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org 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 Reviewed-by: Andrew Lunn --- This was first submitted as [1], but has been submitted separately, per request. [1] https://lore.kernel.org/netdev/YVtypfZJfivfDnu7@lunn.ch/T/#m0b62cbe7804eb8df8dc69944ec3824274ae1b0c1 drivers/net/phy/sfp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c index 34e90216bd2c..ab77a9f439ef 100644 --- a/drivers/net/phy/sfp.c +++ b/drivers/net/phy/sfp.c @@ -134,7 +134,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)