Skip to content

scsi: Make use of bus callbacks

Uwe Kleine-König linux-scsi oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8scsi: Pass a struct scsi_driver to scsi_{,un}register_driver()drivers/scsi/ch.c drivers/scsi/scsi_sysfs.c drivers/scsi/sd.c +5 more+17 -151 reply
2/8scsi: Make use of bus callbacksdrivers/scsi/scsi_sysfs.c include/scsi/scsi_driver.h+74 -28 replies
3/8scsi: ch: Convert to scsi bus methodsdrivers/scsi/ch.c+7 -70 replies
4/8scsi: sd: Convert to scsi bus methodsdrivers/scsi/sd.c+11 -101 reply
5/8scsi: ses: Convert to scsi bus methodsdrivers/scsi/ses.c+2 -90 replies
6/8scsi: sr: Convert to scsi bus methodsdrivers/scsi/sr.c+8 -90 replies
7/8scsi: st: Convert to scsi bus methodsdrivers/scsi/st.c+9 -90 replies
8/8scsi: ufs: Convert to scsi bus methodsdrivers/ufs/core/ufshcd.c+9 -91 reply

Reviews trailers per patch

2 of 8 patches have a Reviewed-by or Acked-by.

PatchPeter Wang
1/8R-b
2/8
3/8
4/8
5/8
6/8
7/8
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] scsi: Make use of bus callbacks

Hello,

there are currently two mechanisms to bind a device to a driver: struct device_driver::probe() and struct bus_type::probe(). The latter is the newer and preferred variant. This series converts the scsi subsystem to use the bus_type variant with the eventual goal to drop the device_driver variant (after all other subsystems are converted as well).

This passed an allmodconfig buildtest on amd64 and arm64. The intention is that nothing changes for users of the scsi subsystems.

Best regards
Uwe

Uwe Kleine-König (8):
scsi: Pass a struct scsi_driver to scsi_{,un}register_driver()
scsi: Make use of bus callbacks
scsi: ch: Convert to scsi bus methods
scsi: sd: Convert to scsi bus methods
scsi: ses: Convert to scsi bus methods
scsi: sr: Convert to scsi bus methods
scsi: st: Convert to scsi bus methods
scsi: ufs: Convert to scsi bus methods

 drivers/scsi/ch.c          | 18 ++++-----
 drivers/scsi/scsi_sysfs.c  | 77 ++++++++++++++++++++++++++++++++++++--
 drivers/scsi/sd.c          | 25 +++++++------
 drivers/scsi/ses.c         | 15 ++------
 drivers/scsi/sr.c          | 21 +++++------
 drivers/scsi/st.c          | 22 +++++------
 drivers/ufs/core/ufshcd.c  | 22 +++++------
 include/scsi/scsi_driver.h |  7 +++-
 8 files changed, 137 insertions(+), 70 deletions(-)

base-commit: 7d0a66e4bb9081d75c82ec4957c50034cb0ea449

Signature · 1 line
2.47.3