All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/6] LSR flag preservation improvements
@ 2022-06-06 13:11 Ilpo Järvinen
  2022-06-06 13:11 ` [PATCH v2 1/6] serial: 8250: Store to lsr_save_flags after lsr read Ilpo Järvinen
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Ilpo Järvinen @ 2022-06-06 13:11 UTC (permalink / raw)
  To: linux-serial, Greg KH, Jiri Slaby
  Cc: Uwe Kleine-König, Ilpo Järvinen

Note to Greg: the first patch of this series is the fix I submitted
earlier but it was not yet applied as the merge window was about to
begin at that point (thus, using v2 to differentiate, the rest of the
series have not been sent earlier).

Improve LSR flag preservation. Not all devices preserve all LSR flags
on read. Therefore, the non-permanent flags must be stored until
consumed. 8250_port has handled this for some of the reads (but not
all). Drivers not so much but it's unclear to me which of the devices
actually clear flags on read so this series only does per driver fixes
for DW.

Ilpo Järvinen (6):
  serial: 8250: Store to lsr_save_flags after lsr read
  serial: 8250: Create serial_lsr_in()
  serial: 8250: Get preserved flags using serial_lsr_in()
  serial: 8250: Adjust misleading LSR related comment
  serial: 8250_dw: Use serial_lsr_in() in dw8250_handle_irq()
  serial: 8250_dw: Store LSR into lsr_saved_flags in
    dw8250_tx_wait_empty()

 drivers/tty/serial/8250/8250.h      | 20 ++++++++++++++++++++
 drivers/tty/serial/8250/8250_core.c |  3 +--
 drivers/tty/serial/8250/8250_dw.c   |  7 +++++--
 drivers/tty/serial/8250/8250_port.c | 24 +++++++++++-------------
 4 files changed, 37 insertions(+), 17 deletions(-)

-- 
2.30.2


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

end of thread, other threads:[~2022-06-07 10:59 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-06 13:11 [PATCH v2 0/6] LSR flag preservation improvements Ilpo Järvinen
2022-06-06 13:11 ` [PATCH v2 1/6] serial: 8250: Store to lsr_save_flags after lsr read Ilpo Järvinen
2022-06-06 13:41   ` Ilpo Järvinen
2022-06-06 14:09     ` Andy Shevchenko
2022-06-06 16:52       ` Ilpo Järvinen
2022-06-06 17:01         ` Andy Shevchenko
2022-06-06 19:40           ` Uwe Kleine-König
2022-06-06 20:38             ` Andy Shevchenko
2022-06-07  5:58               ` Uwe Kleine-König
2022-06-07 10:09                 ` Andy Shevchenko
2022-06-07 10:32                   ` Uwe Kleine-König
2022-06-07 10:54                     ` Andy Shevchenko
2022-06-06 13:11 ` [PATCH v2 2/6] serial: 8250: Create serial_lsr_in() Ilpo Järvinen
2022-06-06 13:11 ` [PATCH v2 3/6] serial: 8250: Get preserved flags using serial_lsr_in() Ilpo Järvinen
2022-06-06 13:11 ` [PATCH v2 4/6] serial: 8250: Adjust misleading LSR related comment Ilpo Järvinen
2022-06-06 13:11 ` [PATCH v2 5/6] serial: 8250_dw: Use serial_lsr_in() in dw8250_handle_irq() Ilpo Järvinen
2022-06-06 13:11 ` [PATCH v2 6/6] serial: 8250_dw: Store LSR into lsr_saved_flags in dw8250_tx_wait_empty() Ilpo Järvinen

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.