* [PATCH] Altix serial: fix
@ 2008-07-20 9:14 roel kluin
0 siblings, 0 replies; only message in thread
From: roel kluin @ 2008-07-20 9:14 UTC (permalink / raw)
To: pfg; +Cc: linux-ia64, linux-kernel
Patch was not tested on hardware
---
In function sn_sal_switch_to_asynch(): drivers/serial/sn_console.c:713:
HZ * SN_SAL_UART_FIFO_DEPTH / SN_SAL_UART_FIFO_SPEED_CPS;
After preprocessing (see defines in patch) this becomes HZ * 16 / 9600 / 10
(associativity from left to right), not equivalent to HZ * 16 / 960.
---
diff --git a/drivers/serial/sn_console.c b/drivers/serial/sn_console.c
index 019da2e..3a2683b 100644
--- a/drivers/serial/sn_console.c
+++ b/drivers/serial/sn_console.c
@@ -61,7 +61,7 @@
#define SN_SAL_BUFFER_SIZE (64 * (1 << 10))
#define SN_SAL_UART_FIFO_DEPTH 16
-#define SN_SAL_UART_FIFO_SPEED_CPS 9600/10
+#define SN_SAL_UART_FIFO_SPEED_CPS (9600/10)
/* sn_transmit_chars() calling args */
#define TRANSMIT_BUFFERED 0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-20 9:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-20 9:14 [PATCH] Altix serial: fix roel kluin
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).