Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 220F2F9FA for ; Thu, 27 Jul 2023 09:13:49 +0000 (UTC) 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=H8yStCZrx/lPZS6tsaEFybt2+EVVkMybFAlOQ91jDoE=; b=Z4x+FFyPXgCvwsOF+td+pWAJLJ GHr20HwRaLmsrd4PyVYQzscCdgESqzIO0Ag6u6ZEHD7SKeFtAlJS6+Jn+kdh9JcfwMMKETKWGbaFD kpwb51kvR1oFS0hmrRSMd4Sdisu/mHAAMdm3zG/Zun8nUJpvkj6mLyDmfgw5r0bYiHGw=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qOx3y-002RCE-RU; Thu, 27 Jul 2023 11:13:38 +0200 Date: Thu, 27 Jul 2023 11:13:38 +0200 From: Andrew Lunn To: Feiyang Chen Cc: hkallweit1@gmail.com, peppe.cavallaro@st.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, chenhuacai@loongson.cn, linux@armlinux.org.uk, dongbiao@loongson.cn, loongson-kernel@lists.loongnix.cn, netdev@vger.kernel.org, loongarch@lists.linux.dev, chris.chenfeiyang@gmail.com Subject: Re: [PATCH v2 05/10] net: stmmac: dwmac1000: Add Loongson register definitions Message-ID: <30e8518e-4862-4aa5-afda-2f511dde2b44@lunn.ch> References: Precedence: bulk X-Mailing-List: loongarch@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: > /* GMAC HW ADDR regs */ > -#define GMAC_ADDR_HIGH(reg) ((reg > 15) ? 0x00000800 + (reg - 16) * 8 : \ > +#define GMAC_ADDR_HIGH(reg, x) ((reg > 15) ? 0x00000800 + (reg - 16) * 8 * (x) : \ > 0x00000040 + (reg * 8)) please give x a more descriptive name. Andrew