From patchwork Fri Oct 14 14:47:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shenwei Wang X-Patchwork-Id: 13007071 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 A5928C4332F for ; Fri, 14 Oct 2022 14:49:00 +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=Q8YT8js3pRfKnfXsXe264zIWZD5OdsbL4LD9STEUeN4=; b=KtHKvGvr6GMJdq 5shuiitYrf0p41XS8URZhi3MtkvAlwA8Zz5vDnv5uVrp54CymKOS6p56W1U4ImaAtB5AVnzsFOz8j lr4Mw8qCkj4Qxx+vWn8bKMpuVuNyq/GLztINYNJenJgEYAh5mbEfs0Qy8QI5Wkd9gdcPYK6SDKb0X Hpi7etW++V0kll1ClB/wzcwNQ9fUrc1FByFNXx/GYuPVj4DQNQhhBpcOejeXveA1LmJWN2LVjDJNr ZyacQ2uK6XkpZONn032bCykjtj5w5ToerBOQoONmRFcLmGAZPxdFRjyu6kmOxT2I8KJo0S4vYPWKg cs9oMkqT72wKj9H3qTfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLya-00F4Ev-62; Fri, 14 Oct 2022 14:47:52 +0000 Received: from mail-vi1eur05on2075.outbound.protection.outlook.com ([40.107.21.75] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojLyX-00F4Dw-Kd for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2022 14:47:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z/JcCQSAeJBF92cdpjtFK4nGS5v/szG0MY807HMuwxsL+ASnxKIroHktkAy1iYkrsZc0iYnPMAeA8/Qvo66FrZK3ixUNt/E153S/eJCG63Mc/ICA6Sv0NrXAiRGtHWi7ZVf9CfuO07evTcNydADhrWui1MgGPcVvTFczdIXhyfp6zeXjNqq1s6+KC+NlQkDJ83u+TedBJHVGI4ZXejEPV0qA4QAqmA5k1X36HLqYJRSfDGYcq+ZulBOeokGxbVAx8Bqbzw2Y/8PoEwW2wz3EtDPlI+P+Pelt8+WVut+wKiYF8PhhMyYjay7YXUoV7xMf8ZBaS0tzG/GG4xPQuTezLA== 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=a6F7Si9ccQWD5GOC3H8nn5imuehqAiiprmCizm4S8B8=; b=RZo5g2Xv64kVNFgzbVdw65T6IG6Bn9u4ZwMhiFcjt/TbUJRqnJkeQ1mHWLBYsM/E1X2J+cfg/Ouyd/wN4CtqIWMH2xw5HeC164SQOikEOVzlVrrzw7a58LEfuxG3WCzeohDOmHQqLwJ0cIxgBI34KyUfvJKQgatjNORkePqie6Hj5Y0xBZAHE+QRKgMMbmIiqrbYVCU/ItZnPo0JZm/pCdlKU2rUAX2WKPCR/kFJ8cdacadiE93lKCDIAAKpFviz7A9WRAapCt4syGh0PpKiEhhHV6DKSZYCgKZpMK9LGCKQ0GaTgWE1WUlZlVhQEeK7EUKZd7+HtKyRFt5mLzl2uA== 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=a6F7Si9ccQWD5GOC3H8nn5imuehqAiiprmCizm4S8B8=; b=kip7DzADZm8Js5uEnoRw6owi9ZP+qou546SiNA+wLcRgXnK5+KIrdFFK6SKwEZST5v5SFy9vQtReupDtvKBEZa27gLs0cXBBOPvjA6e9b2pmJrIQIUClgapEOoKVDbKhqndh24QKfOZ9BdlDleqXmIqKVKtFGwolYLlo90iG85M= 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 GV1PR04MB9133.eurprd04.prod.outlook.com (2603:10a6:150:24::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.15; Fri, 14 Oct 2022 14:47:44 +0000 Received: from PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::4150:173b:56ec:dc6c]) by PAXPR04MB9185.eurprd04.prod.outlook.com ([fe80::4150:173b:56ec:dc6c%7]) with mapi id 15.20.5723.029; Fri, 14 Oct 2022 14:47:44 +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 , Florian Fainelli , 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 NET v6 0/2] net: phylink: add phylink_set_mac_pm() helper Date: Fri, 14 Oct 2022 09:47:27 -0500 Message-Id: <20221014144729.1159257-1-shenwei.wang@nxp.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: BYAPR05CA0057.namprd05.prod.outlook.com (2603:10b6:a03:74::34) To PAXPR04MB9185.eurprd04.prod.outlook.com (2603:10a6:102:231::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9185:EE_|GV1PR04MB9133:EE_ X-MS-Office365-Filtering-Correlation-Id: 9a9cd047-0a0c-4812-0f79-08daadf30db8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: y9QB1Mbk9kbXFBieP6VFCuQQo4C+N4bYUfOLH/+yKwytJXSdljD6uoQN3AituSbjGqvQgE7mTC20kr30IVTwLEpS67ET5rEY5a/e6G8diWxOseYXpNyhqpG0gsXLu8nU8m4QCd0FoD4c7Ic3oQfz3j+ZPCySW6TandrVVPPsFf8j55/TU+1Cjl6+riOO4+q/tMAQwPNNN95w+1cU7w1iZBhWBd4UEL2HhJJmmBXuOXh1KvCrMnW12OPMUD2tjzXsD5xj1wbk69SLOhlLjnMzEuKaW771sg4+iqpefdm7B/AQFe38Va1DAC/0mGXyIzcGlGkUJCRQqWqmkz++XIOsefzy+09WMyMyfUCOCQTnn+x0mnweyXi6j1cJqHCZy1NyzYh7C47mNiDJ4UiGdeOlCEwBgc3uqJzhEipQSOfwbAMj+WYnEiTWSJC9eAWEp+tgzXRIVYEa4lkrnOPi1WhnNn1mYLUmLIJcbaiZO47zMGK4n5erChClbvzyTHGY0k6jzx9VqfxVa5zyxQBQ4TiUxSIi6DgR/68YuxZixFgJDsyAd4ubmoWlMfZhdK/bqtab0tstuHWxIGGSk3ByLAtRH1YdTYePv0GEthsoxFuZZ3OxUaOnOcg20yBm11ndHZPYOoCOAumkatsaoloPvtpE18g/mjJZjguvX54ahFrl1Jy0wVWIoSWFoXXMR+w89ZlGu/KfAM5TmL352p957PvTvraLdsXMtKmE4CjYmDSPi7EhJbbOn9/73WdcdKJSr1Cc 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)(346002)(376002)(39860400002)(136003)(366004)(396003)(451199015)(5660300002)(36756003)(8676002)(54906003)(41300700001)(6666004)(6486002)(86362001)(4326008)(44832011)(316002)(66556008)(66476007)(66946007)(8936002)(186003)(26005)(6512007)(38100700002)(7416002)(52116002)(38350700002)(2616005)(55236004)(110136005)(1076003)(6506007)(4744005)(2906002)(478600001)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: J25UiiObQeM2Bula7/5hqvADzcz+eE3GWQhX+U4PjkTVwVHhzLNIUUyWMwwvEeLzYHaCgtV5HFe9rJtdzd6ldm/jHFNiRyOoWr7gIVXyVTi5BH2IRxSMF93xzeIkjGEPVdvbmLIMcGavRD/2sqQvN+Dxuh10wqWOXhybbkDdsvxXdnUTew1fNIClWXeyQyyZg294a7xlQ6O3U8GyMG3mc90/DDae34aclhaTOgdCsjYP1/JYNKIAZc7cMkKsFPYcXoErTRzRMHdIZY563pVOuTq6uhQ2UKHuaMEhRv7qLLPslsp0n/SCBkumQNq2Tur7Zi+AKKqYI4rO5Dn4aAuoHQA5AG77COcssqKMyDHWOpTcFtxCgKfF+SIDdOnwQewjMayaFY/jgDm4nMQZ95TXzzfPaJQXzVWPz0haXoc5DXatyH8GPLUUFQaK5QOasoMVWfxAgQ1O6jPW0+GxGQYNixRItlEi9xZ/yf9dU5CFOmo/t3VERP9y0jbPGYby2srD7nqRrIUxI3r4K8E7euX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S-Exchange-CrossTenant-Network-Message-Id: 9a9cd047-0a0c-4812-0f79-08daadf30db8 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9185.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2022 14:47:44.7826 (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: 5XUXXwgrTxQtQCluQ0m4yc7mTHW+yhOLzlAPHy5KdAsc30hoyd7pVviIVnYEXaQ8tHIWpHInO0tuJGw9StRMEg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB9133 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221014_074749_701850_4184B60E X-CRM114-Status: GOOD ( 10.37 ) 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 v6: - update the fix tag hash and format Changes in v5: - Add fix tag in the commit message 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