* [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
* Re: [RFC PATCH] tty: serial: uartlite: Extend time for sending chars through mdm IP
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
0 siblings, 1 reply; 3+ messages in thread
From: Greg Kroah-Hartman @ 2013-09-30 12:54 UTC (permalink / raw)
To: Michal Simek
Cc: linux-kernel, Michal Simek, linux-serial, arnd, Peter Korsgaard,
Grant Likely, Rob Herring, Jiri Slaby
On Mon, Sep 30, 2013 at 01:50:35PM +0200, Michal Simek wrote:
> 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;
Ick, what happens next year when we get a faster cpu?
Please make this a time delay, not a 'loop till we can count to this
number', so we know exactly what is going on here.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC PATCH] tty: serial: uartlite: Extend time for sending chars through mdm IP
2013-09-30 12:54 ` Greg Kroah-Hartman
@ 2013-09-30 14:28 ` Michal Simek
0 siblings, 0 replies; 3+ messages in thread
From: Michal Simek @ 2013-09-30 14:28 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: Michal Simek, linux-kernel, linux-serial, arnd, Peter Korsgaard,
Grant Likely, Rob Herring, Jiri Slaby
[-- Attachment #1: Type: text/plain, Size: 1703 bytes --]
On 09/30/2013 02:54 PM, Greg Kroah-Hartman wrote:
> On Mon, Sep 30, 2013 at 01:50:35PM +0200, Michal Simek wrote:
>> 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;
>
> Ick, what happens next year when we get a faster cpu?
I will start to celebrate because 150MHz is not enough. :-)
> Please make this a time delay, not a 'loop till we can count to this
> number', so we know exactly what is going on here.
But seriously, I will look at this change and will try to find out
the slowest and the fastest hw to test this.
Thanks,
Michal
--
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 263 bytes --]
^ permalink raw reply [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 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).