* [PATCH] serial: 8250_dma: call serial8250_tx_dma unconditionally
@ 2014-10-08 12:42 Andy Shevchenko
2014-10-15 12:53 ` Heikki Krogerus
2014-11-06 3:26 ` Greg Kroah-Hartman
0 siblings, 2 replies; 4+ messages in thread
From: Andy Shevchenko @ 2014-10-08 12:42 UTC (permalink / raw)
To: Greg Kroah-Hartman, Jiri Slaby, Heikki Krogerus, linux-serial
Cc: Andy Shevchenko
Since we have the same check inside the function we may drop it away in
__dma_tx_complete().
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/tty/serial/8250/8250_dma.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/tty/serial/8250/8250_dma.c b/drivers/tty/serial/8250/8250_dma.c
index 148ffe4..189ae3c 100644
--- a/drivers/tty/serial/8250/8250_dma.c
+++ b/drivers/tty/serial/8250/8250_dma.c
@@ -36,8 +36,7 @@ static void __dma_tx_complete(void *param)
if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
uart_write_wakeup(&p->port);
- if (!uart_circ_empty(xmit) && !uart_tx_stopped(&p->port))
- serial8250_tx_dma(p);
+ serial8250_tx_dma(p);
spin_unlock_irqrestore(&p->port.lock, flags);
}
--
2.1.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] serial: 8250_dma: call serial8250_tx_dma unconditionally
2014-10-08 12:42 [PATCH] serial: 8250_dma: call serial8250_tx_dma unconditionally Andy Shevchenko
@ 2014-10-15 12:53 ` Heikki Krogerus
2014-11-06 3:26 ` Greg Kroah-Hartman
1 sibling, 0 replies; 4+ messages in thread
From: Heikki Krogerus @ 2014-10-15 12:53 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: Greg Kroah-Hartman, Jiri Slaby, linux-serial
On Wed, Oct 08, 2014 at 03:42:09PM +0300, Andy Shevchenko wrote:
> Since we have the same check inside the function we may drop it away in
> __dma_tx_complete().
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Looks good to me. FWIW..
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Thanks,
--
heikki
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] serial: 8250_dma: call serial8250_tx_dma unconditionally
2014-10-08 12:42 [PATCH] serial: 8250_dma: call serial8250_tx_dma unconditionally Andy Shevchenko
2014-10-15 12:53 ` Heikki Krogerus
@ 2014-11-06 3:26 ` Greg Kroah-Hartman
2014-11-06 10:32 ` Andy Shevchenko
1 sibling, 1 reply; 4+ messages in thread
From: Greg Kroah-Hartman @ 2014-11-06 3:26 UTC (permalink / raw)
To: Andy Shevchenko; +Cc: Jiri Slaby, Heikki Krogerus, linux-serial
On Wed, Oct 08, 2014 at 03:42:09PM +0300, Andy Shevchenko wrote:
> Since we have the same check inside the function we may drop it away in
> __dma_tx_complete().
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> ---
> drivers/tty/serial/8250/8250_dma.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/tty/serial/8250/8250_dma.c b/drivers/tty/serial/8250/8250_dma.c
> index 148ffe4..189ae3c 100644
> --- a/drivers/tty/serial/8250/8250_dma.c
> +++ b/drivers/tty/serial/8250/8250_dma.c
> @@ -36,8 +36,7 @@ static void __dma_tx_complete(void *param)
> if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
> uart_write_wakeup(&p->port);
>
> - if (!uart_circ_empty(xmit) && !uart_tx_stopped(&p->port))
> - serial8250_tx_dma(p);
> + serial8250_tx_dma(p);
>
> spin_unlock_irqrestore(&p->port.lock, flags);
> }
The code in this area has changed a lot now due to some dma work added
to this driver. Can you look at my tty-testing branch of tty.git on
git.kernel.org and see if this is still relevant now? If so, please
refresh this patch and resend.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] serial: 8250_dma: call serial8250_tx_dma unconditionally
2014-11-06 3:26 ` Greg Kroah-Hartman
@ 2014-11-06 10:32 ` Andy Shevchenko
0 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2014-11-06 10:32 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: Jiri Slaby, Heikki Krogerus, linux-serial
On Wed, 2014-11-05 at 19:26 -0800, Greg Kroah-Hartman wrote:
> On Wed, Oct 08, 2014 at 03:42:09PM +0300, Andy Shevchenko wrote:
> > Since we have the same check inside the function we may drop it away in
> > __dma_tx_complete().
> >
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> > ---
> > drivers/tty/serial/8250/8250_dma.c | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/drivers/tty/serial/8250/8250_dma.c b/drivers/tty/serial/8250/8250_dma.c
> > index 148ffe4..189ae3c 100644
> > --- a/drivers/tty/serial/8250/8250_dma.c
> > +++ b/drivers/tty/serial/8250/8250_dma.c
> > @@ -36,8 +36,7 @@ static void __dma_tx_complete(void *param)
> > if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
> > uart_write_wakeup(&p->port);
> >
> > - if (!uart_circ_empty(xmit) && !uart_tx_stopped(&p->port))
> > - serial8250_tx_dma(p);
> > + serial8250_tx_dma(p);
> >
> > spin_unlock_irqrestore(&p->port.lock, flags);
> > }
>
> The code in this area has changed a lot now due to some dma work added
> to this driver. Can you look at my tty-testing branch of tty.git on
> git.kernel.org and see if this is still relevant now?
Yes, it is. I will create a patch and resend soon.
Heikki, I'm not going to apply your Reviewed-by because of those changes
Greg mentioned. Please, review again when I submit it.
> If so, please
> refresh this patch and resend.
>
> thanks,
>
> greg k-h
--
Andy Shevchenko <andriy.shevchenko@intel.com>
Intel Finland Oy
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-11-06 10:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-08 12:42 [PATCH] serial: 8250_dma: call serial8250_tx_dma unconditionally Andy Shevchenko
2014-10-15 12:53 ` Heikki Krogerus
2014-11-06 3:26 ` Greg Kroah-Hartman
2014-11-06 10:32 ` Andy Shevchenko
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).