From patchwork Mon Oct 10 20:32:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shenwei Wang X-Patchwork-Id: 13003236 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 5B184C433FE for ; Mon, 10 Oct 2022 20:35:09 +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: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:In-Reply-To:References: List-Owner; bh=QrD8yn6WDYv9kBWbGIR+Gs7E9Fxk2ws+GNm+osrth+4=; b=Jrw2FhPj1rdwji ntkO8dmV6Nsq7klZ4zZnsdJN9o5GsHea3hv4HA6CvfZt/VWR7PZMILqJ5Qs4JZkbXKmU4fEt10q7y c7SY4mrf/FXd4lji1iQVX+Q8QT2kJgKPeGWJ4NeYxy8DuZ/15M4MLpAJGaJSEeDFcnBY34sBlKF2/ 6yDMrb3qVY4OWAQKl9GJH7mXgeldqG8i7OY/O3vX8goFSWd2sM1q++SER+KlPua2OG8PxjJVV1uV4 bmSdcoEl7yEdD8y+ErucpKLrOjIO/o/dPBC1orRD38I9F64SLwv8BTEZvnWudmFe8uTyY4R5lrpPJ pnUJYHTfNhj+212Nh91g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ohzTM-002Cv9-KK; Mon, 10 Oct 2022 20:34:00 +0000 Received: from mail-vi1eur05on2043.outbound.protection.outlook.com ([40.107.21.43] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ohzTJ-002Csz-1p for linux-arm-kernel@lists.infradead.org; Mon, 10 Oct 2022 20:33:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PuWY9JPHsiNe3JgPAc1AaH5tkZYdXK2cwnfYd7M5zDue8xus5gCq351E+JffcGzNbFLmEjzRy7ZwEewXB4IeHdSTFhZY7wIp92J3p+Lua37BWYXQAlim1rBjGTZtl9KXGrJllXOBCzdH/1YbtUjCfzCK6MBatYLRRk0LHTYv0qmfRCW4oodPxZ5Jo6gCKnlvu0ZnLESbUbduyPeOTLsP9iIGzq/ErKSqTnOVkTKxWYhblGdfHZORaUQgKsCNT70PD7CTwxt6QMDk8btIVedxNk41OaWluF2hf5ZhcKvIkp+e2+GSUJL81vk5esLjbIsHYilNknK/NZiul7Bs4mw2ag== 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=0sCKxTHpYrVYVgR+SILu1hI3SYKyQM8gO6Ikmw1+p/Q=; b=Rc7G8QbCqI+TOpWY8PkwkEcMgRa/2viHy3ZbiIqDVqoF5IIGc+f9iV+qS3SD0G1w1WQmqCmHPsVdwmFvg3v99pvIS8rMwzAIdT29HXxwzpr9FuwzhiOaLQ1YPdLuDtsL0H7DGmxenEP/YzB6HLwwbJCuvPQICDzEZeIYn5cq4HrdVhbMz2yNm4dZyWXa9LAYNkr6feKPeXajxIC1TbXgnsekmedE5sPozw2TmX/aPbo2XqkVgrkX3lH687tdlVV3OQaEt4jqa90ZFGX68XkB8w7NmJT3Bk0g8YwmWyRjiMW0btz51AsyA8jqC4CRa8GjEKzC10P4InccNDXS50OHpw== 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=0sCKxTHpYrVYVgR+SILu1hI3SYKyQM8gO6Ikmw1+p/Q=; b=nzeAh5HUb7TLE4DlR2TUv7JWp3Oomn3NXxaItAMkArKqXmmW9EoTb3CVPG3sfpWubOtZvEHZ2175uajpumrZw3OBEYOw9+opq3vqrRG1D996/zyEm5vprBj0VIXcrwJ/s5yqJKBfxluBg7JxsweydvZJcf0ONUWqIIbksh2Lq6E= 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:33:46 +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:33:46 +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 0/2] net: phylink: add phylink_set_mac_pm() helper Date: Mon, 10 Oct 2022 15:32:59 -0500 Message-Id: <20221010203301.132622-1-shenwei.wang@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: BYAPR07CA0042.namprd07.prod.outlook.com (2603:10b6:a03:60::19) 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: 0e509875-30e8-45ac-14ba-08daaafebafe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lfZF9JJUDgK2Z3Xb+80+g8KKtIrPmfhQC4k00l1syrPeieUn5I875EeUqxl5yfdNogovnh1DM2Ngnr2b3D6Dgu0GMIvk42oEOp1VUKHl5VlogPOaVgexa+gsz7i94WI5UN4qN/uC8pnU1+Tg+VUogdTdGILP0TXHgp2eA9agmEIR1bIZK+GvqmeuSD0H5Tb/8UwYQJGPiVuZ4zqraVBApTrouVSLnNbHaIcXJO7jltJomHMLVISHqonr2jnHtCmGLh+uK+b/WFDt/vVyXBauPRiaVyYB+KgcvlFpXvsbexMsCbgN7gjqE7MqadMJS2r2Ou98bCNtyBCXiNbLxkW1mN0eR1SKXLimBAGtXYb12K8ktnhpz1DPkXSU78EoFuiP33YSGANKLQ+q88Cf66XBEMKPG9QYS+zAssKDGRKe85WHlFhDYNQWTnXePhW6TH2EHh6VgBpDEBmpa+jyYHn/iPuarpYufeSY7ZGf9ypxecQplCkPxu2CW+taMKm22Zf6SyRVZQmisYnoSY67tHGFoRd/zNgA1IwzSwKeurweB5JodEa6GdcekcF7aT3d9j2lzDcwNqM/NaZqF0KLD5JAkkEcld0jB5dyjVuknHh6EReJtnUpXLGhyqBKOMvqLG2DgE9ttUNUre5HUSiq85XwCCYjId9MvmUf//JGOmkckY/8r6JFtj/iW8uhMnY1lY63jmk7JdwZt6CzNQ8SzqA3wuTba7GB0CKgHhVzlYraCdOQxQiqP9NlOhlz7nhjgiIvUSy1FLWx9dw6frvZ7YhgrA== 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)(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: 2sdOFGfkNbgOZ5KPwukciaU6YOW+Jgf7wRZcCHYsJoIZVweCgMB2k2Y4HZld+EVhqsG9NYSLjaoA/CcV3Xh7D5HdXaiy4oTUqxwKrb+ZyF6bYS1QMVGcLlh+lB2sqUIcPaqV50gmkqrFTh0AFGXACOM+jPOZ2aYkjhJBJCOKl2j1oPB1GCHK3cZYKxXhDerMc221jb2oUKYbXPK1Hb2ZDBBm6JpkCEBNp1XolZy76C/P0+P9/h2vuMDxi5sFiz/uakWVvjv+u2NV5z+NGKtZEqEw+7nkZ7NpnWJFCKRBoZedndKj0JsQUCBH4iECg0nIb8TGdvbKFHMHLK7d4crODuQYPwKcGleJe7ThPhd1bsqY6DwYY/mn5yrw3Zfexl/rhmLBkHdN9TAsM1bESG9JWHNvthnEojmoz1kz93PMizRH0B0JJWVKjM2C0aWSBLwQT1+K5yzS3hFY5+xgaRrxc+kFm/xSpwGx8VPm0FiT0fiKCOHwiUmhBeDgqgyE+SoW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9CQAeDio6XAANVMXj2mxeeCQidK/NI6EYFw== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0e509875-30e8-45ac-14ba-08daaafebafe 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:33:46.5425 (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: c9cyfhwwu1q1a9QV7BYwgumQsqcTzwEm51Pb7M99BTk7YCrikwf5tIfH2IBtXluHWpELNo2YHDVp7ORNvA+gaQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB9567 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221010_133357_355259_80A8B4DC X-CRM114-Status: UNSURE ( 8.62 ) 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 Per Russell's suggestion, the implementation is changed from the helper function to add an extra property in phylink_config structure because this change can easily cover SFP usecase too. Shenwei Wang (2): net: phylink: add mac_managed_pm in phylink_config structure net: stmmac: Enable mac_managed_pm phylink config drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 1 + drivers/net/phy/phylink.c | 4 ++++ include/linux/phylink.h | 2 ++ 3 files changed, 7 insertions(+) --- 2.34.1