Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp319686pxv; Thu, 24 Jun 2021 08:36:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzspUsi1DncNPRkHfDDQjTDuXPgvw5GiJaih/NDuOP8aKTICrdVuKnZ/PqJN6YRjsFz6vb6 X-Received: by 2002:a17:907:c08:: with SMTP id ga8mr5919903ejc.314.1624548975579; Thu, 24 Jun 2021 08:36:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624548975; cv=none; d=google.com; s=arc-20160816; b=ufKXnei8/TTKs1OOJNee5h5/it0DHaV+L17yTnfgIsIIEoCSxFfoFKGtH9B8cIaAYz AGHvKdqbIXWwPUo8U6qM32TUY7Nue5LS56Scl/VV0W44HAIhDzWvZmdmIFfpON8HMmO2 Bz2VyQY1WB8lOTD7BamQbxTHq09C+QVH5SYvuEPp3c+11kSIBh1DXIwWlpJ9DlpivUsi rck8BXM3lGrUrAfNswaHMK3OoHh9uZEifERG/DZKt0cFO/CpE4DTTmGa+wFabw/BPBO1 PovH60gavYLs/w9CWwnoT1U2FXTTAjnkY9iQYpnCkhLEph6v3n8XZt5DDX/wd2awUGcC 4vfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=77vhiGE0W9ZQnyqXdZKxBbTQvre+752PKaRIyl0obU8=; b=J8ScNVivBJCxkEnfIpYgsDMpRyJrEkvqp+TtarOTulEYOjLQ6QCorCYQNtZ5whxKgE kU6J10d3Er18JDAr9Pi1Nm9n7KjeZbdyoEX6pmTDcgfz+1/mPsGiikxJb0WJnOKloCig 9RKhdELMSVExF65oHRee3gMDyiqDsOMxran7S5C0h/Sq/xc7gflwPQ/w05Q1+Y3JqA1w ebRCfNFsQXgTyvl+sfslUsGHCisLj0bJPYE4TcvYAisWpQUniASW+vWVyJT/yB3HGoia JQZpMQI2bI3rlnZizbFNub6j/R4vXJuozcOolT+zOteryqj2HR3rXrRA1PIwmLFaUQjJ eG7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=d9xkfsMK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si3530955edb.365.2021.06.24.08.35.50; Thu, 24 Jun 2021 08:36:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=d9xkfsMK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231872AbhFXPg7 (ORCPT + 99 others); Thu, 24 Jun 2021 11:36:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230008AbhFXPg6 (ORCPT ); Thu, 24 Jun 2021 11:36:58 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80684C061574; Thu, 24 Jun 2021 08:34:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=77vhiGE0W9ZQnyqXdZKxBbTQvre+752PKaRIyl0obU8=; b=d9xkfsMKphY4uq/WU2nfEB3rv Bc4P3wKOhXQ4v2PeS6ArqyTgsPe8tbX8mXenlSVszoT6VEmiDdhtL20x9oK5gyCQEmBkra293lmX9 t74RBGb95nr+321qg8L1PltYO+pShT6DYJP0me0fj3DBhaURNOnpwAug79IZxsA5+yYLKrc6ZdW8X daH99xmiCXl5XoYXAus8zR2KExZhoUDxqxbGvn1X1XmLJG6s2O6o68qPyflStlLUMbfYGTBqqHe2r WT5sqAGXrUPlRID6gIH8/Y7OWip31gjZR7NF9AaUvprJpeb34nrjaOAMRxX5bqUZhspdO+j0LuXdv nIUdstqUQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:45312) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lwRN8-0007tY-MW; Thu, 24 Jun 2021 16:34:32 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1lwRN6-0005nj-UI; Thu, 24 Jun 2021 16:34:28 +0100 Date: Thu, 24 Jun 2021 16:34:28 +0100 From: "Russell King (Oracle)" To: Ling Pei Lee Cc: Andrew Lunn , Heiner Kallweit , davem@davemloft.net, Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Marek Behun , weifeng.voon@intel.com, vee.khee.wong@linux.intel.com, vee.khee.wong@intel.com Subject: Re: [PATCH net-next] net: phy: marvell10g: enable WoL for mv2110 Message-ID: <20210624153428.GR22278@shell.armlinux.org.uk> References: <20210623130929.805559-1-pei.lee.ling@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210623130929.805559-1-pei.lee.ling@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 23, 2021 at 09:09:29PM +0800, Ling Pei Lee wrote: > @@ -106,6 +107,17 @@ enum { > MV_V2_TEMP_CTRL_DISABLE = 0xc000, > MV_V2_TEMP = 0xf08c, > MV_V2_TEMP_UNKNOWN = 0x9600, /* unknown function */ > + MV_V2_MAGIC_PKT_WORD0 = 0xf06b, > + MV_V2_MAGIC_PKT_WORD1 = 0xf06c, > + MV_V2_MAGIC_PKT_WORD2 = 0xf06d, > + /* Wake on LAN registers */ > + MV_V2_WOL_CTRL = 0xf06e, > + MV_V2_WOL_STS = 0xf06f, > + MV_V2_WOL_CLEAR_STS = BIT(15), > + MV_V2_WOL_MAGIC_PKT_EN = BIT(0), > + MV_V2_PORT_INTR_STS = 0xf040, > + MV_V2_PORT_INTR_MASK = 0xf043, > + MV_V2_WOL_INTR_EN = BIT(8), Please put these new register definitions in address order. This list is first sorted by MMD and then by address. So these should be before the definition of MV_V2_TEMP_CTRL. As I suspected, the 88x3310 shares this same register layout for the WOL and at least bit 8 of the interrupt status and enable registers. Thanks, and thanks for reminding me to look at this today! -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!