瀏覽代碼

don't broke other archs, we're close to mainstream (i hope)

SVN-Revision: 8778
Matteo Croce 18 年之前
父節點
當前提交
495ab00a60
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      target/linux/ar7/patches-2.6.22/500-serial_kludge.patch

+ 5 - 2
target/linux/ar7/patches-2.6.22/500-serial_kludge.patch

@@ -15,12 +15,15 @@ diff -urN linux-2.6.22.orig/drivers/serial/8250.c linux-2.6.22/drivers/serial/82
  };
  
  #if defined (CONFIG_SERIAL_8250_AU1X00)
-@@ -2436,7 +2443,7 @@
+@@ -2453,7 +2453,11 @@
  {
  	struct uart_8250_port *up = (struct uart_8250_port *)port;
  
--	wait_for_xmitr(up, UART_LSR_THRE);
++#ifdef CONFIG_AR7
 +	wait_for_xmitr(up, BOTH_EMPTY);
++#else
+ 	wait_for_xmitr(up, UART_LSR_THRE);
++#endif
  	serial_out(up, UART_TX, ch);
  }