From patchwork Fri Oct 14 14:47:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shenwei Wang X-Patchwork-Id: 13007073 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A7A92C4332F for ; Fri, 14 Oct 2022 14:49:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ByX0uMkB8ms38Lc5wXhLzpJm+ato23AgAsKtVQR7M4k=; b=3qSOljcx3Tb3dQ Fg9JdwokXZ4Ingoqx/bLLs8BzNVVmhtGpo8bUyEIR1Cxn5Wio2yRUFAvCuG361dzIaFcp/uV8Mqdb G/ktYukfJegcMN4y6Bf5FcnStPZXR43CwnJ9C1HM8zzzTBXJkAxDBgJzB4FI76pgpzxeMgSfxNYMK WA3ls7k86ZyACXEoCt2zaiXMIGCYzK4PwBwjFoiRU00vGM2T0SK9grZuwuxNYaE7F8mlbW4TUSOCN kbA8SfFaSlSb0MXFQDZlcA3aFMStzfB9fLjBFGOeyxWITTuZe83a4geGVVt8hLgEF+EShWmdkf8VX eTuvgKEQN2shMyoxqddg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLyx-00F4Ht-ER; Fri, 14 Oct 2022 14:48:15 +0000 Received: from mail-am6eur05on2082.outbound.protection.outlook.com ([40.107.22.82] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLyu-00F4H1-PM for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2022 14:48:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oc50TGtZ6rkublLOtf8InuWhVFB6KrBaEAX0EspqAAg6ocyoDf6ChT85TXn/3Z12fsj9U+sOs0qWrEilhw4HPTRiAzzBSn+50XUqCjQbm5KDCTQO51O8gyHrOD66O/hNOixkLp6TKcxE04wu+Bv8UGmbBTA2tEuAguIGFT/5pzYNJ91slFcZWbzHc6vWSfBYPlCbu2KwjG/2jQjWOxZA9asdm2kDSI2EhUzZGrDIskxl+4yjq12yfVxt5zX8pxasTMMGQN7/Vyh3OVNlborlycADBFJvStojhfCa8/6sgvahUFeacl/lasKxIu+5eG7rT9RxVeuHGTGz5zcXClfKXw== 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=3aDEkjxhOYnIcRo9HhsxpLkyLyJY5BGHp1HUrMug9qU=; b=dDUS+xknqYaC+bPEKB7vGKTde4Him6wCCb2V3jt28GumCs4UsfkJDD30YpZXBLGm+tXIkDxgHDb8nRN6O6t6HAAfXLUMbY8xAXV6elZbgeSpx8mHHZU+ZwVa/ayqNDqwIa+J5zqd+ZiTQ6LbsF10tVjBAF7N1GO6SrfumKaD0FvjbciMQWkFXfRduJQ4tOqK37M8IlRBBhIdUffSfbUBE230tGk1ox5Z3JiuFuDjtEB7Ydzslnvdu7N+EksMTPqgXjLLEmSFkFjvYsRh637+x/139PwmZ8bOwuaZPpMVtU7/bwMaA9X4fD+1s2vpBN2sMqBLHL5bb9lLt1wwD3Tgdg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3aDEkjxhOYnIcRo9HhsxpLkyLyJY5BGHp1HUrMug9qU=; b=UW+pYuVr9QDZMKvFpKtYVhG4zuTemNfJiHOIiyIIgCLC0GgI5MTy1Go4s3YjfEoTO7F9zIwPYK8gyNNIAzubIixlIyqhADcPJ03KJXONS+TqKk4uzEFyNVEvjE4jN1EnY3DX3xWNhmRFyynXRAAfJrlMzdCHKCZIiinDZYCk+SA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) by GV1PR04MB9133.eurprd04.prod.outlook.com (2603:10a6:150:24::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.15; Fri, 14 Oct 2022 14:48:08 +0000 Received: from PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::4150:173b:56ec:dc6c]) by PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::4150:173b:56ec:dc6c%7]) with mapi id 15.20.5723.029; Fri, 14 Oct 2022 14:48:08 +0000 From: Shenwei Wang To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Russell King , Andrew Lunn , Heiner Kallweit Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Florian Fainelli , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, Shenwei Wang Subject: [PATCH NET v6 2/2] net: stmmac: Enable mac_managed_pm phylink config Date: Fri, 14 Oct 2022 09:47:29 -0500 Message-Id: <20221014144729.1159257-3-shenwei.wang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221014144729.1159257-1-shenwei.wang@nxp.com> References: <20221014144729.1159257-1-shenwei.wang@nxp.com> X-ClientProxiedBy: SJ0PR13CA0217.namprd13.prod.outlook.com (2603:10b6:a03:2c1::12) To PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9185:EE_|GV1PR04MB9133:EE_ X-MS-Office365-Filtering-Correlation-Id: 44a04189-2a50-40ae-5d6b-08daadf31c16 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vd+TZ5hk2mXrIVtUfYUT1A65/DzdKYk0Ud/gCEydtdesUmBk7mZWOjBBxvatTbDMo6Lobd8tYV1AitGWEYbWM3xbCMwwV6ljQqWaGCBIJMoVvLJMw/WuxurU8aKUnsVai/cpPyol8aGJShPHIo7tIvI5PixjW3GiFnUJ50lGeEXXFQVopoyG1dHvXknmlu0PHQkqPAEMSxlb8kYHKN+y8nujhOSfjnF1GVdLv/0fHL6/E+n1IMJl9AQ+e1eqQutbs/NXLNzNg8oT6QunLQ407rkKghG9H45kWCfDqbqsCnYgEXfX18WBldNOOLN1fw+JYvvdgd/pNa1o7/3tXiLlV4qo6kGRhqovEV+wr9e1bEdtqoOUp0+KuVGVUAIdx/wBJWjDbY3uoal7Zi2fzx9sM7FkDlbQt4jpeab0SXxFUV6u51sUKFjiB+vLuvMtl5pTcvK2QxLAhvw7Ecyx5yX2V9kjc/elIs7Nj5wr+uZV8uwpOUCgDvJhd6vxyC2dc8KNyL/Lex1aTJ0JctfDoTSL4tXk95S+sF8PTPywjv0629ktgGobzUM/dSmqDoPqULaQ1/4auAFi8QTHMvzA7EHzGWBBz2kbxLyRXl65iw7SfXBBs2HWYISf3KfpjUh8lrpx66KD7lt5DfSnmUF7IT4O5e7ERcdCfR9ubItMzlXOzEDwu0x6l8h4mn5JaVHhWqDEBXG5k2TaEWfeXMvRJcJ86GSreGLZiQ4WTotsvACVcGEPuYVx71kQCsiuUAJkvJ8df67x8HFbVEkRgHiWOOuaeQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9185.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(376002)(39860400002)(136003)(366004)(396003)(451199015)(5660300002)(36756003)(8676002)(54906003)(41300700001)(6666004)(6486002)(86362001)(4326008)(44832011)(316002)(66556008)(66476007)(66946007)(8936002)(186003)(26005)(6512007)(38100700002)(7416002)(52116002)(38350700002)(2616005)(55236004)(110136005)(1076003)(6506007)(4744005)(2906002)(478600001)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: HqgdlSg3nxgF9lwL4FDxXtgTrQDy6peHDf5RV0QdGd9WSgNWx2cFGJJijdKdDS4rx3pK/Nc7CLaTSSnUPX6ScP56VRddaxJxbLCNiBi126nimfavp6KrwPYA8kvFVls0lgcHg7dwOr+r7YQIA7ATPKxtuqKzssvGinMkBUooWpbgGiZvrNHvXFkJlQi2CG56F1ajusIj6WSjP8eH/8WU7hmOQMGSOdpK6JsT5a+y3hM1Zzyp1S0nxMVboYniIg5KxzSUkyYuZhTE08P9dN4mbo+XOTzUwW6tpQ14TGptAxfc7eDdol+sVtzm8ec8LIGmhEUXDjsqGBXpfFcwPwsQL427A/fpqXMHEycmHzZ55/gQeHiHpXYCpiyDNntTYRORxBcTwCijXEc8rNX4JlFMVb9pj7FinV6xueWX95jyN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i9vHDh0kxPC94XQcVKeU2mE0fNxb3TQb7wIvyGKxGlcLjTvEeoWHUpL+mjwy5ZGqJGxX05nfBwuuMGONyDci+s0m5kOimvKbUKYTF X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 44a04189-2a50-40ae-5d6b-08daadf31c16 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9185.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2022 14:48:08.8419 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 4q66nAAhV9z9lKUs7AqkpzALHSi/8y+P4LER1fp2Vl0jCfMV3Q1eInLoeiPLlUQduYRqSgfixI1+ItmtvDz8hw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9133 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221014_074812_845913_BECD4037 X-CRM114-Status: UNSURE ( 9.94 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable the mac_managed_pm configuration in the phylink_config structure to avoid the kernel warning during system resume. Fixes: 744d23c71af3 ("net: phy: Warn about incorrect mdio_bus_phy_resume() state") Signed-off-by: Shenwei Wang Acked-by: Florian Fainelli --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 65c96773c6d2..8273e6a175c8 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -1214,6 +1214,7 @@ static int stmmac_phy_setup(struct stmmac_priv *priv) if (priv->plat->tx_queues_to_use > 1) priv->phylink_config.mac_capabilities &= ~(MAC_10HD | MAC_100HD | MAC_1000HD); + priv->phylink_config.mac_managed_pm = true; phylink = phylink_create(&priv->phylink_config, fwnode, mode, &stmmac_phylink_mac_ops);