Message ID | 20221010204827.153296-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 28B62C433F5 for <linux-arm-kernel@archiver.kernel.org>; Mon, 10 Oct 2022 20:50:22 +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=YIsRxZLpC6NpwX AwJ/+4nPFR2tTDBPTgvfqD1ECphFoZ0bqeNOogxKm3xlBsqBfP12JJcOmL+V31e+rfSlRsE1/4PYq dHF19mwk0GYIjZw5O/7jkt4nHb9fo8fgPTgaxhy0hfGEmCqcWpB2FPgiLa2wmMI8/f7ggWa1HEqol vulPu2T8McrHY/Z8vyeuJC37orqRhKiLog/O5Ce+vKdTcSop60xvg41oki8gGtSSluzvOLs1F+slc 9dP3tvukHqpKLNGOUR0oWvLsJo3W2VpMUsV8HkKV3x+/5CqQlVBKcVh15PMoNeR992eltZlRQJzfP /bXrjB/rJtntWd3qXJ7w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ohziE-002Fp1-RU; Mon, 10 Oct 2022 20:49:23 +0000 Received: from mail-eopbgr70081.outbound.protection.outlook.com ([40.107.7.81] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ohziB-002Fnq-Rf for linux-arm-kernel@lists.infradead.org; Mon, 10 Oct 2022 20:49:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UtH6cIj+IgTmMj2PkZja1t91PkB3vqqjSaFD3fgtuRaVk6OeTX57CU6wL90ICU7xjdmOOKb2oMvPokBRoHfXG7su4ztav/83EKrnW6vozY2o3eGSX+y09v2evpfhJcSFsR2YRKf0UQJleUaNgWpTF5Bvp80kXPGDSNFlbKpvLi6SpljC1P00TZfA7vu43bO9AZYYZfQ/OhBOXt9XgGNkgSiHCsQMEBVRoXevBC1Zl7eHxsy2eugzys1eXKxp4aLcAKkUp0B3nHNMi8PfD+DMeRyj3/kFvtt+vcd53hxNa8T9+hmyk+Cllh+Usv/sz9K6U+VMY28uIp5znBpqpq187Q== 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=l0J+ms5vh+Mc3iX018RXB6ksuaA1nlJ1mCLhzGC1ZrMlI2X7VAiwZVAvJOdt4WKNsmjBGagTMzc0XYM9A4eap86Owq1honTuFV8uMqAiF+5G8F7NmCwU8a2iqWyXOwWgG34276EzOgR0CG0gVM5a1DiaaugXLK68G6hZleY0Qox8ATiSSpG/p6y7ov7UkooeiVwyBxnQT5IhAVCRE8KnczV0yRgdJWWMpPtzeXy5rXC07KxVS5By+9od9Q30umGVxkrqtt3Xk/fccMq/jbgLD6x0bS5Xq+4DxuXXicBH5UQUxvIU/LU6SN+d+5QT6dZg9NXtKNLvXK1zjo3JjlbkXg== 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=OnBIOPTTO7SuqPd2ekYk4PPuq1pTBTzsUMQoCOSO04FRqA1l0e1LPVglw375cGhtwBz4nWl73wO2eb4IhyuMrTV5brceeemLJhx7W9vtnikF/K/Drj2BU240dlZgmkO1fSCBbSKM8aRCAlxDT6q7IRyCoYHFKepvFfWZ2RIYvMw= 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 PAXPR04MB8686.eurprd04.prod.outlook.com (2603:10a6:102:21d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.15; Mon, 10 Oct 2022 20:49:16 +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:49:16 +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 v4 2/2] net: stmmac: Enable mac_managed_pm phylink config Date: Mon, 10 Oct 2022 15:48:27 -0500 Message-Id: <20221010204827.153296-3-shenwei.wang@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221010204827.153296-1-shenwei.wang@nxp.com> References: <20221010204827.153296-1-shenwei.wang@nxp.com> X-ClientProxiedBy: BYAPR07CA0102.namprd07.prod.outlook.com (2603:10b6:a03:12b::43) To PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9185:EE_|PAXPR04MB8686:EE_ X-MS-Office365-Filtering-Correlation-Id: 0053159d-82e4-44db-50a6-08daab00e55d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: spnwz6jt1H4hDi1JohzBxFgDlvtsKEVM5ZsCOn7d6vW1dMUkYiHvE8ipnVPmXgafyw/Eb4+mrqDvnkBM5Oui6TqG9JqSm0wcPl6oGaSANzRO4ltMRkZ9O3aNNHuMq0HSVdoHYzhwKH6DTvRkxoZULS7qw/e/U+EYbV+3i7aEgbLErBN9KH5puOLH6hUEKgUtQnxs/pvm9Wz7be2g++kV4qkzBSNcKy9LMLzrKi0jq6Z0XS1X6MZI8+Ri5+7FdIwSd2XEoc8FHlBTk2hXOSo1bTF4Vd0M0dqDYqmJx5JKjqOyfjx/0HAz8sF5NXyFiBOt2iGtwnE2HiOOBnbFGh+X9RxDZLNypZ1brJIQVgzJAcMkTZUOny+/AV7jgC9W66oWBJKiiHk3ZHzHn5jm3/z/49dM3cuJbRFKCnVMpFXUwytYC7PG5zLcNtGTa7l86A4uM+Zjs/5zTJzhSBXWzkSCbutcuyk0sNh+EkB9M76EjSDRgYJlU603UiSmgNMJBvq6nsKMVosckz2YK7c9omOsSN0/rlY1KYF4RfU+RMWfQzLwA/QfhPMOhJEsv3fJ5Aa9VouBf1cC/ZEYlhn377JhhkIiFNY8ZD57cevhFw/tgItGsZ17AXCzgMSEq11QJo+vE9LQ+jEV4KspBDATDIJfDXNZvtFz/2M/OUkXsIhQXQVAY/sgkU/W1hiB8Yf+lPm/LAIIExgEwt4Kmu8htoO/WCxdwL5QxMvjAqTCe0KuDDCJM0NxqMhKxwjpamGyhnjryCo/XsHlSuI0svQJE9UlHQ== 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)(396003)(366004)(136003)(346002)(376002)(451199015)(66476007)(36756003)(38100700002)(66556008)(38350700002)(4326008)(66946007)(316002)(86362001)(8676002)(54906003)(2906002)(7416002)(6512007)(41300700001)(44832011)(4744005)(5660300002)(8936002)(110136005)(186003)(83380400001)(1076003)(6486002)(2616005)(6666004)(478600001)(55236004)(26005)(52116002)(6506007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lkjJEVMqMfxI2qeIrpx6lW+TCrNh1pFEnxvfa+frHJvPjDx7tEFS9Va48WIXYAwyRWJZeBTUKLIZH2nwww3BATahWcBKK47OPDXiZf3mdUpsQgn/97l2N6MoQEz4xjqS9xpa/OT7Lx4xdTh3wD7tO/ymmZ4K8qzkw7oL0g34QlVJdjgYraspnKei1U9cxMYVkdWZleEdc5k7B9xiRDNScc+e4E7KA761d98CyDMNdY7YemyQlO6nPR9eTUI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xk81dO2mEBEiu3x6bWQkaJOTzRqLYtoVlHyhL14yXcb07m2crn66oNH4aJ5OUHYH6WI9iYK64qKYxXlyc9PsMtt1BgwSmguMf/pz64J0/GVGwMH1EcoehkM7kEiNc6kJyn3557ZbX3t6Dr0Kgy0ePjjF8PogpgzXc06hoWig7ntmVlZOuWHTkcQ1SjXzXmED4P+Y+TYYFmhAGQfTn9y+BXmb/Iabu+MpvvOPjet6Wrggma2Z1qNKjZRQDFwv4FiNM7gWKmg7KOU+JDxX087 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0053159d-82e4-44db-50a6-08daab00e55d 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:49:16.3575 (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: FuVkSyUIaijJlou//BhcDzLw7PxTNs7yXQHxdzpjoOIbyyLpI2UYSZDzrhsAcVjAROppjddi7lm/574l6Ry+5w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8686 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221010_134919_905178_20CD323F X-CRM114-Status: GOOD ( 10.20 ) 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
|
On Mon, 10 Oct 2022 15:48:27 -0500 Shenwei Wang wrote: > 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> Could you add a Fixes tag pointing to where the warning first appeared?
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(+)