All of lore.kernel.org
 help / color / mirror / Atom feed
* Best practise for a polling device driver ?
@ 2017-06-29 12:04 Enrico Weigelt, metux IT consult
  0 siblings, 0 replies; only message in thread
From: Enrico Weigelt, metux IT consult @ 2017-06-29 12:04 UTC (permalink / raw)
  To: linux-kernel

Hi folks,

I'm currently writing a driver for an (pseudo-)serial device
(actually, a bunch of HW fifo's, which look like serial controllers
to the host), which only supports polling, no interrupts.

So far, I'm just using a kthread in a loop, but that would have to
run w/ high priority sleep very short (needs to transfer several
MB/s on a am33xx), so probably not a good idea.

Another option could be using timers for just looking at the status
registers and issue sw interrupts, which are then handled just like
the w/ the usual interrupt-driven serial ports (IOW: mimic an
interrupt controller).

What do you folks thinkt about that ?


thx.
--mtx

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-06-29 12:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-29 12:04 Best practise for a polling device driver ? Enrico Weigelt, metux IT consult

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.