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 20241C433EF for ; Sat, 16 Jul 2022 18:38:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231963AbiGPSi2 (ORCPT ); Sat, 16 Jul 2022 14:38:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231548AbiGPSi1 (ORCPT ); Sat, 16 Jul 2022 14:38:27 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFDF91BE92; Sat, 16 Jul 2022 11:38:26 -0700 (PDT) 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=onfoaPsdX3RFZ3bYkRBbMxnProfuyX/n3YmA+bW3vc0=; b=sHyuiH4CYPfNXOrMR3SW6ghS9e tG+cyqtBOuvCksgfC3gvVvHO7WrSmNDxSi+2J+3EAVomEVbn0ZO+Rp+AZO5G3KJ3RDSeo65jw0uif TZH8NbZjP5TR6yJvqvgeZay9tJVORDS6a6TpzH9aMpMbVAuAq6wtIUsCQYgLlzZrg+xA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oCmgA-00AZAp-2A; Sat, 16 Jul 2022 20:38:14 +0200 Date: Sat, 16 Jul 2022 20:38:14 +0200 From: Andrew Lunn To: Sean Anderson Cc: "David S . Miller" , Jakub Kicinski , Madalin Bucur , netdev@vger.kernel.org, Paolo Abeni , Eric Dumazet , linux-arm-kernel@lists.infradead.org, Russell King , linux-kernel@vger.kernel.org, Alexandru Marginean , Heiner Kallweit , Vladimir Oltean Subject: Re: [PATCH net-next v3 14/47] net: phy: aquantia: Add support for rate adaptation Message-ID: References: <20220715215954.1449214-1-sean.anderson@seco.com> <20220715215954.1449214-15-sean.anderson@seco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220715215954.1449214-15-sean.anderson@seco.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +#define VEND1_GLOBAL_CFG_10M 0x0310 > +#define VEND1_GLOBAL_CFG_100M 0x031b > +#define VEND1_GLOBAL_CFG_1G 0x031c > +#define VEND1_GLOBAL_CFG_2_5G 0x031d > +#define VEND1_GLOBAL_CFG_5G 0x031e > +#define VEND1_GLOBAL_CFG_10G 0x031f I completely read this wrong the first time... The common meaning of #defines line this is VEND1_GLOBAL_CFG_ is the register and what follows indicates some bits in the register. However, this is not true here, these are all registers. Maybe add _REG to the end? It makes them different to other defines for registers, but if i parsed it wrong, probably other will as well? > static int aqr107_read_rate(struct phy_device *phydev) > { > int val; > + u32 config_reg; Revere Christmass tree. config_reg should be first. Andrew