All of lore.kernel.org
 help / color / mirror / Atom feed
From: "George G. Davis" <gdavis@mvista.com>
To: Russell King <rmk@arm.linux.org.uk>
Cc: linux-serial@vger.kernel.org
Subject: Re: [RFC][PATCH] Make sure UART is powered up when dumping MCTRL status
Date: Thu, 5 Oct 2006 20:30:53 -0400	[thread overview]
Message-ID: <20061006003053.GC26318@mvista.com> (raw)
In-Reply-To: <20060628142346.GK9261@mvista.com>

Ping,

On Wed, Jun 28, 2006 at 10:23:46AM -0400, George G. Davis wrote:
> On Wed, May 10, 2006 at 05:39:19PM +0100, Russell King wrote:
> > On Fri, May 05, 2006 at 06:15:37PM -0400, George G. Davis wrote:
> > > @@ -2068,6 +2076,10 @@ uart_configure_port(struct uart_driver *
> > >  
> > >  		uart_report_port(drv, port);
> > >  
> > > +		/* Power up port for set_mctrl() */
> > > +		if (!uart_console(port))
> > > +			uart_change_pm(state, 0);
> > > +
> > 
> > If it's possible for uarts to be powered down here, wouldn't it be a
> > good idea to ensure that the console is also powered up?
> 
> Apologies for the delay...  Here's an update which insures all serial
> ports are powered up prior to accessing device registers.
> 
> Since serial devices are powered down when not in use and some of those
> devices cannot be accessed when powered down, we need to enable power
> around calls to get_mcrtl() when dumping port state via uart_line_info().
> This resolves hangs observed on some machines while reading serial device
> registers when a port is powered off.
> 
> Signed-off-by: George G. Davis <gdavis@mvista.com>

Any chance of this getting committed?  The Freescale i.MX31 shuts off clocks
when ports are not in use and the kernel hangs without this change.  It's
likely other targets may start managing clocks in this way too.  So this
may be required for others at some point. In the meantime, it should be
harmless for those targets which don't manage device clocks, no?

TIA!

--
Regards,
George

      reply	other threads:[~2006-10-06  0:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-05 22:15 [RFC][PATCH] Make sure UART is powered up when dumping MCTRL status George G. Davis
2006-05-10 16:39 ` Russell King
2006-05-10 17:13   ` George G. Davis
2006-06-28 14:23   ` George G. Davis
2006-10-06  0:30     ` George G. Davis [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=20061006003053.GC26318@mvista.com \
    --to=gdavis@mvista.com \
    --cc=linux-serial@vger.kernel.org \
    --cc=rmk@arm.linux.org.uk \
    /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.