From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755828Ab3I3O2J (ORCPT ); Mon, 30 Sep 2013 10:28:09 -0400 Received: from mail-ea0-f179.google.com ([209.85.215.179]:62618 "EHLO mail-ea0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754809Ab3I3O2H (ORCPT ); Mon, 30 Sep 2013 10:28:07 -0400 Message-ID: <52498A72.3080609@monstr.eu> Date: Mon, 30 Sep 2013 16:28:02 +0200 From: Michal Simek Reply-To: monstr@monstr.eu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 MIME-Version: 1.0 To: Greg Kroah-Hartman CC: Michal Simek , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, arnd@arndb.de, Peter Korsgaard , Grant Likely , Rob Herring , Jiri Slaby Subject: Re: [RFC PATCH] tty: serial: uartlite: Extend time for sending chars through mdm IP References: <20130930125433.GC13654@kroah.com> In-Reply-To: <20130930125433.GC13654@kroah.com> X-Enigmail-Version: 1.5.2 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3VSqGIBaPvACEMRJih3rENpQa8Nlkecd8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --3VSqGIBaPvACEMRJih3rENpQa8Nlkecd8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 >> >> 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 >> --- >> 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/uartli= te.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 =3D 0; i < 100000; i++) { >> + for (i =3D 0; i < 10000000; i++) { >> val =3D uart_in32(ULITE_STATUS, port); >> if ((val & ULITE_STATUS_TXFULL) =3D=3D 0) >> break; >=20 > 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 --=20 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 --3VSqGIBaPvACEMRJih3rENpQa8Nlkecd8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlJJinIACgkQykllyylKDCGJEgCeJ11Vd+VTxA1RjiYQlCKZyx3m hjAAn00ki9aYF+q/QpzMaKsocWKlGIef =FkeQ -----END PGP SIGNATURE----- --3VSqGIBaPvACEMRJih3rENpQa8Nlkecd8--