All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: Jiri Slaby <jslaby@suse.cz>,
	linux-serial@vger.kernel.org, kernel@pengutronix.de,
	stable@vger.kernel.org
Subject: Re: [PATCH] serial/mxs-auart: increase time to wait for transmitter to become idle
Date: Thu, 4 Jul 2013 09:16:10 -0700	[thread overview]
Message-ID: <20130704161610.GA20907@kroah.com> (raw)
In-Reply-To: <20130704160250.GC32260@pengutronix.de>

On Thu, Jul 04, 2013 at 06:02:50PM +0200, Uwe Kleine-König wrote:
> Hi Greg,
> 
> On Thu, Jul 04, 2013 at 08:58:36AM -0700, Greg Kroah-Hartman wrote:
> > On Thu, Jul 04, 2013 at 11:27:16AM +0200, Uwe Kleine-König wrote:
> > > On Fri, Jun 28, 2013 at 11:49:41AM +0200, Uwe Kleine-König wrote:
> > > > Without this patch the driver waits ~1 ms for the UART to become idle. At
> > > > 115200n8 this time is (theoretically) enough to transfer 11.5 characters
> > > > (= 115200 bits/s / (10 Bits/char) * 1ms). As the mxs-auart has a fifo size
> > > > of 16 characters the clock is gated too early. The problem is worse for
> > > > lower baud rates.
> > > > 
> > > > This only happens to really shut down the transmitter in the middle of a
> > > > transfer if /dev/ttyAPPx isn't opened in userspace (e.g. by a getty) but
> > > > was at least once (because the bootloader doesn't disable the transmitter).
> > > > 
> > > > So increase the timeout to 20 ms which should be enough for 9600n8, too.
> > > > Moreover skip gating the clock if the timeout is elapsed.
> > > > 
> > > > Cc: stable@vger.kernel.org # v2.6.39+
> > > > Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> > > Any comments on this. I hoped this patch would make it in for 3.10 :-(
> > 
> > You sent it after my tree closed for 3.11, 3.10 is a stretch :)
> You close your tree for fixes?

2 days before the kernel is to be released?  Yes, I do.  This will get
into 3.11-rc2 or -rc3, and backported to 3.10 and others, so please just
give it a bit of time.  It's just a driver issue, nothing keeping
machines from booting properly :)

thanks,

greg k-h

      reply	other threads:[~2013-07-04 16:16 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-28  9:49 [PATCH] serial/mxs-auart: increase time to wait for transmitter to become idle Uwe Kleine-König
2013-07-04  9:27 ` Uwe Kleine-König
2013-07-04 15:58   ` Greg Kroah-Hartman
2013-07-04 16:02     ` Uwe Kleine-König
2013-07-04 16:16       ` Greg Kroah-Hartman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130704161610.GA20907@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=jslaby@suse.cz \
    --cc=kernel@pengutronix.de \
    --cc=linux-serial@vger.kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=u.kleine-koenig@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.