[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220517184122.522ed708@kernel.org>
Date: Tue, 17 May 2022 18:41:22 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Lorenzo Bianconi <lorenzo@...nel.org>
Cc: netdev@...r.kernel.org, nbd@....name, john@...ozen.org,
sean.wang@...iatek.com, Mark-MC.Lee@...iatek.com,
davem@...emloft.net, edumazet@...gle.com, pabeni@...hat.com,
Sam.Shih@...iatek.com, linux-mediatek@...ts.infradead.org,
devicetree@...r.kernel.org, robh@...nel.org,
lorenzo.bianconi@...hat.com
Subject: Re: [PATCH v2 net-next 11/15] net: ethernet: mtk_eth_soc: introduce
device register map
On Mon, 16 May 2022 18:06:38 +0200 Lorenzo Bianconi wrote:
> /* PDMA RX Base Pointer Register */
> -#define MTK_PRX_BASE_PTR0 0x900
> +#define MTK_PRX_BASE_PTR0 (eth->soc->reg_map[MTK_PDMA_BASE] + 0x100)
> #define MTK_PRX_BASE_PTR_CFG(x) (MTK_PRX_BASE_PTR0 + (x * 0x10))
Implicit macro arguments are really unpleasant for people doing
tree-wide changes or otherwise unfamiliar with the driver.
Nothing we can do to avoid this?
Powered by blists - more mailing lists