Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp796444pxb; Wed, 29 Sep 2021 09:50:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyY8pMmCdq9ftQ1RDXS+9k0vKWzjlev3Ss9MStxEQipHt9OMzYq8HPGV15q5cuc/4bOvxgs X-Received: by 2002:a63:4622:: with SMTP id t34mr792066pga.293.1632934204205; Wed, 29 Sep 2021 09:50:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632934204; cv=none; d=google.com; s=arc-20160816; b=Od31X1ir9xPq5OnicJra6KxD9tYxANBllXTw0SKSgRK5HL/kaHovotiVfpiQbGkb1q t6czSkFkyuRoiRtQ0e2jGRxZ5zjX7Sk0sRyd+Ber66owwhMU4k4BWz0j98PWQBC0MwRP 8oPntDGHSmaAjjAdgcc6MnMBf32FPKGz407DBD/1P9LeRDj73DrIa/iiWGp9xAPHCI96 gvpKBDaqPM8R7BzMX9ffJJBhsB6HeQK5XjzmS+1faWqCeGNRmGfzfMpU3DyyRQ2XLb5t XgEgR2Bm/srD96thQ0RUDvasofShoZ/MqOgE1qrmHhdsVRRuRam+HGtrzpnS99gODe34 tD+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=KDRPzz/8RSwraI/6yUzhlw402iUmLFBjyGh+hEk19js=; b=aZC8a07FwRyqJlKUk6CxD49HpJ3UfbN3dT5QWEkzvLQobmILLC338LrCgfNAMAJFaD 91Q4RWxYLVORmkEnjP2sNA4iixP/K0E5+wlNkjSFS6WBSWKVNUpSElZLLgQEC5oqNrL5 HLTn+H3obH9ZQi9ss/IGgLJFHllRPLVTEtbA36zT7IIztUZQw/+9AqFOeslECNjmBD0+ jtvo5NvYb9czlOyXi7cwnp3xHMofQ0u+G8r/w1yX3FahdtjZvFCstArpJTtLb6nrgsZx rX7sQsdfyqa6sozcnTVDxE52t5cm34Rq6QPGtg8xkR7DVE8p0e7iaMyIo0FTRLTWSJ6L /4tg== ARC-Authentication-Results: i=1; mx.google.com; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t5si346150pgg.335.2021.09.29.09.49.49; Wed, 29 Sep 2021 09:50:04 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232308AbhI2LsT (ORCPT + 99 others); Wed, 29 Sep 2021 07:48:19 -0400 Received: from mga07.intel.com ([134.134.136.100]:4372 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245266AbhI2LsS (ORCPT ); Wed, 29 Sep 2021 07:48:18 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10121"; a="288577626" X-IronPort-AV: E=Sophos;i="5.85,332,1624345200"; d="scan'208";a="288577626" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2021 04:46:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,332,1624345200"; d="scan'208";a="655466370" Received: from linux.intel.com ([10.54.29.200]) by orsmga005.jf.intel.com with ESMTP; 29 Sep 2021 04:46:37 -0700 Received: from linux.intel.com (vwong3-iLBPG3.png.intel.com [10.88.229.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id 9CCEA58097E; Wed, 29 Sep 2021 04:46:34 -0700 (PDT) Date: Wed, 29 Sep 2021 19:46:31 +0800 From: Wong Vee Khee To: Vladimir Oltean Cc: Andrew Lunn , Jose Abreu , Heiner Kallweit , Russell King , "David S . Miller" , Jakub Kicinski , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Wong Vee Khee Subject: Re: [PATCH net-next 2/2] net: pcs: xpcs: fix incorrect CL37 AN sequence Message-ID: <20210929114631.GB2089@linux.intel.com> References: <20210928041938.3936497-1-vee.khee.wong@linux.intel.com> <20210928041938.3936497-3-vee.khee.wong@linux.intel.com> <20210928104104.etfxxaeuwk2has32@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210928104104.etfxxaeuwk2has32@skbuf> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 28, 2021 at 10:41:04AM +0000, Vladimir Oltean wrote: > On Tue, Sep 28, 2021 at 12:19:38PM +0800, Wong Vee Khee wrote: > > According to Synopsys DesignWare Cores Ethernet PCS databook, it is > > required to disable Clause 37 auto-negotiation by programming bit-12 > > (AN_ENABLE) to 0 if it is already enabled, before programming various > > fields of VR_MII_AN_CTRL registers. > > > > After all these programming are done, it is then required to enable > > Clause 37 auto-negotiation by programming bit-12 (AN_ENABLE) to 1. > > > > Cc: Vladimir Oltean > > Signed-off-by: Wong Vee Khee > > --- > > Other comments: > > - please provide a Fixes: tag, like: > > Fixes: b97b5331b8ab ("net: pcs: add C37 SGMII AN support for intel mGbE controller") > > (just like that, not split on multiple lines) > > - please target the patches to the "net" tree. I see the xpcs_modify > patch has other stuff in its context (nxp_sja1105) that will conflict > with the tree in which the bad commit was originally introduced, so I > think the easiest way would be if you could just open-code the initial > clearing of bit MDIO_AN_CTRL1_ENABLE. You could then wait until "net" > merges with "net-next" again and do the other cleanups afterwards - it > looks like other places could use a _modify method as well, just > looking at DW_VR_MII_AN_CTRL, DW_VR_MII_DIG_CTRL1. Also, the complete > replacement of DW_VR_MII_MMD_CTRL with MDIO_CTRL1 can also be done in > net-next. Just try to keep the fix minimally self-contained. Sure! will mark this target for 'net' for v2.