Skip to contentSkip to conversation

tty: serial: sc16is7xx: implemented our own oneshot-like handling

PATCH Maarten Brock 2 participants 2 messages Mar 13, 2016 – Mar 14, 2016 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

I also wonder why this driver doesn't use threaded interrupts, just like the MAX310x driver it is based upon.

Maarten

Quoted 9 lines

This driver should use a threaded interrupt instead of trying to emulate it via dis/enable_irq and a worker thread.

Then you simply call c16is7xx_port_irq() right from the interrupt routine and the core code deals with the interrupt mask/unmask automatically.

Thanks,

tglx

#1 lore raw
Quoted 4 lines · Maarten Brock

I also wonder why this driver doesn't use threaded interrupts, just like the MAX310x driver it is based upon.

Maarten

Me too.. :-) But both I and Sebastian Andrzej Siewior have proposed a PATCH for that but it was turned down.

Quoted 11 lines
Quoted 11 lines

This driver should use a threaded interrupt instead of trying to emulate it via dis/enable_irq and a worker thread.

Then you simply call c16is7xx_port_irq() right from the interrupt routine and the core code deals with the interrupt mask/unmask automatically.

Thanks,

tglx

Remember not to top post :-) and use a proper mail client that uses In-Reply-To...

/Sean