From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bali.collaboradmins.com (bali.collaboradmins.com [148.251.105.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9C255A95C; Thu, 14 Nov 2024 13:57:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=148.251.105.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731592630; cv=none; b=UzlmjVsqaxeR3agCsELgBww7t6ADc2cmhrmWy6kJdIXDi+GYjLbV0uQLwaU05VwfhGeXgfvaQdEppwG59Z+N+AGo6lUWc/Kj+yiWD6dgEHk8rt07sL+6YfXZTbx5qnWt0oN6DzxcZGPMALLBK+3JZiktTLcrTMK+cVmdeoZhUv4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731592630; c=relaxed/simple; bh=xXmKpFmqAMp48Y7ttayGjWqRYdxHGKlAorYsho+aMWU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=p2u9lsjZg2D/b/BjtysDHWtdExoLGVuEEWKBGeH/zQuQA604LZpwa8pPIRt+tys9lvW+nQQXMdl7NHbBx3DqbhpcCjF0hEh31bKS0HEf4n3qSk1MmeON+MTCWy0pzCp2uPBnr+So5+Tz9cW7DEHI4NabVaJcI4uh/9oejE2auoY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=EYOwq4+k; arc=none smtp.client-ip=148.251.105.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="EYOwq4+k" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1731592620; bh=xXmKpFmqAMp48Y7ttayGjWqRYdxHGKlAorYsho+aMWU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=EYOwq4+kKxuaOhDYbs8RKuUUPRF+f3aQPWayV9Nqu8LJ9IXJ4vuTG7EKa1QbkkuoY 0nJawHXVrCFbuf/jFbKvEC66c1koNvSPnAdAESpFMc6+yGzf3s1EDop25TdW++FbGH 2Z5PUz5FmwJN9Ym5Wjj+4EhItfFEYhDKqz6RosFxvlGq8JpTA56Fm7udasiY5OaHNR JpHjIJtMgU5ZsOZMh4XR/mXkVQkcnkrjjlCdyQ1YwkCOZk/ZZJsKsk7lPO9Ht5rKyG 0U8dFrEkhNxY/L3zM2GlasIZTIZpKZhntVg05DjgW7PLet8XI6gJB5OBd0G64r6IbN Lng+IxWOdIIaw== Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by bali.collaboradmins.com (Postfix) with ESMTPSA id 3025917E3663; Thu, 14 Nov 2024 14:57:00 +0100 (CET) Message-ID: <1a36456b-4844-4827-ab53-598ec14d7437@collabora.com> Date: Thu, 14 Nov 2024 14:56:59 +0100 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/2] arm64: dts: mediatek: Set mediatek,mac-wol on DWMAC node for all boards To: Michael Walle , =?UTF-8?B?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= 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, Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , Biao Huang , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Bartosz Golaszewski , Andrew Halaney , Simon Horman References: <20241109-mediatek-mac-wol-noninverted-v2-0-0e264e213878@collabora.com> <20241109-mediatek-mac-wol-noninverted-v2-2-0e264e213878@collabora.com> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Il 14/11/24 13:29, Michael Walle ha scritto: > Hi, > > On Thu Nov 14, 2024 at 10:26 AM CET, AngeloGioacchino Del Regno wrote: >> Il 09/11/24 16:16, NĂ­colas F. R. A. Prado ha scritto: >>> Due to the mediatek,mac-wol property previously being handled backwards >>> by the dwmac-mediatek driver, its use in the DTs seems to have been >>> inconsistent. >>> >>> Now that the driver has been fixed, correct this description. All the >>> currently upstream boards support MAC WOL, so add the mediatek,mac-wol >>> property to the missing ones. >>> >>> Signed-off-by: NĂ­colas F. R. A. Prado >>> --- >>> arch/arm64/boot/dts/mediatek/mt2712-evb.dts | 1 + >>> arch/arm64/boot/dts/mediatek/mt8195-demo.dts | 1 + >>> arch/arm64/boot/dts/mediatek/mt8395-kontron-3-5-sbc-i1200.dts | 1 + >>> 3 files changed, 3 insertions(+) >>> >> >> ..snip.. >> >>> diff --git a/arch/arm64/boot/dts/mediatek/mt8195-demo.dts b/arch/arm64/boot/dts/mediatek/mt8195-demo.dts >>> index 31d424b8fc7cedef65489392eb279b7fd2194a4a..c12684e8c449b2d7b3b3a79086925bfe5ae0d8f8 100644 >>> --- a/arch/arm64/boot/dts/mediatek/mt8195-demo.dts >>> +++ b/arch/arm64/boot/dts/mediatek/mt8195-demo.dts >>> @@ -109,6 +109,7 @@ ð { >>> pinctrl-names = "default", "sleep"; >>> pinctrl-0 = <ð_default_pins>; >>> pinctrl-1 = <ð_sleep_pins>; >>> + mediatek,mac-wol; >> >> The demo board has the same WoL capability as the EVK, so you can avoid adding the >> mac-wol property here. > > Not sure I can follow you here. > That's in the sense that they do WoL through the MAC and not through the PHY (as in, it's the MAC that has to be configured for WoL and not *only* the PHY). >> >>> status = "okay"; >>> >>> mdio { >>> diff --git a/arch/arm64/boot/dts/mediatek/mt8395-kontron-3-5-sbc-i1200.dts b/arch/arm64/boot/dts/mediatek/mt8395-kontron-3-5-sbc-i1200.dts >>> index e2e75b8ff91880711c82f783c7ccbef4128b7ab4..4985b65925a9ed10ad44a6e58b9657a9dd48751f 100644 >>> --- a/arch/arm64/boot/dts/mediatek/mt8395-kontron-3-5-sbc-i1200.dts >>> +++ b/arch/arm64/boot/dts/mediatek/mt8395-kontron-3-5-sbc-i1200.dts >>> @@ -271,6 +271,7 @@ ð { >>> pinctrl-names = "default", "sleep"; >>> pinctrl-0 = <ð_default_pins>; >>> pinctrl-1 = <ð_sleep_pins>; >>> + mediatek,mac-wol; >> >> I'm mostly sure that Kontron's i1200 works the same as the EVK in regards to WoL. >> >> Michael, I recall you worked on this board - can you please confirm? > > I'd say so. Honestly, I've never tried WoL on this board, but I'm > not aware of any difference to the *demo* board (not the EVK). Thanks for confirming. I will ignore the devicetree commit entirely then, as this would ...un...fix the fix (meaning that patch [1/2] is good!). Cheers, Angelo > > -michael