Thread (8 messages) 8 messages, 4 authors, 2026-01-17

Re: [PATCH v2 0/8] scsi: Make use of bus callbacks

From: "Martin K. Petersen" <martin.petersen@oracle.com>
Date: 2026-01-17 04:37:36
Also in: linux-mediatek, linux-scsi

On Fri, 19 Dec 2025 10:25:29 +0100, Uwe Kleine-König wrote:
this is v2 of the series to make the scsi subsystem stop using the
callbacks .probe(), .remove() and .shutdown() of struct device_driver.
Instead use their designated alternatives in struct bus_type.

The eventual goal is to drop the callbacks from struct device_driver.

The 2nd patch introduces some legacy handling for drivers still using
the device_driver callbacks. This results in a runtime warning (in
driver_register()). The following patches convert all in-tree drivers
(and thus fix the warnings one after another).
Conceptually this legacy handling could be dropped at the end of the
series, but I think this is a bad idea because this silently breaks
out-of-tree drivers (which also covers drivers that are currently
prepared for mainline submission) and in-tree drivers I might have
missed (though I'm convinced I catched them all). That convinces me that
keeping the legacy handling for at least one development cycle is the
right choice. I'll care for that at the latest when I remove the
callbacks from struct device_driver.

[...]
Applied to 6.20/scsi-queue, thanks!

[1/8] scsi: Pass a struct scsi_driver to scsi_{,un}register_driver()
      https://git.kernel.org/mkp/scsi/c/7d42bcea57ae
[2/8] scsi: Make use of bus callbacks
      https://git.kernel.org/mkp/scsi/c/f7d4f1bf5724
[3/8] scsi: ch: Convert to scsi bus methods
      https://git.kernel.org/mkp/scsi/c/fba333569c8a
[4/8] scsi: sd: Convert to scsi bus methods
      https://git.kernel.org/mkp/scsi/c/63b541f054e7
[5/8] scsi: ses: Convert to scsi bus methods
      https://git.kernel.org/mkp/scsi/c/a71d5deea6e9
[6/8] scsi: sr: Convert to scsi bus methods
      https://git.kernel.org/mkp/scsi/c/9ccda35df7d5
[7/8] scsi: st: Convert to scsi bus methods
      https://git.kernel.org/mkp/scsi/c/4bc2205be460
[8/8] scsi: ufs: Convert to scsi bus methods
      https://git.kernel.org/mkp/scsi/c/44859905375f

-- 
Martin K. Petersen
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help