All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH] tty: serial: uartlite: Extend time for sending chars through mdm IP
@ 2013-09-30 11:50 Michal Simek
  2013-09-30 12:54 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 3+ messages in thread
From: Michal Simek @ 2013-09-30 11:50 UTC (permalink / raw)
  To: linux-kernel
  Cc: Michal Simek, Michal Simek, Greg Kroah-Hartman, linux-serial,
	arnd, Peter Korsgaard, Grant Likely, Rob Herring, Jiri Slaby

[-- Attachment #1: Type: text/plain, Size: 810 bytes --]

From: Michal Simek <monstr@monstr.eu>

Serial over jtag via mdm is compatible with uartlite driver
just need to extend time for reading chars because connection
is slow.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---
 drivers/tty/serial/uartlite.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c
index 5f90ef2..f55c342 100644
--- a/drivers/tty/serial/uartlite.c
+++ b/drivers/tty/serial/uartlite.c
@@ -422,7 +422,7 @@ static void ulite_console_wait_tx(struct uart_port *port)
 	u8 val;

 	/* Spin waiting for TX fifo to have space available */
-	for (i = 0; i < 100000; i++) {
+	for (i = 0; i < 10000000; i++) {
 		val = uart_in32(ULITE_STATUS, port);
 		if ((val & ULITE_STATUS_TXFULL) == 0)
 			break;
--
1.8.2.3


[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-09-30 14:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-30 11:50 [RFC PATCH] tty: serial: uartlite: Extend time for sending chars through mdm IP Michal Simek
2013-09-30 12:54 ` Greg Kroah-Hartman
2013-09-30 14:28   ` Michal Simek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.