Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1666636imw; Sat, 16 Jul 2022 11:49:24 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t8aE8kPmLFxHv2HC9Ym3BbICGg9LwOheYw5S/lbG4z2Ol+xs+NXRPbqXFFB4E/DitLKA5A X-Received: by 2002:a17:906:9b09:b0:72b:9612:d373 with SMTP id eo9-20020a1709069b0900b0072b9612d373mr18498681ejc.606.1657997364008; Sat, 16 Jul 2022 11:49:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657997364; cv=none; d=google.com; s=arc-20160816; b=UP2HAM0cYolHkiMXQlh68/yz91gra5KWkt8odxmhTs5RqqGoiICEB9oD2UzrK3dRS1 3moxn2yR7+4jGFFlPA7AgnORGu6VYuFtf96MjhJfvA/b4tGY1CDDxuK3GOfDg3BqkENb 4MSNYc1RiZR7qO4dFhGfHTb+9Mg1NirM5pXaenWz+c3KAqZCQ7bqfqfxBriux58sx/Gf cM5yaCmq8mNOKF6QJ9My/UR/UWMYOejB/PQsb2UX0BsJmeNLuCg4PxjOjkkG1KD4hqMO AUXBdV9efJip+6lH0yDS3WA9J4pLHJN862YMDXyjGuNjsMqgJZU3QjLVUl5KS9M67YRD hGig== 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=onfoaPsdX3RFZ3bYkRBbMxnProfuyX/n3YmA+bW3vc0=; b=UhlkqNef5gGnA61b4jXY1HFibgACoEo5QfM83+ZK5uZ7r2uvTglRmspmOn2EsqNPh1 MqBPlqVRyA8xjWvoRJe1ApvhSERG1S6pl4MeX7UR+HiOtzLKf4ck3iVYCc4uUBjkDiVx HwN/Amt4OIDbOXeuoktEjc1MFfDvV682o80cQ0t3GFVq1TU9njSGHUdfCQNUa5G5QAg3 dpk7efjb4ok8POPoBLFzhvP8wuV//RtE9WMMRaVeiCScO8UorVZqJUbLc5jrVj16fA8p h4S14L2IxynKPRNJxUNieJhaGabnkRzEawSH2lf90KRjo6LS52/9nfINCuIIf6rUGIfv zKhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=sHyuiH4C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l18-20020a170906795200b0072ab4e654basi10177563ejo.707.2022.07.16.11.48.59; Sat, 16 Jul 2022 11:49:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=sHyuiH4C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231918AbiGPSi2 (ORCPT + 99 others); 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> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 > +#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