Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp215287lqi; Wed, 6 Mar 2024 15:06:08 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX5kHV933m9Utyc/ik8dvmb/uebZaRD/Vbgckt+IEWuj9NDNFfbcfkI0h721h6JhZ+/u2+tHkcCkc2EPxbInutvJIkYnUmgULe0YynTCg== X-Google-Smtp-Source: AGHT+IEZ/fP/RcwsES/gJSI44JW71p/e1HuyUAe3hzkjQ7hnuebx1YRHzG7srtUgrJTeC1m02eAJ X-Received: by 2002:a17:903:230e:b0:1dd:2fb:a9b3 with SMTP id d14-20020a170903230e00b001dd02fba9b3mr7207548plh.27.1709766368582; Wed, 06 Mar 2024 15:06:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709766368; cv=pass; d=google.com; s=arc-20160816; b=jTez9yLIoYJZ0wRxvWVe6x7AkNZBcQ8NrZB8Z1/myQgIRLLRXfUib5WXmJal3ZYH/T Vdk2wEALhg6eyXkqxeO+WrXeogahC+opuiKhcpQN80hqzuo6+94hUZSi8r4c4ub8cIMA v5S43OkEdJDYET6ipsijbLZY07qdtNFrs61MtdiV6swzFPVu4ztLyziXgMdJtS/YhadX NYfYjpeavE/A3S0QrU6R7Iji2dyzIQUY16DwI2pmbYQ8E5AUEazrjGPk7jRefyOteCEW /scCw6E7OctWlL2dl8AwKvPv0WGGZKVPL8nfxsp1O845LqlsBI29sWEla5fyPogYkhOQ /stQ== 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=tu+kkEy+3vhioMBzuND7fGdxFOSgZ74kUNWaXmcwZi0=; fh=WvdC4VroxRaHMG5vy8339F7nlKBpB0N8o4XnTSSt2G0=; b=AvieffnsuDbESvqNngOa7HhLkMyhafKsSoWR+HoU5Lcgkr3Gmb7oppQj9BpI1R3ls/ 0JO9cSZFKYAfHlYxCnno887scA5FpQKjeHxNhFrcIfYbJgLvpSuj39fKiyCBUZ+IPPAr HD88XD7DPiS226IbHI8HnQW+z5j08myI0CcCR/zb1v8SLXcLE2zqX/h1ie0UKtdR4BF8 Pj/lxZhIEUcVlcNjqLzd1S04vVoVNHjkqeqkH92rs7/FPIjVihX8mMhNZOql7/3Gn92r o7QHEG/W+PUFANHRP3Zgeob/wtwCfmqk7MOiHjQUO9DgIsm/362NlsQy9QsouvOUC0tf vBbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=SWTqGsj1; 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-94684-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94684-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id lv3-20020a1709032a8300b001dcce28a483si12939299plb.260.2024.03.06.15.06.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 15:06:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94684-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=SWTqGsj1; 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-94684-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94684-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 5F8EAB20BB3 for ; Wed, 6 Mar 2024 23:04:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 591991C68D; Wed, 6 Mar 2024 23:04:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="SWTqGsj1" 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 E065ECA4E; Wed, 6 Mar 2024 23:04:37 +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=1709766279; cv=none; b=I1ccN9WieVi5bHIvu3SbROcuHS8EaLc5PvJA41ma7XcnzxVUmrdkU3fTCStUk+8foGhE2B+TaCQzKaxFgNPGdvi6kjA0rW3jwDgWGmwb0BBHoNw+H+HgsV3GAVEixkVtBut2turBRnNvKkqmzSWPNISV0HmOogkoz5bA72MVHEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709766279; c=relaxed/simple; bh=0BkBoxjoUbL8I9dtSSBP//w6m324kaP3H030ANrh3d4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=O12Ze/jdOMFUECO6hITxd0/JQEHm+zLaU6Rne1br6L86s9XINLHvg+FmHPr1BaXVKCi0+saTSN/P44XSDECMfQ8H8KjI5wpSMykatgPDEr87Pjr53I62pcUuXhsD/zsz47DGVSdC9FFB9OfgxM2d2ZXVzkq3qVubb0yDJ6lwmgg= 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=SWTqGsj1; 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=tu+kkEy+3vhioMBzuND7fGdxFOSgZ74kUNWaXmcwZi0=; b=SWTqGsj17HGAsi2jz7pUwne5Rn vpi7Fce/yxQpCEkCfCEednlu5X6urS5nPzbn5GIqgkGjJcOW+lSpN2p/BeDUIZ1OW4Qy7NwBok6JL vmkO71up2W3KVX86Cw0ypk4mG1ziPUfHK11nccWbQG8ON5LegIJxuTrfqVwp2kqdbV3I=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1ri0Je-009XDq-Dw; Thu, 07 Mar 2024 00:04:50 +0100 Date: Thu, 7 Mar 2024 00:04:50 +0100 From: Andrew Lunn To: Catalin Popescu Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, 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] net: phy: dp8382x: keep WOL setting across suspends Message-ID: <8de1d4e3-6d80-45a5-a638-48451d9b5c15@lunn.ch> References: <20240306171446.859750-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: <20240306171446.859750-1-catalin.popescu@leica-geosystems.com> On Wed, Mar 06, 2024 at 06:14:46PM +0100, Catalin Popescu wrote: > Unlike other ethernet PHYs from TI, PHY dp83822x has WOL enabled > at reset. This is rather odd behaviour. Is this stated in the datasheet? > @@ -572,11 +584,17 @@ static int dp83826_config_init(struct phy_device *phydev) > return ret; > } > > + if (dp83822->wol_enabled) > + return 0; > return dp8382x_disable_wol(phydev); > } > > static int dp8382x_config_init(struct phy_device *phydev) > { > + struct dp83822_private *dp83822 = phydev->priv; > + > + if (dp83822->wol_enabled) > + return 0; > return dp8382x_disable_wol(phydev); Since it is rather odd behaviour, there might be some BIOSes which disable WoL. So i would not rely on it being enabled by default. Explicitly enable it. Andrew --- pw-bot: cr