Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4890261rdb; Tue, 12 Dec 2023 12:09:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IHagWITj0Ep8Jh6Ul/USRRmlV71u5goy0QpNZjNZRj2vZO3Eu5HHHo7xWESDsFFUCLr5PrB X-Received: by 2002:a17:90a:dc02:b0:286:6cc1:866a with SMTP id i2-20020a17090adc0200b002866cc1866amr3751499pjv.79.1702411776036; Tue, 12 Dec 2023 12:09:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702411776; cv=none; d=google.com; s=arc-20160816; b=jhbg+827FEeA3s+Js7fx6BwsqG28xU9fAtJf6EZdi37BW6IgzPOpNcAK4JdOHLZeEK H2wrxbL6692A5pz2KoculkBtIOSQ1doFKlEJQst4n8y7uC5PB+5mZiXWzym1oQ5VolJr nE12r2LmgxXmweJYgns6GRIiiv+zC+NBUBv4FGh4yFbdKBW72IXKBbOES0MWKAyKfv5r cYAd0hVJ7HLxwfb67FLnqAhlnuoaxzrZQcVrHq3+93FgX/UbHdc70UthnInvhJ6ZWA8J SkExcJIb9w4FiWPDUIW9QwK6APPI220YWLnOOJ1EBMm1IzFHMTmzAVjpqSuooVJc1pDD 4Wcw== 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=vMcFgKpjgTf+EvwEJtca4yFtgtHj+YN8MPqr75mjMsE=; fh=G+oHVLUFPUeGmzJbJtSprTLAQUONSXfzNuLWmxRIiYY=; b=LSHryg80f0k0eTdcWoUzPfRl8PE+9w3Ck1eqjN8jZWLwymHoWBUnJDJszQbNpO8oQd UBo/JaAzk3nE7R3MvpUZZDl8/Chx2HaGU9JQ6iR9YhzZkMEu1CArL2YHKOqsLMBynxF+ 1W21I+aGdbHk3jqdhoQHoqJ0f0lpndlnwGGyjGFa/5AXINw11KteAGckxkXk47EbfUTd g+fsWam+UWC9dSPQW5GI7eGGKIR6PgI08GLWvYhJ9yDFBdomVHzJq15ud3IbeF8x0Oa0 SoOiL9xaAYSCgzMF98U00b2nSX4WFGaTi6/45QqCJvnp+WfgE9SaZGAPjcpeer10Zubv BPiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DD6xBI3f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id 64-20020a17090a09c600b0028ac3e2703bsi1297763pjo.165.2023.12.12.12.09.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 12:09:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=DD6xBI3f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id C1BD78047458; Tue, 12 Dec 2023 12:09:34 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377151AbjLLUJZ (ORCPT + 99 others); Tue, 12 Dec 2023 15:09:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229975AbjLLUJY (ORCPT ); Tue, 12 Dec 2023 15:09:24 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C25B6AF for ; Tue, 12 Dec 2023 12:09:30 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E340AC433C7; Tue, 12 Dec 2023 20:09:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702411770; bh=0eVTZkHlIsk4aS6bhAk3MNH78cknRO/FG2cL4SHw4nI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=DD6xBI3fMi8m8hMqyxAqM36NRBTMjYg931z25Qts7t2uYQAK00GDdDBiyoi/FZU58 T9SoUwMxKnA0cz46BjKba5m4VqYqOTygLmVIs3sEdYuPg2P2ASocvDEPXR3wC/uJE9 qEe24c7y5ScQsZx/2ONaVEeGAFcO9ftV+ckdevj9JrD3fis2cq6fShopa8V0O95wZM aKFwUfAe3+3iMj5KxNCUAELeS6V6diijN3EkX7+vLAMkWsBKXOBP6/RP7mcSg+1E8/ VE8WRBkUH64YHcc3gYeYdaT8WvphmfQCBlKozwafOyXWENgvyoVL1JmNRxKlQWJxPt PjGzwsL/bIOtg== Date: Tue, 12 Dec 2023 12:09:28 -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 , Vladimir Oltean , David Epping , "Russell King (Oracle)" , Harini Katakam , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [net-next PATCH v5 3/3] net: phy: add support for PHY package MMD read/write Message-ID: <20231212120928.4b558d68@kernel.org> In-Reply-To: <20231212123743.29829-3-ansuelsmth@gmail.com> References: <20231212123743.29829-1-ansuelsmth@gmail.com> <20231212123743.29829-3-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 12 Dec 2023 12:09:35 -0800 (PST) On Tue, 12 Dec 2023 13:37:43 +0100 Christian Marangi wrote: > + * __phy_package_write_mmd - write MMD reg relative to PHY package base addr kdoc test says phy_package_write_mmd > + * @phydev: The phy_device struct > + * @addr_offset: The offset to be added to PHY package base_addr > + * @devad: The MMD to write to > + * @regnum: The register on the MMD to write > + * @val: value to write to @regnum > + * > + * Convenience helper for writing 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_write(); > + * > + * NOTE: It's assumed that the entire PHY package is either C22 or C45. > + */ > +int phy_package_write_mmd(struct phy_device *phydev, -- pw-bot: cr