u-boot.lists.denx.de archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/15] scsi: Convert sandbox SCSI to driver model
@ 2022-08-27 15:14 Simon Glass
  2022-08-27 15:14 ` [PATCH 01/15] scsi: Tidy up comments for struct scsi_cmd Simon Glass
                   ` (14 more replies)
  0 siblings, 15 replies; 19+ messages in thread
From: Simon Glass @ 2022-08-27 15:14 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Simon Glass, Andrew Scull, Etienne Carriere, Heinrich Schuchardt,
	Marek Behún, Marek Vasut, Mario Six, Michal Simek,
	Patrick Delaunay, Philippe Reynes, Ramon Fried, Rasmus Villemoes,
	Rick Chen, Rob Herring, Sean Anderson, Sean Anderson,
	Stefan Roese

This series moves sandbox over to use driver model for SCSI. It takes the
opportunity to use common code with the USB flash driver.

This is mostly refactoring, but there is a small amount of new code,
notably a test which checks that data can be read from a SCSI device.


Simon Glass (15):
  scsi: Tidy up comments for struct scsi_cmd
  sandbox: usb: Rename transfer_len in protocol struct
  scsi: Move cmd_phase enum to the header
  scsi: Move core emulation state into a new struct
  sandbox: Move buffer to scsi_emul_info
  scsi: Move vendor/product info into the shared struct
  sandbox: scsi: Move block size into shared struct
  sandbox: scsi: Move file size into shared struct
  sandbox: scsi: Move reply setup out of helper
  sandbox: scsi: Remove setup calls from handle_read()
  sandbox: scsi: Move structs to header file
  sandbox: Enable SCSI for all builds
  sandbox: scsi: Move request-handling code to scsi_emul
  sandbox: Convert to use driver model for SCSI
  sandbox: Add a test for SCSI

 arch/Kconfig                       |   1 -
 arch/sandbox/dts/sandbox.dtsi      |   4 +
 arch/sandbox/dts/test.dts          |   5 +
 configs/sandbox64_defconfig        |   6 +
 configs/sandbox_defconfig          |   1 +
 configs/sandbox_flattree_defconfig |   5 +
 configs/sandbox_noinst_defconfig   |   5 +
 configs/sandbox_spl_defconfig      |   7 +-
 configs/sandbox_vpl_defconfig      |   5 +
 drivers/scsi/Makefile              |   1 +
 drivers/scsi/sandbox_scsi.c        | 132 +++++++++++++++++-
 drivers/scsi/scsi_emul.c           |  74 +++++++++++
 drivers/usb/emul/sandbox_flash.c   | 207 ++++++++++-------------------
 include/scsi.h                     |  68 +++++++---
 include/scsi_emul.h                |  70 ++++++++++
 test/dm/Makefile                   |   1 +
 test/dm/scsi.c                     |  39 ++++++
 test/py/tests/test_ut.py           |   9 ++
 18 files changed, 478 insertions(+), 162 deletions(-)
 create mode 100644 drivers/scsi/scsi_emul.c
 create mode 100644 include/scsi_emul.h
 create mode 100644 test/dm/scsi.c

-- 
2.37.2.672.g94769d06f0-goog


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

end of thread, other threads:[~2022-08-29 14:51 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-27 15:14 [PATCH 00/15] scsi: Convert sandbox SCSI to driver model Simon Glass
2022-08-27 15:14 ` [PATCH 01/15] scsi: Tidy up comments for struct scsi_cmd Simon Glass
2022-08-29 14:49   ` Heinrich Schuchardt
2022-08-27 15:15 ` [PATCH 02/15] sandbox: usb: Rename transfer_len in protocol struct Simon Glass
2022-08-27 15:15 ` [PATCH 03/15] scsi: Move cmd_phase enum to the header Simon Glass
2022-08-29 14:50   ` Heinrich Schuchardt
2022-08-27 15:15 ` [PATCH 04/15] scsi: Move core emulation state into a new struct Simon Glass
2022-08-27 15:15 ` [PATCH 05/15] sandbox: Move buffer to scsi_emul_info Simon Glass
2022-08-27 15:15 ` [PATCH 06/15] scsi: Move vendor/product info into the shared struct Simon Glass
2022-08-27 15:15 ` [PATCH 07/15] sandbox: scsi: Move block size into " Simon Glass
2022-08-27 15:15 ` [PATCH 08/15] sandbox: scsi: Move file " Simon Glass
2022-08-27 15:15 ` [PATCH 09/15] sandbox: scsi: Move reply setup out of helper Simon Glass
2022-08-27 15:15 ` [PATCH 10/15] sandbox: scsi: Remove setup calls from handle_read() Simon Glass
2022-08-27 15:15 ` [PATCH 11/15] sandbox: scsi: Move structs to header file Simon Glass
2022-08-29 14:51   ` Heinrich Schuchardt
2022-08-27 15:15 ` [PATCH 12/15] sandbox: Enable SCSI for all builds Simon Glass
2022-08-27 15:15 ` [PATCH 13/15] sandbox: scsi: Move request-handling code to scsi_emul Simon Glass
2022-08-27 15:15 ` [PATCH 14/15] sandbox: Convert to use driver model for SCSI Simon Glass
2022-08-27 15:15 ` [PATCH 15/15] sandbox: Add a test " Simon Glass

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