From patchwork Mon Oct 10 20:33:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shenwei Wang X-Patchwork-Id: 13003235 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98040C433F5 for ; Mon, 10 Oct 2022 20:36:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230280AbiJJUgy (ORCPT ); Mon, 10 Oct 2022 16:36:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229563AbiJJUg1 (ORCPT ); Mon, 10 Oct 2022 16:36:27 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2054.outbound.protection.outlook.com [40.107.21.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47BD34DB3E for ; Mon, 10 Oct 2022 13:35:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VgWFPWNorM0SNf9wX4WiqQRSGdeonI8U87NGSjyvlDW5DYQfrbWnxn/U9wQAUGXe3l5tIJ08iBBp77BPvCwM9uRA9rbHOuk6c6+zENkw56/Y1R8xu/PSaLF/uXP1Aa51TTy2F0he0jODUtGaGawt7rSTCu6p9u78uEo6Hgp9TV1+zx00Q+nHMKUxtbTsWDBy63+9igN8Sar36biKhYGVKbMwnt+l/3tqwyAyUpBNv7rGSQ17odhAS/UsLWTgneWUOAu4XwR9+s/Y0Q6GBOA6UDst6/S8IoMsnYXftZInc9XG+IPhu75czjqq09xfe7by4iZPqyoLTGTheu9qbSniwA== 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=CXbZEbsRu4n8mowJtawgrefzAQObySrKiO3WI8WyQT4=; b=OPaP3QCUGX91Rbn6rtZ+mu5N8mYnu4Cq80uqVaoO10M4aoC1WGWzJ0MxnuxerhpXo0+O9j0RVRuIYuJkMngXJtEOdXVoCYKuV9+pkXEHdT/f8plLRtPXiFJM44TJQpBHhYlaRaCuFm/Ade700VrDgzhnBZOogTKu0eMaRpeS/LDSclwm56aoInAH83ywAb6HOqnPIhn1tUPdXY3ijSBDwUDFqcQhgC9yNAdtpPMJveGZU+sR/xSWjcF7tyRLytkHRXURazViib6ATY5uPQyE0izS00fOT1muJ56bBDwQrXDfUepCHnB4Fduga3davQq8f7lw2SunXu7u/MEhD1xiTQ== 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=CXbZEbsRu4n8mowJtawgrefzAQObySrKiO3WI8WyQT4=; b=FxZLUKSb3uZffrGyW6XKewtyoBLJLAkufg49S4rHjtnjhhxlamAAP8431zSHmuD9UpT+bQG1KEy3LKooQWYEkNGFswDtVdbMTej9zFClFSLdGAMKkc9x9oUnknNQv626NL4sHKzIxxOX7Lu2AguJYbVZDpvxjwRZXSPhmkJqUWM= 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 PA4PR04MB9567.eurprd04.prod.outlook.com (2603:10a6:102:26d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.40; Mon, 10 Oct 2022 20:34:04 +0000 Received: from PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::4d83:404:c74a:7563]) by PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::4d83:404:c74a:7563%5]) with mapi id 15.20.5709.015; Mon, 10 Oct 2022 20:34:04 +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 , 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 2/2] net: stmmac: Enable mac_managed_pm phylink config Date: Mon, 10 Oct 2022 15:33:01 -0500 Message-Id: <20221010203301.132622-3-shenwei.wang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221010203301.132622-1-shenwei.wang@nxp.com> References: <20221010203301.132622-1-shenwei.wang@nxp.com> X-ClientProxiedBy: SJ0PR13CA0118.namprd13.prod.outlook.com (2603:10b6:a03:2c5::33) To PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9185:EE_|PA4PR04MB9567:EE_ X-MS-Office365-Filtering-Correlation-Id: e5bcec43-f803-48cf-8d30-08daaafec3fe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WBG5IW9R9GZdvPzSlHToaBFNsm41l7rGntNo7XXfhPcd0wQJ1FIkLOEWray1NPWCiT+vyfGpQ7nbJjL8SIQBxfRz9ktPVnjg+8pyBAWsV2fHy8AAKzDBIZFYJJj/tQOutNPHMUyxQ7ErJd0noSTnPiTwKY/e0PLQfOl+OiDuUeEmzEbK2VmOrPYAgCtRCCXYRqmoTzXHWC6avK+LRP1rjXX27lq9nQjaDGR+XbjFmU9cClgBAimre+6EfYqwg0LkKxgmfbDMyM+B5nhClx8VmmsewbD72j5thBlIeIzO5yLCJmXjVB6PkHBAuFaMHk6v01TGUo234L9fCotWbZEliKTgZSvHv3PgviNaJVmV3RUquoaBQ/PWkm/dGvYpT1FTzNt8H9eOqUzQmakNjE91vannReCEzrEGYnrySwJVmJI4XbjUl4TcxkkrHW3/IOCD8CCisFbiqpimNq/9PtY3SjyQMEjogeNIN3qE8gNS12sqEDJPE8F3oRQ3TJlZqzKrD/g5GEZeXmXi7vU0koK6oWZ4A9nsIrsMaHDKjqL/P5/wrz9CVhvg9fgNg1PtreGGf++TTz3EFKI2003hq/OX1w0DEmX4mWnHrA2rlT7lmoPIFZ6cndWF6tT+SuqKjqV21ZN7ZshcCFUbSuditQiOKfHbEjU3K5sPTo+HtElglUsr0Wn34GrJ/p+d9eDTAVnDZBOmDeMxz7nTU1cetGSVxGWI2apwIpdX+lqM9WHRHLriwoaIqUc2xy/Y9wvtocI/NGcNRham/KPKaEMQBa0DtA== 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)(39860400002)(366004)(346002)(136003)(396003)(376002)(451199015)(66476007)(83380400001)(4326008)(44832011)(38100700002)(38350700002)(2616005)(1076003)(7416002)(4744005)(2906002)(5660300002)(86362001)(8936002)(6486002)(55236004)(52116002)(8676002)(316002)(26005)(6512007)(478600001)(6506007)(110136005)(54906003)(186003)(41300700001)(66946007)(6666004)(66556008)(36756003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Xoz8sC5FIKOVGKP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PFUrEWpvg4RVgVk0K55LNPcEcc3bV77HQ48pzVDKtSBPHdSiCHBnB2DNSoHi/NU5FGBQODueMU02PTMss32h8OphWrg1HC+qJPT2DN8QEVaylwoXQ6ARPpRrrW3FW1dai2O+42N3YQ12GQYq/jsfsY7nSTfy2i1sOJmt8Oo1TnNVoW15xlM7xizjzuHHT3GeW0oJqZ1FjumaiRXWrIJPPa4XSHSW9orP91HyPaOs0tNMcdeoNTFeeJgggmmJAbD2tsYMpV4mVDMtGwKBdVTOaXruc7NtO/0ZvInfvTvVkdiB/Q4znvGpvpqU6gIo9iHrfyXxWgrMQIPP52beapZrdv2kMF+5wEvklvrbzBcLPiNnOZzXB1GJ5fh0Zg9ZF4l76oOZ7L/nfS+K0h/dx1ApNieBcfB7xUWajyge9vjGCQZVLxVUF7fS3F9BkIVJ6jpxWicDyAmEui0Efu4fodpPdM+/paNciEYoCwrwi5jE+kb2fDelFpMQcoKVhr X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e5bcec43-f803-48cf-8d30-08daaafec3fe X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9185.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Oct 2022 20:34:04.0666 (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: BOkDD+WQWfjacsUCxS8RGNeHT7BzpoRK2R1skg25JE5VcJU57qm4NL/VvjWVX5IxbiKreWWIVoDXZsCq8d23wQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9567 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org Enable the mac_managed_pm configuration in the phylink_config structure to avoid the kernel warning during system resume. Signed-off-by: Shenwei Wang --- 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 8418e795cc21..537e8e61bb97 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);