From patchwork Mon Oct 10 20:48:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shenwei Wang X-Patchwork-Id: 13003257 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 5D715C433F5 for ; Mon, 10 Oct 2022 20:50:02 +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=Aw705oi5nazP0QS4JkuK6yEf7/XV/3pS2P/myyPQu8w=; b=vlLgrPy+1CTwX4 RwivwC2YZkOKybLaDLx5MxgFG/R7GDRkUdFM5xXSWHbMPimgqDH7H6uAEC1xtqWkGmErirHbCFjTn ureMlBI+PDZ3MI9sLNTgNyrRNB3PsgtTv78uJ4UQ8Lit8Y15m15quGaDryNQETbVzhZoJqgLhi9PE Bum7uzbvnmuU7tH94FIGFbYcAP61jBhIZdwJk8anauMqd/Y8yPFT87J7jxMb9oO+SmSFHMlpVFN0i quxp2p6nD0AeNjFT6HVSRIBX3RH+7zLIAKzQqxKkraUk/Bxr8rU8hWBwdQRaKzc94KWtrAiIcmbcN iib94ltNvwPO6doso7eQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ohzho-002Fk7-E1; Mon, 10 Oct 2022 20:48:56 +0000 Received: from mail-am7eur03on2048.outbound.protection.outlook.com ([40.107.105.48] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ohzhl-002FjT-ER for linux-arm-kernel@lists.infradead.org; Mon, 10 Oct 2022 20:48:54 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QbeT/t+QXxDpjUCJ0hzPd/76URGRh/w66NyumK3GBYYBMrthaeO2RU6dQlo14eiw3fiI9k7ekuN3jXfyN9rtIOas7Hb3hIMDGJyrOWaS4+0vAM5oBueh8sjK7nmMZNwdofwhM2hTDmXT5gEL1HdvZESZKbjw77YvHe7JJl98JmPLDNG4NtkMPPyM08OTyoGYANd9i2PUc65aIJSyxrYd/1emhKITQxbDK4ys19sOPpjpqcsiy0JvXU7yjrfFb2vg6FbF1MELz4H+biZhdCD/BjH4NRb/EddYCtSZg1PGYdL4HXB4af1oIwFOZV8ykox3xoTmjSO62KMTZeUxGswQKg== 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=ptyGMV9gTHnexXB/rS6dCRxrokDofAjqpnegzJ95k5A=; b=NhDlWHBXzXnSmmdrXv5tDQWXk2wrVEY6+6IBYryczK5e5tdSLtDL4o3cbjyG9BnHJPoLKBVsorCOGkrUbh2q3vDHXRHYlxAHqMVI3S5bMhtBaTIoYXV/i5d7+hXBPIwTV/V6kcCnr/KX0KLnBWmdaiJchoFfTOdikzp9g2LOjyemfbtKQ+HurPMCGRuBS15sfmSMMxQnKBMI+XDMj2RZMkoXodAQGjXKtQC+qyTk+P5bDT2uqwwszGTCl7gleZY7yZq4rwzO+jPNIUvLbAGXQA9T4RmmCNirFPCBuLIuC0xmeZzabuDdr4FzJniq/b5kaRP6zuXJy89RfEMqzmWUKQ== 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=ptyGMV9gTHnexXB/rS6dCRxrokDofAjqpnegzJ95k5A=; b=HmRP135HgF3teTuHCeDB3zjawnf26qGjlgODe00LSei2tUEdndaM1T/Jy3R2DkdNyx9PDnLLZScb497GKKTaejpZoF6WvMBRm1sCpfE1mJy09OouN7qdVmg07BXIsyjlJAQh5SqW8elVtQFkdFKCR28eovaV4IGooxGWAB+emXQ= 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:48:50 +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:48:47 +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 v4 0/2] net: phylink: add phylink_set_mac_pm() helper Date: Mon, 10 Oct 2022 15:48:25 -0500 Message-Id: <20221010204827.153296-1-shenwei.wang@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: SJ0PR03CA0280.namprd03.prod.outlook.com (2603:10b6:a03:39e::15) 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: 08d43c7e-0bbf-45fd-9ea3-08daab00d403 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IprSNtB+4FLaAdvs9+gruRb3QPRSx8fykIE28Or4BVHMnRpK/lqjGO/ZgQyaIJvFKiOs/s6XY142Lx4PpU5C0KSxUy0hOhMlTdQVqAspOL8xnjmjlV+G+KmPD9JJ767YUri+qPfCZJ47gcLMOgJkGIYFF9+Z6Lyi50GrJIcgZHgUL9XzgS0zGLSDHvvys+kXY0q8k4NumFq4EFvrLGdiy5A082rIwNu1Q7wfQe9B8uBYFt+yj35EA0RfmQirGFXawwccm1bEYlMFU+902flmej/VBWnd6NT3I+CDazcUGrbAPX7q52XP74eVW4dLJ4/bEUV+533K9SfnmAtaEnk7uiDG11Ot3nS3JtA9xTFdXGwryUq1Wgk0NiwV3NOo0WjmhcJYEY6J7eYmRlbDUFzsNBRoRBKCGvNy2zDGnEtxMVL4IYz457pKCumwJguONmOC7lnCRqLcUkXPRB51d7/tnTdjyxFN/n1ZZHfTyKlGl38bNljb9C8aeUiCC0K1fPpLgbWI24YfXSgYzysxw2y+jMSNEKPtIHcbcvaqxo9IiVA1m3TPCt0GQ65bBj7pV7+/D2Mjb8HSXx4cNAXxq7ekIXu2D/QUH1ru7sB6yWhz4wKs0MNG6WyOVCorqzm8IJ8MusYqtVpu410dQwO2d6MdXGkVXXeb9GmBdLmdwsQFP22Hh7b/Eu3rtE2n49XQKDC6H94Ldg/oZjZJyrB9Buq7meBpHWdlf5EEYAWIsEa9AwtGlUtO6mg7mUfXdUoU4gsVOaJUX7yioQOEZycg2LdC5A== 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)(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: TWOvrJE33twAL6Yt90u5Zy3BGwsqIztRMdCkbD8C/m75U7AZ531bjAjqj4rn4cRBDGXvwBIOetBMmHjf5G+catrcLT/iegCHUempfhJ23N0tDOh+ARtmDKL03pMTEncP24ry9U7ZNbOnisNioYS/cmB0Vndf/Aai2fYR7c8fgvVsxy74xRNDBBGtB2B6kfCzFaoy5FRaCRpGA4TmcvuCcDa2vjiFInztlKUq6geTWCHg0Cq2ZnbjYsljrAhl4PIjKlcsGDs128o2RldkMfdNczVozMpZAjhmG//pbhKray/ogE/0I5llFluWS1b3U4bKGsYbvUYSLG0s2yJ5NTuDumBlmJ+fKqkeEE14Up/CKFde/LoCKE65KgZGpOUcISTBBIaau334R6nc6buXuCqwid7gbGh98ESW0fjaR7AQ/yPXUZcwS4rQtlr/+0EePnIwkBEu8+xodtpAfoTMHjKOVBfuOegwYvJfD7/2HE3Ewz9D4MpSt8aTbarS56kHTwnWtFZJKpFtuGzXm99350H0Si22p6dT9KwMP1B8Jdy1foc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MS-Exchange-CrossTenant-Network-Message-Id: 08d43c7e-0bbf-45fd-9ea3-08daab00d403 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:48:47.8126 (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: 1DL607p8FXpngNgDwNn8rfV9sYh5UyfbxAhxBr03+KjY7JV6ZdNm0e0aHK/aKUjsW0DBRVDKo/rXDEFjxNGpcg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8686 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221010_134853_507800_D8A8ACA2 X-CRM114-Status: UNSURE ( 9.74 ) 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. Changes in v4: - Clean up the codes in phylink.c - Continue the version number 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 | 3 +++ include/linux/phylink.h | 2 ++ 3 files changed, 6 insertions(+) --- 2.34.1