public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] cdrom: gdrom: fix block I/O and capacity setting
@ 2026-04-19 16:28 Florian Fuchs
  2026-04-19 16:28 ` [PATCH v2 1/2] cdrom: gdrom: replace port I/O with MMIO accessors Florian Fuchs
  2026-04-19 16:28 ` [PATCH v2 2/2] cdrom: gdrom: update gendisk capacity on open Florian Fuchs
  0 siblings, 2 replies; 8+ messages in thread
From: Florian Fuchs @ 2026-04-19 16:28 UTC (permalink / raw)
  To: linux-sh, John Paul Adrian Glaubitz, Artur Rojek
  Cc: Adrian McMenamin, linux-kernel, Florian Fuchs

Hi all,

This series fixes a gdrom driver Oops due to bad MMIO register access and
fixes the missing updates of the block layer gendisk capacity that
prevented ISO9660 mounts from working.

The change was tested on real Sega Dreamcast devices (PAL-E, NTSC-J,
NTSC-U) with physical CD-R discs and with GDEMU emulated discs. Before:
Oops on mount and an unusable drive. After: Successfully able to mount
and use the inserted medium.

Thanks,
Florian
---
v1->v2: for "cdrom: gdrom: replace port I/O with MMIO accessors": Don't
	use helper functions with io.*_rep(), but writesw() and readsw()
	local in the respective functions. Improved failure case of
	gdrom_update_capacity() in gdrom_bdops_open().

v1: https://lore.kernel.org/linux-sh/20260405082330.4104672-1-fuchsfl@gmail.com/

Florian Fuchs (2):
  cdrom: gdrom: replace port I/O with MMIO accessors
  cdrom: gdrom: update gendisk capacity on open

 drivers/cdrom/gdrom.c | 33 +++++++++++++++++++++++++++++----
 1 file changed, 29 insertions(+), 4 deletions(-)


base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
-- 
2.43.0


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

end of thread, other threads:[~2026-04-20 12:29 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-19 16:28 [PATCH v2 0/2] cdrom: gdrom: fix block I/O and capacity setting Florian Fuchs
2026-04-19 16:28 ` [PATCH v2 1/2] cdrom: gdrom: replace port I/O with MMIO accessors Florian Fuchs
2026-04-19 16:50   ` Artur Rojek
2026-04-20 10:20   ` Adrian McMenamin
2026-04-20 11:01     ` John Paul Adrian Glaubitz
2026-04-20 12:29   ` Adrian McMenamin
2026-04-19 16:28 ` [PATCH v2 2/2] cdrom: gdrom: update gendisk capacity on open Florian Fuchs
2026-04-19 16:59   ` Artur Rojek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox