]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Merge patch series "scsi: scsi_debug: Changes to improve support for device types"
authorMartin K. Petersen <martin.petersen@oracle.com>
Fri, 11 Apr 2025 20:21:21 +0000 (16:21 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 11 Apr 2025 20:21:21 +0000 (16:21 -0400)
commitc728f7a15a2e99065d143c6f6673d075cf4ce8d2
tree5fe9721b971bc11f7a94fa0ace93c42a51928983
parent0af2f6be1b4281385b618cb86ad946eded089ac8
parentd19dc8d4dfca33f5957422d4a23963ee8fac12f5
Merge patch series "scsi: scsi_debug: Changes to improve support for device types"

Kai Mäkisara <Kai.Makisara@kolumbus.fi> says:

The patch set includes changes to better support different device types.

The first patch fixes two obvious typos in the existing definitions.

The second patch adds a device type mask to the command definitions (struct
opcode_info_t). This makes possible for different command definitions for
different device types and makes easy to add opcodes specific to certain
device types. The mask is 32 bits wide and the bit positions are derived
from the Peripheral Device Type field returned from INQUIRY and used in
the struct scsi_device.

In addition to the mask, the second patch adds command filtering based on
device type to command queuing and building of the response in Report
Supported Opcodes.

The third patch splits definitions of READ(6), WRITE(6) and PRE-FETCH/READ
POSITION to versions for tapes and for other devices.

The fourth patch changes obtaining device type from sdebug_ptype to
struct scsi_device->type whenever it is set correctly. This improves
support for using different device types in the same debug host.

The patch set applies to 6.15/scsi-staging

Link: https://lore.kernel.org/r/20250310155557.2872-1-Kai.Makisara@kolumbus.fi
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>