Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp973991pxb; Tue, 8 Feb 2022 06:41:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwdluEUrt2o7vfKwxBk++H5+/xutYtZPB2yEHwP4gmYPVRAfU1YWqTd8ucgnPbll9TQT3HX X-Received: by 2002:a17:90b:314d:: with SMTP id ip13mr1721251pjb.42.1644331305143; Tue, 08 Feb 2022 06:41:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644331305; cv=none; d=google.com; s=arc-20160816; b=JT7pPW1+eaBwGDjD8rn5Vr5KyU2dxC8wuRcN7TJE1NAjnDYScl5d2DGalmmMCo53iz 13CGhUmTNVYFSH7x7gYuJfus+5XZmemD7LC02OBsF8n9vkX9z3SJQu04P0bJLrs/YW+l E3gYJ1nZpUXnfSuZRtB6G75OJOcLOI7bFCbSIjfUAERTk5Lwbid7SjURGSUj82XlsJKh 7E04Pn+EMwx1kzmhvwlRaf+pa7pjmNdY7ZXvfPn7sKBYuOttjozy4V0wn0+WvW6gugmY xrH0gCSE6diDAb4qL0AjZDzWjyILAvO5ImvcvDiCP/tSt55wesKD94gHZokJFG1wrOPz DKuw== 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=aoc3RQixjis8eqPXBiBIjG7r6GBfh5s8LY5p8FZmGkw=; b=tmjgKEkGUVwWu2p8TfK3B/tFw2LEAzdYvJEXWi9J3buh2XzkWjMI+YEO/O9Ba5GPeW 4L3Si6kBGt1vIU6ou+DWrs56Np12GK3dqm7teKw5B5JnRgvq/tenWSfuF5zrIpE98DRr o4tJAB2VaBcZe+KGXOx3+0ZCpzn4s3CV2R3tNuz2t/pvhUvJ+kzdbUQLJfpJ8PL6GTJh IdGB8ygROnaJOKFNNUDpARNkZh9VQRyvfcYQSWt0Eau7OicSbOgcynBn5XAVpobG0tjB +dbKRdEjRir238zEa8hfGFQxz/Y1c5zz75Zvkqk7CZOSsD4wpM29+kubZvs4zqYpzVi1 VKkw== 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 k70si578338pgd.505.2022.02.08.06.41.31; Tue, 08 Feb 2022 06:41:45 -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 S1351301AbiBGJfy (ORCPT + 99 others); Mon, 7 Feb 2022 04:35:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350490AbiBGJ2D (ORCPT ); Mon, 7 Feb 2022 04:28:03 -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 103F2C043181 for ; Mon, 7 Feb 2022 01:28:02 -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 1nH0JP-0008FG-HX; Mon, 07 Feb 2022 10:27:55 +0100 Received: from ore by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1nH0JN-0004kE-R4; Mon, 07 Feb 2022 10:27:53 +0100 Date: Mon, 7 Feb 2022 10:27:53 +0100 From: Oleksij Rempel To: Andrew Lunn Cc: alexandru.tachici@analog.com, 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: <20220207092753.GC23727@pengutronix.de> References: <20211210110509.20970-1-alexandru.tachici@analog.com> <20211210110509.20970-5-alexandru.tachici@analog.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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: 10:26:12 up 58 days, 18:11, 81 users, load average: 0.28, 0.29, 0.50 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 Hi Alexandru, 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? Regards, Oleskij -- 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 |