Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3512729rdh; Mon, 27 Nov 2023 16:47:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IHfnhmgxIlcoVdMc2dNmqj5aLmCi+4FjlSwLxTwBi4MTaMbZUZRFo1f07fPw5ODqkUSk4so X-Received: by 2002:a05:6a20:1448:b0:18c:374c:6e64 with SMTP id a8-20020a056a20144800b0018c374c6e64mr10443111pzi.36.1701132449269; Mon, 27 Nov 2023 16:47:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701132449; cv=none; d=google.com; s=arc-20160816; b=vWP3LIGKC0CMwaPF9YVRhG7doLyUl4OXiiYMKPmjFbhZx7Q6PpEn0cWfrhNjrZUFHU SfcwrZChi/g5L9OHnaEe2ErgvOSqX7s9uWW97scTzoEXjA0Vs9hJpmtiKH1yY0POnaBF QQCZh4uWcGCT+k7H/KZuahKppAM6J9ECzdh490FqlSlLS+dP1DzWU56Lt730KI0dS8xQ x6T+THQ8umNS8ZHJVFzy/6NwMMkIG1/V25Y3pdXg4TS+vkVIX6s6VVppDgUvqOXqIEl+ wHUuNiILOMIHdqYCN711fKs8r3+yKogHW49/sojJq6OLfsMBeyrjeZPgCr2IUXhxD5h2 Q0yg== 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=tPsB2hWA3Oc577a+cgExHeE0rQjVhZlCmuxB4d3ag6Y=; fh=fSQjoUwGEKfsHAYdI6irFEktrxychRDRjHvxEnxauzE=; b=s61Cx93N7+HZ3zF60BBS9qPjipfySpHEX7HPQit1ocLK0A4NxZSYvIzbmx3AGZsTaZ Kz2U5AOJD+Z80+Ow1Rnyc4SPCCiM4YcB/t7OHolU0/hvYHt9w/Vv13epruHmngTA4yql /dQd1cS+et33MRt1eD48rknj2PRcSJC2zfkV2RxsIN9d9YD5c/+WNVBgVyw1e92JFvUV 0cCQDc4sj4XBXEOCNLDy0kQV1qwfadWqlYb22CxQynY2jgrDuB2E6YZBqavn9pmRpNoK Q1A8GMp6On9AOY+EQg0kbg3bSg1KgXUaX045zJLK/B/hdFEDxnA7wH1r7xXPQPwZenLo eVFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=wOrTyuob; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 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 howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id r33-20020a635d21000000b005b96c4292bbsi10553862pgb.420.2023.11.27.16.47.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 16:47:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=wOrTyuob; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 7CF94824776A; Mon, 27 Nov 2023 16:46:56 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234387AbjK1AqW (ORCPT + 99 others); Mon, 27 Nov 2023 19:46:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234360AbjK1AqT (ORCPT ); Mon, 27 Nov 2023 19:46:19 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77085D6D; Mon, 27 Nov 2023 16:46:20 -0800 (PST) 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=tPsB2hWA3Oc577a+cgExHeE0rQjVhZlCmuxB4d3ag6Y=; b=wOrTyuobaJiBkDDEN+3GnJb9Gj khoMngUKyPMKlVGbsfyCinioYWK0Liy4RVI0/Noz7xvcBvdK128h9OAY0vlKvfQpTRb03Oi9dJFK9 /ppp2Ers5rvwGbJhiODR3FSIcr9/87gXJjP/7n93H5gGoTD/zHSh4MjQ4wDbEHbEfDlY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r7mEs-001Oyh-FN; Tue, 28 Nov 2023 01:46:10 +0100 Date: Tue, 28 Nov 2023 01:46:10 +0100 From: Andrew Lunn To: Christian Marangi Cc: Florian Fainelli , Broadcom internal kernel review list , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , David Epping , "Russell King (Oracle)" , Harini Katakam , Simon Horman , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [net-next PATCH v2 3/4] net: phy: restructure __phy_write/read_mmd to helper and phydev user Message-ID: References: <20231126235141.17996-1-ansuelsmth@gmail.com> <20231126235141.17996-3-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231126235141.17996-3-ansuelsmth@gmail.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 27 Nov 2023 16:46:57 -0800 (PST) On Mon, Nov 27, 2023 at 12:51:40AM +0100, Christian Marangi wrote: > Restructure phy_write_mmd and phy_read_mmd to implement generic helper > for direct mdiobus access for mmd and use these helper for phydev user. > > This is needed in preparation of PHY package API that requires generic > access to the mdiobus and are deatched from phydev struct but instead > access them based on PHY package base_addr and offsets. Why is this all going into the header file? Andrew