Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp697259rdb; Mon, 29 Jan 2024 15:47:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IG7N8V1ULHTTYoQaYZ6SpcerKVzP1DNLW2Frge2P0J5gjgYR4dZ0ITiAXYqOnlqXKZsWexW X-Received: by 2002:a05:6a20:411f:b0:19c:97b8:abb2 with SMTP id y31-20020a056a20411f00b0019c97b8abb2mr86973pze.48.1706572037519; Mon, 29 Jan 2024 15:47:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706572037; cv=pass; d=google.com; s=arc-20160816; b=Gy1S8dDaulfrFGGADwjr91qMpC/tqt7jy/+kl0IFkMiqLci54oK4lyfUrWSy12PA+i H4f2a1UK31RFybzVFiq4hRIzrQ1rqSWiyKtNV23DfZYuSqpvc8KU3zKFSNbTW/JRsmPT 9RXprN4CuBpwj5kOekrPLj09We6KP7+eo7mEMZiJwMC0OsZnYn20B/iK9cz7U8rvfQjZ FP3/gSe/GdA11dVkdOMbF3q7jQ5RlJyV6LR3PUi52yfjNkfUqtvs7DmQCRRiWmh5yeJu ct90QrnXHL1a6K1cvOV4JMXyb4qKoapUzJtJnMZlILIZcDLYhq3lYS9KGZdePx1640VB rIjQ== 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=byNfiL/pkoggyG/+oatuw7eueKrFjxfS3K9FZq27IAg=; fh=SJlpWfuirhjQliQuu/cHnGkjrkkkIddeaDxeQUZfuic=; b=bSkFVaYkxOVBxIkgd78RrPy1GSNeb9hPoGXu00bZ5JaLxhhAM1gG2guKWwFJXgLKF/ ww7ToEMR1TWIdihIZ20eQThZgybUermlH8aRIuvd0IJmV4OE2QLAz3NEpTg/4ape3w5j bqDu63nJyOctpye/rOMZPfc3sKYUmIDrU9zCRLsw7kvZD2Iu8Q4NiKpK4h1s+ki6gbDW TwrzOIfMFhKmKLJAfZ/ZNtKwsO8kTEpcs9fgmGTlFMe9VDvBORI3MJO/SYk1RwYwwUz0 ROT7xuAMB2JsU2yHk6qA3dM4mbuGwg+pP7e5aMFbHizhzozUWKZaR1/9zlOk1l0a3zau 7VJw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="n/FsBQcO"; 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-43001-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43001-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id s65-20020a635e44000000b005d8c0939d40si3699046pgb.855.2024.01.29.15.47.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 15:47:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43001-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="n/FsBQcO"; 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-43001-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43001-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3831C285B1A for ; Mon, 29 Jan 2024 15:29:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6071B153BDE; Mon, 29 Jan 2024 15:29:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="n/FsBQcO" 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 894EC153502; Mon, 29 Jan 2024 15:29: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=1706542167; cv=none; b=hCl8aoGKykAnc8wIFsGxWDNhCWUzBOBYUguasIxqXrzhwT/e+kTZ/Kmp09jocavdP23wUy+37qvRkvj/aHK7hZxnSzC06ZJvW1SQl71ug1RLK5FFKFRyNiAdUoG/3I4EVkfDQ3++Cd/DztVfVnKzuxEDm/bDO8311cc0Ij7fNh0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706542167; c=relaxed/simple; bh=temvw+fKuDYFx07W/PqfCRAulSyTIn2NnJqhzpa3B60=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GDtdKdVkDDYZXyf4QehpGk2zwB91dpWMiqDwMZsc47tCCVB/U4xjAhmMrqZ7X9Auw6pulyeK5nb+O3PwbyhVjRPBy3grQ7PzNUjk57jfkBjfOEjosMFIOI14Vy8goUAkmJ/nwXR9qHZtfMXNwmjCG3twps8MjAN/S3OIphfqCtk= 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=n/FsBQcO; 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=byNfiL/pkoggyG/+oatuw7eueKrFjxfS3K9FZq27IAg=; b=n/FsBQcOafh31HIhCxKunlMYhY BINs0xUg+zirDh74DZomBMBrgPTUg6s+YKFk/eyPkCDp/foDwi2JN6quuX1kkblEZiSbOzXZpnlhP 4ghCJVX3y19TyJLpl+W3QY5JDnD9jcKr+o01DYgJzsz6Qek3YsJcsL41l1McDcFMbpBY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rUTZP-006OKZ-UE; Mon, 29 Jan 2024 16:29:11 +0100 Date: Mon, 29 Jan 2024 16:29:11 +0100 From: Andrew Lunn To: Christian Marangi Cc: Jie Luo , Dmitry Baryshkov , Andy Gross , Bjorn Andersson , Konrad Dybcio , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiner Kallweit , Russell King , Robert Marko , linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sergey Ryazanov Subject: Re: [net-next PATCH 0/3] net: mdio-ipq4019: fix wrong default MDC rate Message-ID: References: <20240124213640.7582-1-ansuelsmth@gmail.com> <53445feb-a02c-4859-a993-ccf957208115@quicinc.com> <5d778fc0-864c-4e91-9722-1e39551ffc45@quicinc.com> <65b3ecd7.050a0220.9e26c.0d9e@mx.google.com> <65b7b565.170a0220.2666a.0d2b@mx.google.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: <65b7b565.170a0220.2666a.0d2b@mx.google.com> On Mon, Jan 29, 2024 at 03:25:09PM +0100, Christian Marangi wrote: > On Mon, Jan 29, 2024 at 09:59:03PM +0800, Jie Luo wrote: > > > > > > On 1/27/2024 1:33 AM, Christian Marangi wrote: > > > On Fri, Jan 26, 2024 at 07:20:03PM +0200, Dmitry Baryshkov wrote: > > > > On Fri, 26 Jan 2024 at 18:03, Jie Luo wrote: > > > > > > > > > > > > > > > > > > > > On 1/26/2024 1:18 AM, Andrew Lunn wrote: > > > > > > > Hi Christian, > > > > > > > Just a gentle reminder. > > > > > > > > > > > > > > The MDIO frequency config is already added by the following patch series. > > > > > > > https://lore.kernel.org/netdev/28c8b31c-8dcb-4a19-9084-22c77a74b9a1@linaro.org/T/#m840cb8d269dca133c3ad3da3d112c63382ec2058 > > > > > > > > > > > > I admit this version was posted first. However, its embedded in a > > > > > > patch series which is not making much progress, and i doubt will make > > > > > > progress any time soon. > > > > > > > > > > > > If you really want your version to be used, please split it out into a > > > > > > standalone patch series adding just MDIO clock-frequency support, with > > > > > > its binding, and nothing else. > > > > > > > > > > > > Andrew > > > > > > > > > > Hi Andrew, > > > > > We will rework the patch series to include only MDIO frequency related > > > > > function and frequency dt binding, and post the updated patch series > > > > > on th/Tuesdae Mondayy of next week. We will work with Christian to > > > > > ensure he can re-use this patch as well. > > > > > > > > Can you do the other way around: rebase your patches on top of Chritian's work? > > > > Hi Dmitry, > > Sure, we can take this approach if fine by Andrew as well. > > > > > > > > > > > > Would be ideal, also I have to send v2 that handle the 802.3 suggested > > > MDC rate (ready I just need to send after this has been handled). > > > > > > Also I can see some problem with Lui patch where thse divior > > > value is not reapplied after MDIO reset effectively reverting to the > > > default value. > > > > Hi Christian, > > In my version, the divisor is programmed in every MDIO operation and hence I > > did not add the code to revert to configured value in reset function. But > > sure. we can program it once during the probe/reset and avoid doing it > > during read/write ops. > > > > In addition, the MDIO divisor 1, 2 and 4 are not supported by the MDIO > > hardware block, maybe we can remove these macros to avoid confusion, or add > > a comment mentioning that these are not supported. > > > > Hi, thanks for confirming it! In v2 I already changed the logic to start > looping from divisor 8 and added comments in DT and driver about not > assuring correct funcionality with those divisor. Hi Christian Lets go with your version. Please post V2 whenever you are ready. Jie, please spend some time reviewing to patches, make any comments you have, and if everything is O.K, you can add a Reviewed-by: Andrew