aboutsummaryrefslogtreecommitdiff
path: root/arch/blackfin/mach-bf537/include/mach
diff options
context:
space:
mode:
authorSonic Zhang <sonic.zhang@analog.com>2009-07-20 16:05:37 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2009-07-20 16:38:44 -0700
commit0ecf24ef49d4f46ff5d6af357c3b9ec8d798160d (patch)
treed223050f828261457c17204bc830fe1c6b12c24e /arch/blackfin/mach-bf537/include/mach
parent23198fda7182969b619613a555f8645fdc3dc334 (diff)
blackfin: fix wrong CTS inversion
The Blackfin serial headers were inverting the CTS value leading to wrong handling of the CTS line which broke CTS/RTS handling completely. Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/blackfin/mach-bf537/include/mach')
-rw-r--r--arch/blackfin/mach-bf537/include/mach/bfin_serial_5xx.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/blackfin/mach-bf537/include/mach/bfin_serial_5xx.h b/arch/blackfin/mach-bf537/include/mach/bfin_serial_5xx.h
index b86662fb9de..e95d54f9af6 100644
--- a/arch/blackfin/mach-bf537/include/mach/bfin_serial_5xx.h
+++ b/arch/blackfin/mach-bf537/include/mach/bfin_serial_5xx.h
@@ -53,7 +53,7 @@
#define UART_SET_DLAB(uart) do { UART_PUT_LCR(uart, UART_GET_LCR(uart) | DLAB); SSYNC(); } while (0)
#define UART_CLEAR_DLAB(uart) do { UART_PUT_LCR(uart, UART_GET_LCR(uart) & ~DLAB); SSYNC(); } while (0)
-#define UART_GET_CTS(x) (!gpio_get_value(x->cts_pin))
+#define UART_GET_CTS(x) gpio_get_value(x->cts_pin)
#define UART_DISABLE_RTS(x) gpio_set_value(x->rts_pin, 1)
#define UART_ENABLE_RTS(x) gpio_set_value(x->rts_pin, 0)
#define UART_ENABLE_INTS(x, v) UART_PUT_IER(x, v)