public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: "Uwe Kleine-König" <u.kleine-koenig@baylibre.com>
To: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>,
	"Kai Mäkisara" <Kai.Makisara@kolumbus.fi>,
	"Alim Akhtar" <alim.akhtar@samsung.com>,
	"Avri Altman" <avri.altman@wdc.com>,
	"Bart Van Assche" <bvanassche@acm.org>,
	"Peter Wang" <peter.wang@mediatek.com>,
	"Bean Huo" <beanhuo@micron.com>,
	"Adrian Hunter" <adrian.hunter@intel.com>,
	"Bao D. Nguyen" <quic_nguyenb@quicinc.com>,
	"Can Guo" <quic_cang@quicinc.com>,
	"Manivannan Sadhasivam" <mani@kernel.org>,
	linux-scsi@vger.kernel.org
Subject: [PATCH 0/8] scsi: Make use of bus callbacks
Date: Tue,  9 Dec 2025 21:45:01 +0100	[thread overview]
Message-ID: <cover.1765312062.git.u.kleine-koenig@baylibre.com> (raw)

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
-- 
2.47.3


             reply	other threads:[~2025-12-09 20:45 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-09 20:45 Uwe Kleine-König [this message]
2025-12-09 20:45 ` [PATCH 1/8] scsi: Pass a struct scsi_driver to scsi_{,un}register_driver() Uwe Kleine-König
2025-12-10 13:14   ` Peter Wang (王信友)
2025-12-09 20:45 ` [PATCH 2/8] scsi: Make use of bus callbacks Uwe Kleine-König
2025-12-09 20:59   ` Bart Van Assche
2025-12-09 21:22     ` Uwe Kleine-König
2025-12-10  5:26       ` Christoph Hellwig
2025-12-10  6:56         ` Uwe Kleine-König
2025-12-10  7:04           ` Christoph Hellwig
2025-12-10 10:34             ` Uwe Kleine-König
2025-12-09 21:00   ` Bart Van Assche
2025-12-09 21:26     ` Uwe Kleine-König
2025-12-09 20:45 ` [PATCH 3/8] scsi: ch: Convert to scsi bus methods Uwe Kleine-König
2025-12-09 20:45 ` [PATCH 4/8] scsi: sd: " Uwe Kleine-König
2025-12-10  9:20   ` kernel test robot
2025-12-10  9:50     ` Uwe Kleine-König
2025-12-15  4:10   ` kernel test robot
2025-12-09 20:45 ` [PATCH 5/8] scsi: ses: " Uwe Kleine-König
2025-12-09 20:45 ` [PATCH 6/8] scsi: sr: " Uwe Kleine-König
2025-12-09 20:45 ` [PATCH 7/8] scsi: st: " Uwe Kleine-König
2025-12-09 20:45 ` [PATCH 8/8] scsi: ufs: " Uwe Kleine-König
2025-12-10 13:14   ` Peter Wang (王信友)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1765312062.git.u.kleine-koenig@baylibre.com \
    --to=u.kleine-koenig@baylibre.com \
    --cc=James.Bottomley@HansenPartnership.com \
    --cc=Kai.Makisara@kolumbus.fi \
    --cc=adrian.hunter@intel.com \
    --cc=alim.akhtar@samsung.com \
    --cc=avri.altman@wdc.com \
    --cc=beanhuo@micron.com \
    --cc=bvanassche@acm.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mani@kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=peter.wang@mediatek.com \
    --cc=quic_cang@quicinc.com \
    --cc=quic_nguyenb@quicinc.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox