linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* uart ops tx_empty lock
@ 2011-02-12 13:16 Richard Zhao
  2011-02-12 16:11 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Zhao @ 2011-02-12 13:16 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: linux-serial

Hi Greg,

Does uart_ops.tx_empty need to hold port->lock?
I find some drivers hold the lock in tx_empty hook, for example 8250.
But many more drivers don't hold it, for example imx.c, sh-sci.c.

Thanks
Richard

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

* Re: uart ops tx_empty lock
  2011-02-12 13:16 uart ops tx_empty lock Richard Zhao
@ 2011-02-12 16:11 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2011-02-12 16:11 UTC (permalink / raw)
  To: Richard Zhao; +Cc: linux-serial

On Sat, Feb 12, 2011 at 09:16:45PM +0800, Richard Zhao wrote:
> Hi Greg,
> 
> Does uart_ops.tx_empty need to hold port->lock?
> I find some drivers hold the lock in tx_empty hook, for example 8250.
> But many more drivers don't hold it, for example imx.c, sh-sci.c.

I do not know, Alan would know best about this.

Alan?

thanks,

greg k-h

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

end of thread, other threads:[~2011-02-12 16:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-12 13:16 uart ops tx_empty lock Richard Zhao
2011-02-12 16:11 ` Greg KH

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).