From patchwork Thu Nov 23 12:14:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 746961 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b="HiXFXGOl" Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2058.outbound.protection.outlook.com [40.107.7.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B3BFD56; Thu, 23 Nov 2023 04:15:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A+2jiqE8R9ZGKAgRsjUUTHKYQJFAsSgLD5M4qpFGVN4AFWs54gRykB8hS5j5gG8ocm0iNWk/THC2WUowiZEIr9A5jIfB1EeKPIT9mF/OROnqKkvEP0BCFapEw9GvkYgygQhfsmFTdn0fsepudcw3ASqOY19PiKvdLgnavLiPsR2nS3tPUkqBolY41fag3WkOLVh3CJMyqgEtmhjiMTnPtYQ4qGu7lC8of3xwMbR83HuNYvtmciyV7L/jZElcbHryuczhIaCU2ZZiDxbeDZ3z+ZvXyjvrX19rJN7hRnaRQPN0b0EtgCSo9jlFat9ASX5YPgYL9EpZO5o7ahc9OT+Rew== 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=JT1UHAK8mf2BxFRMKPA7B37sIWgCMnP/9/n44FUcXBk=; b=IM6FVpC7/Oo3KQo85jvEcDsRbs/nry7WtoUpYg7RmnqSFwE/WD39e80AILzjknzFJCDvgh6GVENl/IDrZZscq4lyrrAJggaSbfF6wioGAt3xljJUYfEultYbM5xLOAxBsmTGYAhKESILaAePNYh5cYuaX+5H0yRR7pYeFhp53vRDbw68xktUmbqxgEa2i8L0IaBx65+j7U8P5z+mF9dJFNjE3JPJ3Bc4ZpjCEOTSzkTdzO+r6D1hiPq+pPfOJHtPW3MG8+tNgQckyC1YHQTYA84hNX+QDp41RLAT1RLvBIjd8WtzUxAbi0SXK0ii6RkWqZPcf/0OKSAd825Oy9GRbQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JT1UHAK8mf2BxFRMKPA7B37sIWgCMnP/9/n44FUcXBk=; b=HiXFXGOlVIR7w/G7VTO1+rYfIQfMsQKltI8H3C6J8h+EWgAYkU8UgMW16nK6nHjsxgEIT3HSrP0TW3BKN1EBK1ab+0hnbbTnMwX+CQylwxlSIo6KVypF4rjbP9FwW1QrucvbfXqVsGZt1hLir3+cQSJBFPL9wmNt2yqVM3pToHc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by DU0PR08MB8423.eurprd08.prod.outlook.com (2603:10a6:10:405::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.18; Thu, 23 Nov 2023 12:15:16 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::6b40:1e6f:7c94:71dc]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::6b40:1e6f:7c94:71dc%4]) with mapi id 15.20.7025.020; Thu, 23 Nov 2023 12:15:16 +0000 From: Javier Carrasco Date: Thu, 23 Nov 2023 13:14:13 +0100 Subject: [PATCH RFC WIP 1/2] dt-bindings: net: rockchip-dwmac: add rockchip,phy-wol property Message-Id: <20231123-dwmac-rk_phy_wol-v1-1-bf4e718081b9@wolfvision.net> References: <20231123-dwmac-rk_phy_wol-v1-0-bf4e718081b9@wolfvision.net> In-Reply-To: <20231123-dwmac-rk_phy_wol-v1-0-bf4e718081b9@wolfvision.net> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , David Wu , Alexandre Torgue , Jose Abreu , Maxime Coquelin Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Javier Carrasco X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1700741701; l=1046; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=5nCO7JT4rELhAOOidUsUPsNZ2GKEnGwXx3JdX0dzDQQ=; b=UeEC7LCJswlJVl64pR16sDF8op2YugDv1KeanMbaonXr+v5Pq1wNbIKTv5zk8Q9qoUJ2G3Szt s2Q2MpIVOLtCRpLd2dATlMYGcb+SigDPkFkFJNm7VW9piKpMjEcszBg X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: VI1PR06CA0227.eurprd06.prod.outlook.com (2603:10a6:802:2c::48) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|DU0PR08MB8423:EE_ X-MS-Office365-Filtering-Correlation-Id: d2b22efc-0458-4139-1fcb-08dbec1dd2e0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +0BUUNwvy1j/IDnejKD9cl8+cKbzQKEgxe17dS5Hn5jU/5QKGtO8qwvirM+1rExlV8vgE8pwwLkeDlhZP00ThrlnuSypn3OckMZPE05a/9Et8r2mWPGz9/Y4Tv2NPmoeGt8eALL7E7TSS4Ef/haEELBFk3UfaN+EM/YcP6BaXwa1FEZboHmNaG/Zpk0drbwr3AOaAVLo8GUX5FPdF84Gj5CbDA2UIw3bJS2i/2BNP4bZ1mPn0WsuB4K6yGs59c1f8G/4TapFgarPwnjbQ8ZVM8MwlKT0lFPiN/1Af0F/tmADCyd82ZLLj+v4OjT2cawE7VjN9BPg9qs1C3oEFvtUEw9ZEWUPq/CTFzS0B/VmdOt7jQHqcM7RWSXTnWxMyUFgi+ssbiD0eVKjSL9aDAHpLvxkr89hWWx2HBMD99JgqNtAHKZUVg7BotW8zJaG5hpmFSebQGlhLKskOUhF9+2a0SaYg3k117sqZumbAmjX0X8wtpOG5hv4utdjtN/1tOcCULYTqIBopmCLI3e5YLMHyiJ027B07YdwNPwHW0nU6YgLCNhUPNPO0mXTpR79QY/b1Z8wdyQd3RZw/S0soJrnoIrJuS+HFo7Aw0srSsX35safGo/SYGQOUoZP0Zt8dCUb88bYwm3AH0MkxcfyXSntCQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR08MB4974.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(136003)(376002)(346002)(366004)(39850400004)(230922051799003)(186009)(1800799012)(64100799003)(451199024)(921008)(26005)(2906002)(7416002)(4744005)(38100700002)(66556008)(66946007)(2616005)(107886003)(44832011)(5660300002)(41300700001)(8936002)(4326008)(8676002)(6486002)(86362001)(38350700005)(478600001)(66476007)(36756003)(110136005)(316002)(6512007)(6666004)(52116002)(6506007); DIR:OUT; SFP:1101; X-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rIWCck+wjiWAqTTJkqpXOZmTzI4?= =?utf-8?q?1X0eVmFjk+4qm+TqTduEzHQ4XZQ0SEVhoXIlcNn+d2aJUEku6ti9welKO8Kmc6mDe?= =?utf-8?q?FJIerTvXuwRDY2/xWNhwRseTUl0uBbUirsC0VmKLFuV3yCUXSjBTXAEBuOZr8JJBv?= =?utf-8?q?Ixnl5G0LwkIaaUC/kohWnr1DTg/QEHQGvkHY3woTwIf9eBdJJGx/+YC4tRKg4snkZ?= =?utf-8?q?q7RVWeKdxhdYFvg+mUGGRS/FyltPzFRYyQpDMQnLb0hY4dxBnc/o2af2kzPnVIRNm?= =?utf-8?q?MieTNvuMogZGUT4dIEotZjWZyZrfOVFYJmrjXBqdE0948BWBZXFiWxK2GG4KNKyCD?= =?utf-8?q?yL1yH3VTLrVWDUnIjZh4WlEhu3RT9eUGPjAeQqtwMUOcM9dZ8s77a+FxojV2g3oHj?= =?utf-8?q?62/vjodeodtYDd1soN7FhS5MVh0hAGArSl5xdQIw744itmsWxdT6N5YdAt/PWSTYr?= =?utf-8?q?Mshu5oFUAAFTxTFsvVPRoNl8/8iMK+F7C6dhDE0fsbmghnY6w3Bq8io8ByYKE2W6D?= =?utf-8?q?ndi1AzXwCLFXZkbaC4baGUHh2mJGfuhgGLArximWQGENAOdF0h6A9koxkqjzryAu3?= =?utf-8?q?cLXHAogd76PVl9D3oglvd7ClixSJfVxSenxf5KGu7HEdtPW2e55wWyBOOuO1G0td+?= =?utf-8?q?G28ycffXBTcVy+E7R15wfDRAXjOekf+/t847/VHMz5QIH3sgQ8JnzGTyxhKiX8d1S?= =?utf-8?q?ZqBsj2xaRHH9K5bTOFzrWF87lM2efX5x83fHJtZ/f8+mljdiyjdqyCQ=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: d2b22efc-0458-4139-1fcb-08dbec1dd2e0 X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2023 12:15:04.0333 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ueja0yb86HgygVWt4v+g3oDWA36hJFf81zeQcEDqnTwvR2MwIc25sIVAtwYW7+iomSF/ilT0MISDiOAq9KZjAtAHoSRWNseU96paf2EMlmg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8423 This property defines if PHY WOL is preferred. If it is not defined, MAC WOL will be preferred instead. Signed-off-by: Javier Carrasco --- Documentation/devicetree/bindings/net/rockchip-dwmac.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml b/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml index 70bbc4220e2a..fc4b02a5a375 100644 --- a/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml +++ b/Documentation/devicetree/bindings/net/rockchip-dwmac.yaml @@ -91,6 +91,12 @@ properties: The phandle of the syscon node for the peripheral general register file. $ref: /schemas/types.yaml#/definitions/phandle + rockchip,phy-wol: + type: boolean + description: + If present, indicates that PHY WOL is preferred. MAC WOL is preferred + otherwise. + tx_delay: description: Delay value for TXD timing. $ref: /schemas/types.yaml#/definitions/uint32 From patchwork Thu Nov 23 12:14:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Carrasco X-Patchwork-Id: 746657 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b="1ggO+kOl" Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2058.outbound.protection.outlook.com [40.107.7.58]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26003D5C; Thu, 23 Nov 2023 04:15:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hKlLEQX04e4A+LKyJFrzVX7xpiN+al4REMJSjyG3w5n35L6wJSFRbp/LgN6XU0robopm77ppT/tGRHN3Qhw9gcd1pC6EIGa9CSEFgIsvhvWLAN4pdGuhKGHBDk7pfBrE0ijoxX/Py8S9t3XVwd9YIj3ZDXfMcK2V/Mrvua+7GsXm0P9dpkzfF/Pmd0gDpg6/Deu4bRJV67FXxzJZKp/EPdzLXWts4u7ue3j9S8tiI3ibJiYCUNdrljUxbWd1uQwtUF/ByCg2yar5lEr+If7J58s2l93RzZ/uj4m0gqSGtAw2MTYDnFNbCxWf0gnvo68d1XxNNyInOiWiBFlZq2cfKA== 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=AIfnaEo4N2Z/UP01LfKx32JgwuHl3fG1jrAMsr9MbfE=; b=NRfK34uDBnCE97LlboktJe5Vo4n+3a+OpZkyuo9SF7h3G4rFKOu8Mru8nimghunslYfJUcORCp2w+y9RsY9pY8Q2iLNxBOERaFv9LB8Rr5DESIIpz0smWDIde30bU86M0WM6OGTPYa6guZIR8zBx4+HlhVZYHrZv6zqVDZk2VQP46DjMecJv5cMxxa+hx040GFowydu56pL18hWmU7Sa2KQ1Oq3trL9pVrTGJ2A9yLfNHRRGTC/J9f5hXU8e82Lt+oD1pEPdocc/0XcH9Y0G+B7ykFJhOSyaUFpV70Qd81Ea7EvE6HTvdERZ9a1pHhY2SFuBkoacv7LB6Kw3Jitq8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=AIfnaEo4N2Z/UP01LfKx32JgwuHl3fG1jrAMsr9MbfE=; b=1ggO+kOlnsXUHOAovCCunEaUvCrn3b7mZgqtPe1bFkLatzZPqZbWscKJqZ+c8/khv/vILkc3NDQFoCsbAeTJUbjsjCfkMo3OHY0bAGA5T8hKkAuayWVeN2tyGAcheaRIdxwXKzXBCnYVME1+I24zg/nWjuAFnx9HCZo2H6novIo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) by DU0PR08MB8423.eurprd08.prod.outlook.com (2603:10a6:10:405::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7025.18; Thu, 23 Nov 2023 12:15:17 +0000 Received: from VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::6b40:1e6f:7c94:71dc]) by VE1PR08MB4974.eurprd08.prod.outlook.com ([fe80::6b40:1e6f:7c94:71dc%4]) with mapi id 15.20.7025.020; Thu, 23 Nov 2023 12:15:17 +0000 From: Javier Carrasco Date: Thu, 23 Nov 2023 13:14:14 +0100 Subject: [PATCH RFC WIP 2/2] net: stmmac: dwmac-rk: add support for PHY wake on LAN Message-Id: <20231123-dwmac-rk_phy_wol-v1-2-bf4e718081b9@wolfvision.net> References: <20231123-dwmac-rk_phy_wol-v1-0-bf4e718081b9@wolfvision.net> In-Reply-To: <20231123-dwmac-rk_phy_wol-v1-0-bf4e718081b9@wolfvision.net> To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , David Wu , Alexandre Torgue , Jose Abreu , Maxime Coquelin Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Javier Carrasco X-Mailer: b4 0.12.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1700741701; l=948; i=javier.carrasco@wolfvision.net; s=20230509; h=from:subject:message-id; bh=L+4DG9qvsMLMaPm6QeM3H7V9nATvHLre3SHjaPYMid8=; b=pgp8Dm0BP4blHZcJ6r6YuxjSY6KhK5aZmtXcCHc46Fomuu2r6XJc9kJp3akfP8aSSdfvCmes1 2MhbndH2oPCBVdU65liKUO8KJv5AeKbDvzTMGMEHvtavryS0STVmNvJ X-Developer-Key: i=javier.carrasco@wolfvision.net; a=ed25519; pk=tIGJV7M+tCizagNijF0eGMBGcOsPD+0cWGfKjl4h6K8= X-ClientProxiedBy: VI1PR06CA0227.eurprd06.prod.outlook.com (2603:10a6:802:2c::48) To VE1PR08MB4974.eurprd08.prod.outlook.com (2603:10a6:803:111::15) Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR08MB4974:EE_|DU0PR08MB8423:EE_ X-MS-Office365-Filtering-Correlation-Id: ea339c67-63f0-46ae-1854-08dbec1dd37b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QUl1IOReLpf3dxNKBZ5HHm+HQLAXmOxuNx598HnUiyXD9dJWACLU86hvaQ0BbY1KZ5yDFv9S+sp1SXSLGmr03LQfRoJXsvuaGgD/h6ymjrV99dhcgvyuvHKEPq/s4GdPKRylyZ3Oeqr1ip3ZmuT233nS88DED/zfzCX1UGXPXQ6u+xMebMLakToFFy7cYI5k+UQebNCzW7aH7kQQK7qnTHovyC/hc/Bu5exnw5jvH3kOREz9aLdy0BPtsp/o9JHaJIKV45IXPYJPwD5ZEvnbEKJrN+ganF9TXHRgIIAibxj9gfZeU7/4o5IgZDxVC+mn/bHwho1keOfu7YWyQP1bh3puQs4eqZcWnrLaRt31CgldGlFhfhe3HgFvVfd/iJ0dSGJ9uBFUqnR33poOW5YDV0GSGJN0eELnJ7NGBwSCIZ1/NHbillvNtJVq/UfPurHrDYX4hnTMbizBtnop/OQyT4FSxo7dAZSG/Mt9K+shypOpO0ETAx5b6xYmwYZepvo9gYe1zR+Qix/II2RjRcDClegtjO9SZfmb2QAMpm2dC7kEWk2Loai4yhUAPh/9zSfB/QHimdXSIV5+KzWCVzcWE3W0skX2mhLbZw2dT6B6FeP3qz1b66poPwBlt1764Ea9K69UbR2CO4FxqLxGcpLWWg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR08MB4974.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(396003)(136003)(376002)(346002)(366004)(39850400004)(230922051799003)(186009)(1800799012)(64100799003)(451199024)(921008)(26005)(2906002)(7416002)(4744005)(38100700002)(66556008)(66946007)(2616005)(107886003)(44832011)(5660300002)(41300700001)(8936002)(4326008)(8676002)(6486002)(86362001)(38350700005)(478600001)(66476007)(36756003)(110136005)(316002)(6512007)(6666004)(52116002)(6506007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?eX7BHG99v2RDl5oInCCCfe+UX7Iy?= =?utf-8?q?55mJXpSPYD3k22BZYrCpmgitGyQX0piX3gfHClNcfu/12SSBybcSlDR4zrKgNx1Hs?= =?utf-8?q?AjA33En2aIs6hjOs7DRna0RwR3a/3v8QZJgvYAelH2Dnl+9mjsvwZ4eV8drJe4CNl?= =?utf-8?q?VKe5Atr+r7VGN9zJ/rUR2sOXnX930CcaEw8y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POUgG9FYPlW6YkDHRlbF5HH9zRGx?= =?utf-8?q?eOmnY4QQgu5h11+VHeN5mg+zFPVr5anB9IZuBXdycoLRx2wRMm4XnhOxQfO99paXc?= =?utf-8?q?/4EHU+sCX8CU6VfcPW4fBHVwr45JKuxr7YKro8BiDAuLMtl4unxzdGMg+w5QZjXT/?= =?utf-8?q?kDGD1hUHQeBPPBwgiT5SmSM1UfiUozgpu2O7BmQKyJABeRLimaP8i6wzeePlsGV0C?= =?utf-8?q?zZDxIPOFk9GZfyvBCb4fVC3GPaq7WCx65vki1oxdwPW5BHrEv5B1Ef1QPOm0iV0kY?= =?utf-8?q?ARBpAcql4lPApN3lo3A6QCiJxag4NbWD2vRYwscJgXmPSJpjUxQk9mb8a32Ndvx6h?= =?utf-8?q?VKbMr027qIco9OXhaKc57Tql4COqNUOZ85Bm56KCAENza8hD5jMSYAfPfpUjxjAMI?= =?utf-8?q?yHw4poYT1EL+kuPcfs4nEzPOSheSJ3B1I5h9cffas6zsa9t+0dSeYXkaj4F2FgMfc?= =?utf-8?q?bx0Kfw/nEz6cfAA+dXwE79SEbwozZE9XHPHj2SW+E48yzhJbWxFXIng=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: ea339c67-63f0-46ae-1854-08dbec1dd37b X-MS-Exchange-CrossTenant-AuthSource: VE1PR08MB4974.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2023 12:15:05.0661 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yUT45QtFPuoIXKLDaGmqkWphvweITQZnFmd5deET9wEJWYAqcagJZi4Lf/zlqisvzRQEjwPye9xGGPrjKAPchKnDlyOa06HkqAuptN3Mfeg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8423 PHY WOL will be used if the rockhip,phy-wol property is defined. MAC WOL will be preferred otherwise. Signed-off-by: Javier Carrasco --- drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c index 382e8de1255d..c543566b4f90 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c @@ -1694,6 +1694,11 @@ static struct rk_priv_data *rk_gmac_setup(struct platform_device *pdev, dev_info(dev, "integrated PHY? (%s).\n", bsp_priv->integrated_phy ? "yes" : "no"); + if (of_property_read_bool(dev->of_node, "rockchip,phy-wol")) + plat->flags |= STMMAC_FLAG_USE_PHY_WOL; + else + plat->flags &= ~STMMAC_FLAG_USE_PHY_WOL; + bsp_priv->pdev = pdev; return bsp_priv;