Message ID | 20221010203301.132622-3-shenwei.wang@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 C604CC433FE for <linux-arm-kernel@archiver.kernel.org>; Mon, 10 Oct 2022 20:35:23 +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=agpgFYA+mJOgj9mmIgCQnclRhptJWe5fSO9hw89a3gU=; b=Ev3at0MaInmB2y TDsCvjujTvtVdJ3Nu9QlpP4qQlFcwbyU0JhWYrysQ01VWLJvnEx6qvxaULQMEv70i26uZEIaCYsNZ rDPN0RnxZ2wNl0WAyBiqhi9nPvXRI0CKij65owOf/xJq4fJJtsmYgfszMRv+ZCUye12J+Qi18+Lck iLqYZyjZXmjpIAKJz7Fof7ZHy54P18DABxyuTgDNfskOF5IQES/TKswtShOq1NT5jlHgfhycQtCuf hFVc/p78Nd5ke65UJkFqBhCr0H1V7YPL0r6SG07HdgQOPSsxxEj1CLb/K0/qjZvCE4AKRe8fsxRHb Ekv30wJN3jyXo42gl0fw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ohzTf-002Cyb-PG; Mon, 10 Oct 2022 20:34:19 +0000 Received: from mail-eopbgr130073.outbound.protection.outlook.com ([40.107.13.73] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ohzTU-002Cw0-2a for linux-arm-kernel@lists.infradead.org; Mon, 10 Oct 2022 20:34:09 +0000 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 <shenwei.wang@nxp.com> To: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Russell King <linux@armlinux.org.uk>, Andrew Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com> Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Jose Abreu <joabreu@synopsys.com>, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, Shenwei Wang <shenwei.wang@nxp.com> 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: Xoz8sC5FIKOVGKP0D529niPsjLcJYOxZxcRkjruWxyAOOl4AjxTgKfGjp/n4GWsISt5KyioCmB0o9ip1ffBrK0lYuAM1+jaUGOawt4lS717d8sH7i+r486CF2auG03qAG5vHIJZ1o5Mj0UUEMq6Vs8d175Pmm5NuiMIJj/OSqef7y1QOFsH7m+HnC9lVz6QoMciuQyz0/ol3AI4Ei62v+g6bsSvf2gexrXx8HdP7Z1itr4iSfaxBLWj8feyLDTYi0B4OPc8isTW0xR1QRijOCU7s5VQ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DMtGwKBdVTOaXruc7NtO/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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221010_133408_136531_E199EDE6 X-CRM114-Status: GOOD ( 10.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
net: phylink: add phylink_set_mac_pm() helper
|
expand
|
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);
Enable the mac_managed_pm configuration in the phylink_config structure to avoid the kernel warning during system resume. Signed-off-by: Shenwei Wang <shenwei.wang@nxp.com> --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 1 + 1 file changed, 1 insertion(+)