All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] tty: serial: sc16is7xx: use threaded interrupts instead of homegrow
@ 2016-03-09 14:06 Maarten Brock
  0 siblings, 0 replies; 19+ messages in thread
From: Maarten Brock @ 2016-03-09 14:06 UTC (permalink / raw)
  To: Jakub Kicinski, Sean Nyekjær
  Cc: Josh Cartwright, Sebastian Andrzej Siewior, Greg Kroah-Hartman,
	linux-serial, linux-rt-users, Jon Ringle, Thomas Gleixner

> On Wed, 9 Mar 2016 08:03:06 +0100, Sean Nyekjær wrote:
> > On 2016-03-08 22:18, Jakub Kicinski wrote:
> > > On Mon, 7 Mar 2016 10:58:09 -0600, Josh Cartwright wrote:
> > >>> I got lost here. Where do we stand here now?
> > >> I understood the comment from Kuba to mean that he would be
> > >> implementing the disable_irq()/enable_irq() idea above to
> > >> fix all the problems with this driver.
> > >>
> > >> Kuba- did I read that right?
> > > I was hoping Sean or someone else would take up this task ;)
> > Yes i could try :-) At least i have a working setup with the hardware.
> > >
> > > It should be a pretty simple patch.
> > >
> > > Kuba
> > I not entirely sure what i have to do...
> > - Reenable the ONE_SHOT
> > - Disable irq when running in the loop, and enable when returning?
> > - Implement threaded irq?
> > 
> > /Sean
> 
> Do not reenable ONE_SHOT.  Disable interrupt (disable_irq_nosync())
> in sc16is7xx_irq() and reenable at the end of sc16is7xx_ist().
> I think reenabling at the end of sc16is7xx_ist() is fine since it's a
> level triggered IRQ.

What do you mean, it's level triggered? How do you know? The irq is
requested with either 0 or IRQF_TRIGGER_FALLING for irqflags. I don't
see anywhere where it would be configured IRQF_TRIGGER_LOW.

Maarten
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2016-03-09 14:29 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <56CDCCE6.5020801@prevas.dk>
2016-02-24 17:39 ` sc16is7xx: a lot of time is spend in sc16is7xx_port_irq Sean Nyekjær
2016-02-24 17:39   ` Sean Nyekjær
2016-02-24 22:35   ` Josh Cartwright
2016-02-26 11:43     ` Sebastian Andrzej Siewior
2016-02-26 11:48       ` [PATCH] tty: serial: sc16is7xx: use threaded interrupts instead of homegrow Sebastian Andrzej Siewior
2016-02-26 14:34         ` Kuba Kicinski
2016-02-26 16:52           ` Josh Cartwright
2016-02-26 18:26             ` Kuba Kicinski
2016-02-26 19:00               ` Josh Cartwright
2016-03-07 16:41                 ` Sebastian Andrzej Siewior
2016-03-07 16:58                   ` Josh Cartwright
2016-03-07 17:22                     ` Sean Nyekjær
2016-03-08 21:18                     ` Jakub Kicinski
2016-03-09  7:03                       ` Sean Nyekjær
2016-03-09  7:03                         ` Sean Nyekjær
2016-03-09 11:13                         ` Jakub Kicinski
2016-03-09 11:13                           ` Jakub Kicinski
2016-03-09 12:04                           ` Sebastian Andrzej Siewior
2016-03-09 14:06 Maarten Brock

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.