Received: by 2002:ab2:644:0:b0:1ec:cbc4:63fb with SMTP id 4csp1143728lqn; Mon, 26 Feb 2024 08:53:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVC7jAx2m1tcYmk6wOWOp992GQPxFphOvDV3U0gjlqYM2hd1mIcaW+Kyx4yp3nUdjBLtz32fV6nObHXa3fEYfuvkj0SHV+fzmRj3Q31cA== X-Google-Smtp-Source: AGHT+IHbBOZwtKwgaKIJLb9zDqUZvw7SGQk1D6N1u3zGXvxbNW0wR/aAFmg37D/SALkz8tRqEU09 X-Received: by 2002:a05:6402:338:b0:565:6c72:40a9 with SMTP id q24-20020a056402033800b005656c7240a9mr4501083edw.28.1708966418208; Mon, 26 Feb 2024 08:53:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708966418; cv=pass; d=google.com; s=arc-20160816; b=yYxX9cHFbPlO/SKH99ziGDB+bWzL0WZn2yUFk/6gyqquM9AGNlzkhB9IY734VGPgV5 AEbQjvQLs/6KeYlHk/zrA4sFJ37dLHNMzq6oQxCstaxwLIYdOw/B8sQ8GnWGFWv9+J5x 8rGj8iG0tIEbTYeLEjaEbd355lF20FznNVXCtdtTV93bJJJQKflmNq9L23SJ/5seBl50 jqqH2uGaxExW0cZaDHdV5nZD79CHnAOTrS6yu5XD9KiGJc4A/aDV51gNcoPzOCxetSLp NcWmH1PMqJInJ90DKb1Yze3iV4IM1LM5cHJpKVctFp9lJVDJ5umRbZwxoInoR6J7C70h xpiw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=e5LzI+fYwzqDfr49BonbGexI34AFnEafybLaYyE7TzE=; fh=QXyiqzqdpHs/pTTTeM79PaKlTtyMtsZlyFCjR1R+OVE=; b=RMV7p4cWuFvbOP21MBrTBcSfuatBWroUucHxI9zmYh2VqjEy9DIgoJ60C2/0hB0Nf8 ZKCPawM7AV2iKqd03SBYo/OWIMk2tPpu3g2hN9jrFM2WHQDIBIMV9p/ZG6q5pHXN6mdz wSa1X0EhtRMxaqUAMPDKi0UHPndcKSuwOcpS4uD2vEpPdFJTlxzvUe48KcJGt8DN/LsJ t2S4LF4c79npirFg7r3svRh5RKNvmsA88pz/rFgA36+OnYVhqZz+gopjH3zeqy22mFhn XB5Y8rd0A1EfsrRW4yoy1y7QQq5NS4ytj2uNgzuD39D6jLXEt3U5flwo0u7RiQGQng/p i5Zg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=O8RMkpuQ; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-81947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81947-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id cm28-20020a0564020c9c00b005640d1e7e45si2174509edb.520.2024.02.26.08.53.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 08:53:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=O8RMkpuQ; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-81947-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81947-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id E35BC1F23A11 for ; Mon, 26 Feb 2024 16:53:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5094012CD96; Mon, 26 Feb 2024 16:53:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="O8RMkpuQ" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (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 E5ACA12C7FC; Mon, 26 Feb 2024 16:53:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708966407; cv=none; b=h8HEUjDyuGMZbKjuWzw8/miCVSo0RAbC4zw/CXyGx4WmxbT+nJsUZ5cWB5KcGFRD9wNA+42JMqKOuDGzCoGaf5VBAWlxFvoiD3te7sBgVSlqus+6nZdzle+C+Pio8g/C8qyJ90GD8/7sghKSxqyBb8q86L9jajAbnoX+3jv8XJQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708966407; c=relaxed/simple; bh=KiMCRLVbukxEd51VY4SmxiqAWQeh8Z/9xcRcx2E0GJE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ArWvTSpIaGKA9p8k0Aa8wuJUy992opduedtgh9vg7y/HV8meN4BviITSxD0xA+N4VX+YUf7eVuFrPzOgP/Uobn/QMZmsxv3iF+uL4a4SgRbywY02sjESv/4aKNgAGINaMNGzgoqIgRw1JSUSfGhdNLGWKBU1BMc+rI6HqZ4Q2Hs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=O8RMkpuQ; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=e5LzI+fYwzqDfr49BonbGexI34AFnEafybLaYyE7TzE=; b=O8RMkpuQvWfdaWYT9H+x798kxN 3OjtAKfdXSLzuH/3DhZVZ0N2S7PEqUyi+ZmvSt97RQ9fu+wOij778f2eIiYt+2Pia4fkuRzN6edx0 sj/Ta2LGh6x+2xCJVvg/jHX9QLaw+ZyWh3o9c8zgSuQhee+h1MvF+eCoKWlAfJmYJwgM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1reeEP-008kFI-KP; Mon, 26 Feb 2024 17:53:33 +0100 Date: Mon, 26 Feb 2024 17:53:33 +0100 From: Andrew Lunn To: "Russell King (Oracle)" Cc: Catalin Popescu , hkallweit1@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bsp-development.geo@leica-geosystems.com, m.felsch@pengutronix.de Subject: Re: [PATCH net-next v2] net: phy: dp83826: disable WOL at init Message-ID: <13a68356-235e-4945-8cf7-5b7a42b0bf46@lunn.ch> References: <20240226162339.696461-1-catalin.popescu@leica-geosystems.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Feb 26, 2024 at 04:37:55PM +0000, Russell King (Oracle) wrote: > On Mon, Feb 26, 2024 at 05:23:39PM +0100, Catalin Popescu wrote: > > Commit d1d77120bc28 ("net: phy: dp83826: support TX data voltage tuning") > > introduced a regression in that WOL is not disabled by default for DP83826. > > WOL should normally be enabled through ethtool. > > > > Fixes: d1d77120bc28 ("net: phy: dp83826: support TX data voltage tuning") > > Signed-off-by: Catalin Popescu > > It seems rather interesting that WoL is disabled in the config_init() > method - because this will be called when the PHY is attached to its > network driver (reasonable I guess) but also at resume time - which > means one can't just set the WoL mode once and that status will be > preserved. > > Maybe Andrew can clarify, but I thought once WoL was configured, that > configuration should remain until the system is rebooted. Yes, i noticed this as well. d1d77120bc28 does change the behaviour, clearing WoL was dropped. As you say, WoL was probably broken before d1d77120bc28 and it will still be broken after this patch, so no real change there :-) Catalin as a followup, could you please look at suspend/resume via WoL. As Russell pointed out, if the machine is woken from suspend, we expect the WoL settings to be kept. So WoL should be cleared on boot, but not resume. Andrew