linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] serial: core: fix broken console after suspend
@ 2023-04-05 11:15 Lukasz Majczak
  2023-04-05 11:15 ` [PATCH v2 1/2] serial: core: preserve cflags, ispeed and ospeed Lukasz Majczak
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lukasz Majczak @ 2023-04-05 11:15 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby
  Cc: linux-serial, linux-kernel, upstream, Lukasz Majczak

This is v2 of a patch[1].
v1->v2:
* Fixed typos in commit message
* Tested[2] patch "serial: core: preserve cflags, ispeed and ospeed" on all
  current LTS kernels (4.14, 4.19, 5.4, 5.10, 5.15, 6.1) and on top of
  6.3-rc5 with positive results - console was working after resume
* During tests another issue was observed  on 6.1+ - FIFO not enabled after
  resume - and an additional change was needed ("serial: core: enable
  FIFO after resume")
* Test procedure:
  1) ensure the console output is ok
  2) suspend device with "echo freeze > /sys/power/state"
     (/sys/module/printk/parameters/console_suspend == N)
  3) resume device and check the console output
  4) suspend device with "echo freeze > /sys/power/state"
     (/sys/module/printk/parameters/console_suspend == Y)
  5) resume device and check the console output

[1] https://lore.kernel.org/lkml/20230301075751.43839-1-lma@semihalf.com/
[2] Test platforms: PC with i5-8400 + GB H370M D3H
		    HP Elite c1030 Chromebook Enterprise i5-10310U

Lukasz Majczak (2):
  serial: core: preserve cflags, ispeed and ospeed
  serial: core: enable FIFO after resume

 drivers/tty/serial/serial_core.c | 57 +++++++++++++++-----------------
 1 file changed, 27 insertions(+), 30 deletions(-)

-- 
2.40.0.577.gac1e443424-goog


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

end of thread, other threads:[~2023-05-10 11:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-05 11:15 [PATCH v2 0/2] serial: core: fix broken console after suspend Lukasz Majczak
2023-04-05 11:15 ` [PATCH v2 1/2] serial: core: preserve cflags, ispeed and ospeed Lukasz Majczak
2023-04-05 11:15 ` [PATCH v2 2/2] serial: core: enable FIFO after resume Lukasz Majczak
2023-05-10 11:43   ` Ilpo Järvinen
2023-05-10  6:10 ` [PATCH v2 0/2] serial: core: fix broken console after suspend Lukasz Majczak
2023-05-10  6:35   ` Greg Kroah-Hartman

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