Skip to content

Ordered I/O accessors

Russell King - ARM Linux linux-arm-kernel 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 2/20 of 3 patches 0 repliesNew
  2. v3 posting 1/20 of 3 patches 0 repliesSuperseded
  3. v23 patches 0 repliesSuperseded

Patches in v3 posting 2/2 No applies recorded yet

None of the 3 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] Ordered I/O accessors
Quoted 2 lines · Rabin VINCENT

Something like the following needs to be applied to fix it. I'll submit this as a separate patch if it can't be folded in.

Please submit it as a separate patch to the patch system. Thanks.

Quoted 32 lines
arch/arm/mach-ux500/include/mach/uncompress.h +5 -5
index 8552eb1..0271ca0 100644
@@ -30,22 +30,22 @@
 static void putc(const char c)
 {
 	/* Do nothing if the UART is not enabled. */
-	if (!(readb(U8500_UART_CR) & 0x1))
+	if (!(__raw_readb(U8500_UART_CR) & 0x1))
 		return;
 
 	if (c == '\n')
 		putc('\r');
 
-	while (readb(U8500_UART_FR) & (1 << 5))
+	while (__raw_readb(U8500_UART_FR) & (1 << 5))
 		barrier();
-	writeb(c, U8500_UART_DR);
+	__raw_writeb(c, U8500_UART_DR);
 }
 
 static void flush(void)
 {
-	if (!(readb(U8500_UART_CR) & 0x1))
+	if (!(__raw_readb(U8500_UART_CR) & 0x1))
 		return;
-	while (readb(U8500_UART_FR) & (1 << 3))
+	while (__raw_readb(U8500_UART_FR) & (1 << 3))
 		barrier();
 }