Thread (43 messages) 43 messages, 7 authors, 2023-08-03

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

+#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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help