Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp844441lqs; Fri, 14 Jun 2024 07:18:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUhDSJg5BRuIQontqOU79LmJfwLVsPJtOVB+HWO+x9wt4FI6Oz3oxZJ41YlIOs/VXqs9nyaWXdXNH2omD7ezr8xaB6C0tPMZlcxAXGolg== X-Google-Smtp-Source: AGHT+IFbmZiMNAbRXCNvkhRG4ujxWM2R8Q+a8XSWfp1bNzIjNTE3KzisHn0azlrStpdicN6wzQCQ X-Received: by 2002:a05:620a:1a22:b0:795:512e:4ae1 with SMTP id af79cd13be357-798d24380eamr312285885a.35.1718374724724; Fri, 14 Jun 2024 07:18:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718374724; cv=pass; d=google.com; s=arc-20160816; b=gLS/pBDpFGZcTXJ3+wAV4IA0eABFhTchXWyAD0ENMaEp/9RMKjrYjbAd4Kn0DZVLtL lgJE/3mc6bsj+2Aipz/gTe96rZNemDooM5PjjzyMQJt2b8P00cP7RSCmTJwBYWJKzFej iL9JkM3f71AQ/d1al6sqbctq2+WoZEu5ZgodGrbO5Hwk159Wd2+Cbi5Xd5nXJ4HUEIic LTn+TV7Memvtk/8zhLXXI3s4LeXWgg82Q54UJGYzMjqcXSsQff9xZaV7BR0YfaYK4om2 53pIaJ8UDeYh5k+IfmSEaDfgKT6IG7Y2V3mBYywRZYZ/HtkK4Uxuq4Je9Z+/ftjoTDsd EbBg== 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=C7X7EahV4cIPLf5JVH6Zebq6D2DVt1vf+WoErTJKBv8=; fh=ipSYiaZUVh+8SXF1eCMsD8Jgqr/krTLybjCZUguoUxQ=; b=WA6heh8k9FlQXNbSxCsnfpUwwIcF7mb0g9NoE24/R/n3vjrt8N59pMqngPfRY8SITh msk9+vDG08k1kFw5sjgIlBYrWBFRofgaZfR3MMutaIZjYgQBIo1YOrh0JZ9SDW+h8CYd dZ8lUhM1t5AEI+5v0GDhGQXloqlXgTGlnvcmjeF3CXWv3yHSr7Y3d3xHAKJ4xDfmsE+3 nWljAUhmyFHFxS5QT6qeGsgXzKoA/hSrlpysw8C1VpUVQW+d4YjZAUtd/MrFufq3eT4J kvkfd98RXuF3M+wcYeKQyRaJjDWslNkYN/FytF6GmQsI2tjk/quihYxr7N5iMKghXUjt cNJw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=k3e6TuBa; 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-215006-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215006-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-798aac9bd13si369073385a.131.2024.06.14.07.18.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 07:18:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215006-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=k3e6TuBa; 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-215006-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215006-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 3B7B91C216DF for ; Fri, 14 Jun 2024 14:18:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C4CF2945A; Fri, 14 Jun 2024 14:17:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="k3e6TuBa" 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 0B2BF26AF2; Fri, 14 Jun 2024 14:17:39 +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=1718374662; cv=none; b=r6z2aAyHUOBKAcL/NsDz0U8lSKq/qJRJI6HKD/rLTVlyQC0MPmm5VY+/A2vD6IPt/ekoeJxg5VQmYOilFL/WkI7oLLH4ypZoMoBaUuARzivv7clW++t4JQKyJBx48K4+XsuKH5XOSiwy6WltXU1XR29C12+NgIG71VczPGZOf50= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718374662; c=relaxed/simple; bh=Nt/2DTMzSujJpPW/B1zBUuD6ETOJ5+VA2K8dNsUozys=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SoY7AgMai4pA0cGqBofRPPmYRdbyUAVXOCcBwWGJhuQFwIkxwkfcq1UyLc/bJYIgx3xEPNBI7oe5r1Ha3O3Si3qR4ynkQHSn6+wpLVT9QvEIZJM9ZWMA9K5pirXMzkx4B0bDpvNgVZRDJGCNWpsHQu6flQYndHppBQbdZwGgFe0= 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=k3e6TuBa; 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=C7X7EahV4cIPLf5JVH6Zebq6D2DVt1vf+WoErTJKBv8=; b=k3e6TuBaegJEL92ko01jo5FeIh KB5XKUUMI+9bhtbE9Q6awoncdpLei6S9buValvVNHb0V0puWuVtTOMgLbGexlq+FitcAAmh1KjEN4 eTfDGcg9dYCXBskYLQEa12dl7vGlOz91liwcvrop6yOu1Uy4+cjyfM5KA634OWjHnIUM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sI7kA-0004Iu-87; Fri, 14 Jun 2024 16:17:30 +0200 Date: Fri, 14 Jun 2024 16:17:30 +0200 From: Andrew Lunn To: Raju Lakkaraju Cc: "Russell King (Oracle)" , netdev@vger.kernel.org, davem@davemloft.net, kuba@kernel.org, linux-kernel@vger.kernel.org, bryan.whitehead@microchip.com, sbauer@blackbox.su, hmehrtens@maxlinear.com, lxu@maxlinear.com, hkallweit1@gmail.com, edumazet@google.com, pabeni@redhat.com, wojciech.drewek@intel.com, UNGLinuxDriver@microchip.com Subject: Re: [PATCH net V4 1/3] net: lan743x: disable WOL upon resume to restore full data path operation Message-ID: <052f32e1-0a6b-4eae-a4d8-727a0d933d7e@lunn.ch> References: <20240612172539.28565-1-Raju.Lakkaraju@microchip.com> <20240612172539.28565-2-Raju.Lakkaraju@microchip.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 Fri, Jun 14, 2024 at 10:00:58AM +0530, Raju Lakkaraju wrote: > Hi Russell King, > > The 06/13/2024 08:44, Russell King (Oracle) wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > On Wed, Jun 12, 2024 at 10:55:37PM +0530, Raju Lakkaraju wrote: > > > @@ -3728,6 +3729,30 @@ static int lan743x_pm_resume(struct device *dev) > > > return ret; > > > } > > > > > > + ret = lan743x_csr_read(adapter, MAC_WK_SRC); > > > + netif_info(adapter, drv, adapter->netdev, > > > + "Wakeup source : 0x%08X\n", ret); > > > > Does this need to be printed at info level, or is it a debug message? > > Print at info level helps the tester/sqa team to identify the root cause of > the wake and confirm the test cases. > In general, tester does not enable debug level messages for testing. > > Still, if we need to change from info to debug, i can change. > Please let me know. We are not really writing a kernel for the tester/SQA team, but the end users. Do the end users find this log message useful? Can they decode some hex value into something meaningful? I'm surprised the test case cares what caused the wakeup. So long as it does wake up, does it really matter what the source was? Andrew