Re: [PATCH v2 02/10] net: stmmac: dwmac1000: Allow platforms to choose some register offsets
From: Andrew Lunn <andrew@lunn.ch>
Date: 2023-07-27 09:10:40
Also in:
loongarch
From: Andrew Lunn <andrew@lunn.ch>
Date: 2023-07-27 09:10:40
Also in:
loongarch
+#define _REGS (priv->plat->dwmac_regs) -/* Rx watchdog register */ +/* DMA CRS Control and Status Register Mapping */ +#define DMA_CHAN_OFFSET (_REGS->addrs->chan_offset)
It is thought to be bad practice for a macro to access things not
passed to it. Please try to make a cleaner solution.
Andrew