Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1258029rwl; Fri, 31 Mar 2023 08:40:24 -0700 (PDT) X-Google-Smtp-Source: AKy350a5hBEsvspsIVza7S6cDdn8PU/yl+UItUk4GBeo9DEcv+ouxt3yBbPJVtKMbkzBVSedxFAV X-Received: by 2002:a05:6a21:32a2:b0:df:e8b2:ffb4 with SMTP id yt34-20020a056a2132a200b000dfe8b2ffb4mr22617022pzb.3.1680277223977; Fri, 31 Mar 2023 08:40:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680277223; cv=none; d=google.com; s=arc-20160816; b=uIxWFqpAvxydUbQbtjhmDhzBj3RgBQ/1uzY5ONcy9IlW+85gpgaa+FIV51ZSIWZgpX fAjdJ9s/WBXUTR4dOQYwTRxoJPmqKrTo6rZ/CU83tLDrIkaWdBS9HydZAouAbAcc7A+t RgHNdjtTkgPEA+0rJUQseh0oPYSBmNrg2EkC389fyJ4bZRMkCV25Vva5UAr9/NXTg347 tOcjT+aJ1PMeUcJWUiCBR+jPvjeznB11i8KYZZSNnkm2VUnsjOEEuc76OOfKKB9+yfaw 0mlRlTwKItZj11/GZGmxJVk6CvbHZR7NIkHXcIHTI+Vej8nBM+fhJZXicPURoH1C1cv9 SVnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QYTwTqxmMh/uQqXk6w/oXrxdaifToNPKhtTVuaawN4U=; b=LR/GvE0R/T3EHw0mBdQarHKBSEevBrPjTsiScFcZG94N8j0C7Thx4eFoOBZg9CzUDZ PutZVrFJrpfowKn5JWKHeER8kNTqsdZnsTnUs9wAF5uP45oKgVLZr4RkSUABunDXy8Nr PWnixDmsH+MzXJNLjN0YXHTCCUoAnRhDB+p8DfM8KTrOOjDDHbhSdgDtYUh1RcTAXWnE pIeTG0FCiGiskwaVrlnI94jq0qAsveWeXyF3DOoHVC3/s7rg1lcg5SzZdOv9v5MX0vaM 1bNSICeysFjhf3p/VfA+YayneQV4NPlHedcdst20wMuFqOlsOJT3TauVjgr//kWa4fAj 9ovg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=l3tJxvZI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k23-20020a628417000000b0062a9bb7ba2esi2850030pfd.263.2023.03.31.08.40.12; Fri, 31 Mar 2023 08:40:23 -0700 (PDT) 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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=l3tJxvZI; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233206AbjCaP0S (ORCPT + 99 others); Fri, 31 Mar 2023 11:26:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231654AbjCaP0Q (ORCPT ); Fri, 31 Mar 2023 11:26:16 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F1381D2EF; Fri, 31 Mar 2023 08:26:14 -0700 (PDT) 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=QYTwTqxmMh/uQqXk6w/oXrxdaifToNPKhtTVuaawN4U=; b=l3tJxvZIcaX85ZoHQ1a6ckBJLI MMJp8rUhWPxD9GVQeZUoQgHmcv/6WsFdKyhYkkYWpbkteurJV/4/Caj7ZpoeKH1wmF/Rw1pBTLnM3 a7B4meAOvTRhGdhwGY5DyvpRNoqgPd7iB8347GCBmW68q0/WmvDVnK8qFtVx3e7XjuXc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1piGdb-0092iH-CG; Fri, 31 Mar 2023 17:25:59 +0200 Date: Fri, 31 Mar 2023 17:25:59 +0200 From: Andrew Lunn To: "Radu Nicolae Pirea (OSS)" Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RFC net-next] net: phy: introduce phy_reg_field interface Message-ID: References: <20230331123259.567627-1-radu-nicolae.pirea@oss.nxp.com> <76eb7a6b861ea4b06056552e08c01cc2b378a137.camel@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <76eb7a6b861ea4b06056552e08c01cc2b378a137.camel@oss.nxp.com> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 > I am trying to protect the __phy_read_mmd and __phy_read calls, not the > reg_field->mmd. You are? Then why not use phy_read_mmd() and phy_read()? Andrew