From patchwork Fri Nov 1 15:20:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 13859544 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 1E47AE6F06D for ; Fri, 1 Nov 2024 15:32:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: 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=0+CRddQB4fSTWEZf30l7BxLEVpF/DkpbnOO1FuYSttQ=; b=QN04rRvxPy9zQu Q9u4ZTxLRQUDZC7ZqbVDzz2+SVqfrUFAtfcWLuH5FfncUG0AgaGCYBzKUg0KTBFuJJ1tlNIAfRntX Bo7aFDisDv+zAP8AFtELIYjjgnSzXEarciV4hTAV+qNoCFMemVVOKmfcpMwDDkqDMCqOQIGs6o3/I 0gZdXZLyhttQELXs+Tyo7xCdR4FhApN4SlQLNvu47uCFihYkzKJngPrYBoNT744Mur1njpxDyG06N rNPbKyUrhovyiHnw0xkTlQRYtPbRpUq1mzlqSQgVzCzzUWw1IXzGL7uDt1NdJYRftvfq51WAvgRDg ouD2LFAk/6tZWtVs/YTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t6tdk-00000007VtS-2B7u; Fri, 01 Nov 2024 15:32:44 +0000 Received: from bali.collaboradmins.com ([2a01:4f8:201:9162::2]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t6tSB-00000007UGg-2HAm; Fri, 01 Nov 2024 15:20:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1730474445; bh=YB8pbQNj6sLlzicHNtt6ickDj4H2tEh5oQmtt87rcZk=; h=From:Subject:Date:To:Cc:From; b=Xb8gJSgbstBOSK/9BQ/qNdVRJAMkO+jB+8cY8xGLDCs/iWp4/0Sn7UETxT3IgWsXJ IrwntJ4vr08+VH0IObdSPJVQeF9YX/UkJxVQCPCCtOXGxR1M2iFjXOuIA7bhEuHe4J NzIyKzDpnZF39yCfg2dJA4xuXz00sIuRFuYhzLuGz16wQHEReMGImHkKgdDsKUvZoL Q9tjLb/TvlECyDQAYZAp8cPICOow74R8tuWWYleSy54+unnKIYnPJh8elBdPamYs4Q DRP9GhImM/TkPVAWEdVWKn+jqVIZhNQBT5eNhAnuDxPvtjChw3r2BHNK6fBYr0kr1Y f48CNAojyQSCQ== Received: from [192.168.1.214] (pool-100-2-116-133.nycmny.fios.verizon.net [100.2.116.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by bali.collaboradmins.com (Postfix) with ESMTPSA id 8410717E0F77; Fri, 1 Nov 2024 16:20:42 +0100 (CET) From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= Subject: [PATCH 0/4] net: stmmac: dwmac-mediatek: Fix inverted logic for mediatek,mac-wol Date: Fri, 01 Nov 2024 11:20:22 -0400 Message-Id: <20241101-mediatek-mac-wol-noninverted-v1-0-75b81808717a@collabora.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIALbxJGcC/x3MQQrCMBAF0KuUWTuQaWNRryIuQvLVQTuRpNRC6 d0NLt/mbVRRFJUu3UYFi1bN1iCHjuIz2AOsqZl613sRJzwhaZjx4ilE/uY3Wza1BWVGYjmf4hi 988dhpFZ8Cu66/vvrbd9/VYDmdG4AAAA= X-Change-ID: 20241101-mediatek-mac-wol-noninverted-198c6c404536 To: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Biao Huang , Alexandre Torgue , Jose Abreu , Maxime Coquelin Cc: kernel@collabora.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, =?utf-8?b?TsOtY29sYXMgRi4gUi4g?= =?utf-8?b?QS4gUHJhZG8=?= X-Mailer: b4 0.14.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241101_082047_780285_806F0A4D X-CRM114-Status: GOOD ( 10.85 ) 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 This series fixes the inverted handling of the mediatek,mac-wol DT property while keeping backward compatibility. It does so by introducing a new property on patch 1 and updating the driver to handle it on patch 2. Patch 3 adds this property on the Genio 700 EVK DT, where this issue was noticed, to get WOL working on that platform. Patch 4 adds the new property on all DTs with the MediaTek DWMAC ethernet node enabled and inverts the presence of mediatek,mac-wol to maintain the current behavior and have it match the description in the binding. Signed-off-by: NĂ­colas F. R. A. Prado --- NĂ­colas F. R. A. Prado (4): net: dt-bindings: dwmac: Introduce mediatek,mac-wol-noninverted net: stmmac: dwmac-mediatek: Handle non-inverted mediatek,mac-wol arm64: dts: mediatek: mt8390-genio-700-evk: Enable ethernet MAC WOL arm64: dts: mediatek: Add mediatek,mac-wol-noninverted to ethernet nodes Documentation/devicetree/bindings/net/mediatek-dwmac.yaml | 11 +++++++++++ arch/arm64/boot/dts/mediatek/mt2712-evb.dts | 2 ++ arch/arm64/boot/dts/mediatek/mt8195-demo.dts | 2 ++ arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts | 1 + arch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dts | 2 +- arch/arm64/boot/dts/mediatek/mt8395-kontron-3-5-sbc-i1200.dts | 2 ++ arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts | 2 +- drivers/net/ethernet/stmicro/stmmac/dwmac-mediatek.c | 9 ++++++--- 8 files changed, 26 insertions(+), 5 deletions(-) --- base-commit: c88416ba074a8913cf6d61b789dd834bbca6681c change-id: 20241101-mediatek-mac-wol-noninverted-198c6c404536 Best regards,