Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1110319pxb; Fri, 18 Feb 2022 00:32:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUZLhxMxxXKXmI4C2mzjvBWoIEIKCGSLj+17yFNtmI+rugKl53e6yngJ9UEk7sne0VY3C9 X-Received: by 2002:a17:902:7c13:b0:14f:177b:c51d with SMTP id x19-20020a1709027c1300b0014f177bc51dmr6809575pll.116.1645173164872; Fri, 18 Feb 2022 00:32:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645173164; cv=none; d=google.com; s=arc-20160816; b=h17E00pQpp4QTKA4uvEVCmCpqdXwvWh4kwdsbsUm08VnfzXx+lTOR4Gnic3LI6v9Ha j60H9Nz4EX22nZaRskpkSJH7pOhBgGdssEK4eqMxSr7mhL7Y8380LEpSqENUpmr/f/Ar kdH3qGOxGvXnV+eEn83ziWe1bL5JMX9UF+83oOsSShCoOMyQI1bgJCeJ42q0FJcabQZH Tab1e2ZW48VecC2DmWWgvgshvK9gMLBvuH449K5H0JZM46zhgoe8+jG0eo8uYvAL/FqZ jSWwuma4JfbeqtD3ceZMCySLcWLuPTd5dg8SmmuoJu3Bzu0SkFnhem9W5RAZ/D6VA9D1 tC3g== 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=yP49ZRjF6nxaDp2WPz3GHYHt4l/nlI4v/WKG1gepkYU=; b=AFqOoiVoVhjmxYxAITOKzAq8S891A9xAsvLwXLKBLmgV6EbD9ppRczRv1WdTh4be5e MuIt43Y3uE05qUQhKKfSnSlx4a813Zm7iw3BrPUGZE7hvME2+RYP9CBqchJ9MQA+18vl ODMrrG5HJcgnNlISA8dEIypDiO+MJt8/8QvOzfOCB9s/YyYITaCa7kEOtlZAWnp68I+Y SQEVZNeawWsRcSIgI6ZTN/89T5iu8kyXUkRw9QSHOettVMGjrZeGahNt2BVVZ64pvS+X YTwT0De+HPtfiH/FONPmkk8fQqbgHsUfJFQmz5QcQFCQF/2MkSq5NlJhTgZG629sierx Z15A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n189si1435009pgn.725.2022.02.18.00.32.30; Fri, 18 Feb 2022 00:32:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231986AbiBRH3W (ORCPT + 99 others); Fri, 18 Feb 2022 02:29:22 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:56324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231815AbiBRH3U (ORCPT ); Fri, 18 Feb 2022 02:29:20 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B128265514 for ; Thu, 17 Feb 2022 23:29:04 -0800 (PST) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nKxhJ-0006e3-2p; Fri, 18 Feb 2022 08:28:57 +0100 Received: from ore by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1nKxhC-00053L-9p; Fri, 18 Feb 2022 08:28:50 +0100 Date: Fri, 18 Feb 2022 08:28:50 +0100 From: Oleksij Rempel To: alexandru.tachici@analog.com Cc: andrew@lunn.ch, davem@davemloft.net, devicetree@vger.kernel.org, hkallweit1@gmail.com, kuba@kernel.org, linux-kernel@vger.kernel.org, linux@armlinux.org.uk, netdev@vger.kernel.org, robh+dt@kernel.org Subject: Re: [PATCH v4 4/7] net: phy: Add 10BASE-T1L support in phy-c45 Message-ID: <20220218072850.GA12479@pengutronix.de> References: <20220207092753.GC23727@pengutronix.de> <20220209151220.15154-1-alexandru.tachici@analog.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220209151220.15154-1-alexandru.tachici@analog.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 08:24:08 up 69 days, 16:09, 69 users, load average: 0.16, 0.17, 0.17 User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 09, 2022 at 05:12:20PM +0200, alexandru.tachici@analog.com wrote: > > On Sat, Dec 11, 2021 at 10:07:49PM +0100, Andrew Lunn wrote: > > > > + ret = phy_read_mmd(phydev, MDIO_MMD_PMAPMD, MDIO_PMA_EXTABLE); > > > > + if (ret < 0) > > > > + return ret; > > > > + > > > > + if (ret & MDIO_PMA_EXTABLE_BT1) > > > > > > > > > This pattern of reading the MDIO_PMA_EXTABLE register and then looking > > > for bit MDIO_PMA_EXTABLE_BT1 happens a lot. It is not something which > > > is expected to change is it? So i wounder if it should be read once > > > and stored away? > > > > What is the state of this patches? Will you be able to make requested > > changes and send new version? > > I will come back with a V5 where I will add the requested changes. I tested your patches with TI dp83td510. With some minor quirks on TI side it seems to work fine. So you can have my: Tested-by: Oleksij Rempel -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |