Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3458403rdh; Thu, 28 Sep 2023 12:13:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEerWPP7tjjLaqmpm1gkPfFvNMTDBmZ/qsU11UCicqgb7WiDE6VOPIooWCb/vnX16xrC6YL X-Received: by 2002:a25:690d:0:b0:d0c:3be2:b626 with SMTP id e13-20020a25690d000000b00d0c3be2b626mr2269681ybc.30.1695928409658; Thu, 28 Sep 2023 12:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695928409; cv=none; d=google.com; s=arc-20160816; b=Km6rONnTSC8smtyo1sy+edqaZjAZffysvFlYy+12iSCpOjgwM+lp5QuOp1B1pWE1wu l5VNoOVoSUvWzZB7mHNa5ASakZy1KJhRpXMx/YK7HljukPRaT48L4Ap4bCIhjpCLZ0Xj +3dKb8Zup5FGU0G1JIK/bykJfCDUOP9xzne4QLMHdmMq5pcuii5wbmRlI2GhDku7Uoe7 ahwZb/m9921q2q1jG0674dRhM6Yuh9bbqpMvEXUYz21VVJTCY3k1ASVwzNjp/cURab4W kwINF7hCW2KkT8dXrGVZ15LBe0HrkvEyAlUqzy8PhR4Jg9P9gOJMBkunPxZZavmQk7E+ Ymog== 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=LvchdRvVlCiZ++XoiiSkU+RJ9RgxCiOfB+RahVspfQ0=; fh=5CHWFM5viytVs+flWhOkNaAbzusUvbhLAkNuRdKmqLE=; b=dpxJS3HZRxTC0P5kt31VrKgaYhJlWDJMouYAnqtaRAfWuS9HRYrxUH8DvhwQpO+/4M Cf1tusqa6tO8hCnpXEKpjFoUp9LK6LZTdJeEMYc4gbBuBtsvcGEqaQeq80xu3Zt+TxQg fh40xqSuaD3h5zITNkudwPNWHljGSjubRQfc4LVWz60/1Cw4TCuikejL4pH2mx333uwe DIOJ/XX45/T5j7jdF/Eugl45VGdZctqU745Hfr3NSoMi2GphDNWtEVGX6mapE1Cbdv/b uRiWnztqDG6goh3cTnQ94B68gZJaeTrmME6gBw4vMoDecyjBE9pOKOgdpZPPsnZ8U9a4 HfAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D5RF0CV+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id x5-20020a654145000000b00584ac935a98si8224181pgp.828.2023.09.28.12.13.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 12:13:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D5RF0CV+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id AC2828095084; Thu, 28 Sep 2023 12:05:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230325AbjI1TFs (ORCPT + 99 others); Thu, 28 Sep 2023 15:05:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjI1TFr (ORCPT ); Thu, 28 Sep 2023 15:05:47 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 166EB195 for ; Thu, 28 Sep 2023 12:05:46 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3BEAC433C7; Thu, 28 Sep 2023 19:05:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695927945; bh=hL+1NK7FhszHgz8oD0fZO4rkoqzQEsWg3x3hhHFUDiE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=D5RF0CV+X6PZ2UnKfF1cHF0YRVn39sT/fWwmRXYooWHxcmtRfB3Pzkh3H2SXVWzDK hOxEwwX8zPxXSRo+nXVuHXZF9uCGZwEZ6m3OTiBlR69wgxpSgERc0v+wlxEAEr59KS BdQHOnTrmj1EGypvPQozajvkpiL4Q9I14qQvIwl3tcuL2tvZD1jvxxuOgLi5Jrcsuo xDw5ORw6S9vV08RvCLEGmVSepCLo+YMUoaqOssAzZfxjd7/Xh9YAsYf9AsKo3Zv/vv WAGeKLgkgQzr6RuMmGMoxP9uHdb1dZzLt7RnDAxU8f+O5yW+zUd8r5Zs5MCyNqw9O1 slQ1GCspCCBPw== Date: Thu, 28 Sep 2023 21:05:36 +0200 From: Simon Horman To: Vladimir Oltean Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, "Russell King (Oracle)" , Heiner Kallweit , Andrew Lunn , Florian Fainelli , Madalin Bucur , Ioana Ciornei , Camelia Groza , Li Yang , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sean Anderson , Maxime Chevallier , Vinod Koul , Kishon Vijay Abraham I Subject: Re: [RFC PATCH v2 net-next 03/15] phy: ethernet: add configuration interface for copper backplane Ethernet PHYs Message-ID: <20230928190536.GO24230@kernel.org> References: <20230923134904.3627402-1-vladimir.oltean@nxp.com> <20230923134904.3627402-4-vladimir.oltean@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230923134904.3627402-4-vladimir.oltean@nxp.com> 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Thu, 28 Sep 2023 12:05:57 -0700 (PDT) On Sat, Sep 23, 2023 at 04:48:52PM +0300, Vladimir Oltean wrote: ... > +/** > + * coef_update_opposite - return the opposite of one C72 coefficient update > + * request > + * > + * @update: original coefficient update > + * > + * Helper to transform the update request of one equalization tap into a > + * request of the same tap in the opposite direction. May be used by C72 > + * phy remote TX link training algorithms. > + */ > +static inline enum coef_update coef_update_opposite(enum coef_update update) Hi Vladimir, another nit from me. Please put the inline keyword first. Likewise elsewhere in this patch. Tooling, including gcc-13 with W=1, complains about this. > +{ > + switch (update) { > + case COEF_UPD_INC: > + return COEF_UPD_DEC; > + case COEF_UPD_DEC: > + return COEF_UPD_INC; > + default: > + return COEF_UPD_HOLD; > + } > +} ...