Thread (8 messages) 8 messages, 3 authors, 2015-07-02

[PATCH v3 2/4] tty/serial: at91: fix some macro definitions to fit coding style

From: arnd@arndb.de (Arnd Bergmann)
Date: 2015-06-30 20:28:57
Also in: linux-devicetree, linux-serial, lkml

On Tuesday 30 June 2015 16:05:15 Cyrille Pitchen wrote:
+#define UART_PUT_CR(port, v)   __raw_writel(v, (port)->membase + ATMEL_US_CR)
+#define UART_GET_MR(port)      __raw_readl((port)->membase + ATMEL_US_MR)
+#define UART_PUT_MR(port, v)   __raw_writel(v, (port)->membase + ATMEL_US_MR)
+#define UART_PUT_IER(port, v)  __raw_writel(v, (port)->membase + ATMEL_US_IER)
How about removing these macros entirely? I'm not aware of other drivers
doing it like this, and it does not seem to add any value?

At the same time, you could use readl_relaxed() to make the driver
endian-safe.

	Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help