Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4381488rdb; Mon, 11 Dec 2023 18:46:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IH9l+kXT5WjOtNWfAOn6JgN5UIpSLQGpXA+k/biS4//siFNufvONX2LBkiQAv1AtgCAYhfC X-Received: by 2002:a05:6808:3023:b0:3b8:b063:6ba6 with SMTP id ay35-20020a056808302300b003b8b0636ba6mr6481288oib.85.1702349217999; Mon, 11 Dec 2023 18:46:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702349217; cv=none; d=google.com; s=arc-20160816; b=x23xICs4k+L720SLruJfmhKDxsv1KSbdQpQ6QorGBOKKbml/2yxuddm4PjdvqFs3vi 1Mp1J3Y/vmeGR0OBnMHcuUU7UmP1+RdYXRHfQ2Ty6mhZwqJUHIVj9k52cKA+YHvQ0rf/ do7kiMA3ZshJcty9E27M6h8DWcU+pvhzKQEONtC4g+cEPHMf/B7hH6kq5AdGbFjFvlbH hW/q97nT/W55AL83HUeSc7u2zXDpRhIEg2JVQQ8biUhSIfMXoTaV2nj1hne0ymuUo16E mjfA/xh2vWjxAapszCBX6d5i/3+RL04MEw429nWh1Qg9y3tRz59YgeOJfMQeQTS9LBYk eEwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=RMeoEc7FQdiGLhQwERl4bWmr4KOM23OaaxiUNtr3h5I=; fh=eemaZKfXcVkLLOgp9+o7aVzaGcs6dKcYTSW0+6J6k64=; b=oAJPGkYItonmD8JI7Rm6VnsyICv3tRM1xyKQq0Hi+CESVLDo40cZUy7M+XcSIkyRcS izs062wl3mWqaW2NEwkeTj/TF7Rub7VAhkAXjJ91P6Irs6nKhYyAVmxClonDVznZl37O 1sHetrMVvC9kfVMTGUaB+dPLnmHtIy9oENZyl8m+C6eZlhK9Hc1XVvDRbKoQR2lDtFRQ XWDYtkNX+XnrF5tlAfTk52ererl8rIwwpjj/MHuFQ8fcBvivQDO8uBEPi2UoOx/s00C6 N1CEdQAC1dKYLyat0vHaPyq5fMYDQyf+4GdeabIUNKD9yi4h8t+EMeB4n8NFly4VPoPN nUaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j4Z6XbCi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id s33-20020a056a0017a100b006cd8f0ed07csi6959047pfg.191.2023.12.11.18.46.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 18:46:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j4Z6XbCi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 600BA8051A2B; Mon, 11 Dec 2023 18:46:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345735AbjLLCqi (ORCPT + 99 others); Mon, 11 Dec 2023 21:46:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231238AbjLLCqh (ORCPT ); Mon, 11 Dec 2023 21:46:37 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79CE1C6 for ; Mon, 11 Dec 2023 18:46:42 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6220DC433C7; Tue, 12 Dec 2023 02:46:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702349201; bh=cQ4wUl6++qO8BEW8ZwZKfxPjaTGwJHwd8l+J+2TIHwE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=j4Z6XbCiTApJbcrug5/72aaZw9xMl+uy3S74BMKXClSIf0NIOD16lf0RJZF/3hCvS 9pT1eea7xi7SRqSfjdNsB64zbzUw7EmRmee0vWu6KngORkdHUFGcKYvEyvp6CJTpGm rmNy9LJT0stHN7K13meSd/udc+luC/rHhqjuTZKAIi2Yb13hmf1a79GeEcmd8c7ENL Zbc4o1Qhf0MCrHUyfxFLRBwa2WCbiMfAVITbLtUtzmmLhhR41uFgEyzSPHyBuq3cB8 ewR4yuv5XPgEzhIezdrO/Tep3hWshb2DBave1DXSwTUiJhji9ZDJl+FTxX+Dn+BGRy u0gNlVWHqln7w== Date: Mon, 11 Dec 2023 18:46:40 -0800 From: Jakub Kicinski To: Christian Marangi Cc: Florian Fainelli , Broadcom internal kernel review list , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Paolo Abeni , David Epping , Vladimir Oltean , Harini Katakam , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [net-next PATCH v4 3/3] net: phy: add support for PHY package MMD read/write Message-ID: <20231211184640.5faa296c@kernel.org> In-Reply-To: <20231206232547.2501-3-ansuelsmth@gmail.com> References: <20231206232547.2501-1-ansuelsmth@gmail.com> <20231206232547.2501-3-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 11 Dec 2023 18:46:55 -0800 (PST) Some nit picks since nobody has acked :( On Thu, 7 Dec 2023 00:25:47 +0100 Christian Marangi wrote: > +/** > + * __phy_package_read_mmd - Convenience function for reading a register > + * on an MMD on a given PHY using the PHY package base addr, added of s/on an MMD/of an MMD/ ? s/added of/added to/ ? > + * the addr_offset value. > + * @phydev: The phy_device struct > + * @addr_offset: The offset to be added to PHY package base_addr > + * @devad: The MMD to read from > + * @regnum: The register on the MMD to read > + * > + * Same rules as for __phy_read(); > + * > + * NOTE: It's assumed that the entire PHY package is either C22 or C45. I'd try to make the headline shorter: /** * __phy_package_read_mmd - read MMD reg relative to PHY package base addr * @phydev: The phy_device struct * @addr_offset: The offset to be added to PHY package base_addr * @devad: The MMD to read from * @regnum: The register on the MMD to read * * Convenience helper for reading a register of an MMD on a given PHY * using the PHY package base address. The base address is added to * the addr_offset value. * * Same calling rules as for __phy_read(); * * NOTE: It's assumed that the entire PHY package is either C22 or C45. */