* [PATCH] serial: add UART_CAP_EFR and UART_CAP_SLEEP flags to 16C950 UARTs definition
@ 2010-06-16 14:29 Yegor Yefremov
0 siblings, 0 replies; only message in thread
From: Yegor Yefremov @ 2010-06-16 14:29 UTC (permalink / raw)
To: linux-serial; +Cc: Greg KH
Adding UART_CAP_EFR and UART_CAP_SLEEP flags will enable sleep mode
and automatic CTS flow control for 16C950 UARTs. It will also avoid
capabilities detection warning like this:
"ttyS0: detected caps 00000700 should be 00000100"
Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Index: b/drivers/serial/8250.c
===================================================================
--- a/drivers/serial/8250.c 2010-05-27 09:38:40.000000000 +0200
+++ b/drivers/serial/8250.c 2010-06-16 16:20:59.000000000 +0200
@@ -241,7 +241,7 @@
.fifo_size = 128,
.tx_loadsz = 128,
.fcr = UART_FCR_ENABLE_FIFO | UART_FCR_R_TRIG_10,
- .flags = UART_CAP_FIFO,
+ .flags = UART_CAP_FIFO | UART_CAP_EFR | UART_CAP_SLEEP,
},
[PORT_16654] = {
.name = "ST16654",
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-06-16 14:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-16 14:29 [PATCH] serial: add UART_CAP_EFR and UART_CAP_SLEEP flags to 16C950 UARTs definition Yegor Yefremov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).