linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ps2-gpio: use ktime for IRQ timekeeping
@ 2022-02-15 16:02 Danilo Krummrich
  2022-02-15 16:02 ` [PATCH 1/4] input: ps2-gpio: refactor struct ps2_gpio_data Danilo Krummrich
                   ` (4 more replies)
  0 siblings, 5 replies; 9+ messages in thread
From: Danilo Krummrich @ 2022-02-15 16:02 UTC (permalink / raw)
  To: dmitry.torokhov, linux-input, linux-kernel; +Cc: linus.walleij

Changes since v1
================
  - add patch to refactor struct ps2_gpio_data for clear separation between
    RX and TX
  - make all variables for IRQ timekeeping per-port and initialize them in
    ps2_gpio_open()

This patch series implements the usage of ktime for IRQ timekeeping to
overcome:

(1) The resolution limitations of jiffies.
(2) Potential spurious IRQs generated by gpio controllers.

Besides that, based on the newly implemented timekeeping, it fixes a wrongly
suspected extra clock cycle for TX transfers and a race condition when
starting an immediate TX transfer based on data received from an RX transfer.

Danilo Krummrich (4):
      input: ps2-gpio: refactor struct ps2_gpio_data
      input: ps2-gpio: use ktime for IRQ timekeeping
      input: ps2-gpio: remove tx timeout from ps2_gpio_irq_tx()
      input: ps2-gpio: don't send rx data before the stop bit

 drivers/input/serio/ps2-gpio.c | 180 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------
 1 file changed, 116 insertions(+), 64 deletions(-)



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

end of thread, other threads:[~2022-02-15 22:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-15 16:02 ps2-gpio: use ktime for IRQ timekeeping Danilo Krummrich
2022-02-15 16:02 ` [PATCH 1/4] input: ps2-gpio: refactor struct ps2_gpio_data Danilo Krummrich
2022-02-15 21:54   ` Dmitry Torokhov
2022-02-15 22:23     ` Danilo Krummrich
2022-02-15 22:38       ` Dmitry Torokhov
2022-02-15 16:02 ` [PATCH 2/4] input: ps2-gpio: use ktime for IRQ timekeeping Danilo Krummrich
2022-02-15 16:02 ` [PATCH 3/4] input: ps2-gpio: remove tx timeout from ps2_gpio_irq_tx() Danilo Krummrich
2022-02-15 16:02 ` [PATCH 4/4] input: ps2-gpio: don't send rx data before the stop bit Danilo Krummrich
2022-02-15 22:56 ` ps2-gpio: use ktime for IRQ timekeeping Dmitry Torokhov

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