From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 09E70C4332F for ; Tue, 12 Dec 2023 02:46:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345707AbjLLCqj (ORCPT ); Mon, 11 Dec 2023 21:46:39 -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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. */