Thread (71 messages) 71 messages, 6 authors, 2023-02-03

Re: [PATCH v3 06/18] scsi: support service action in scsi_report_opcode()

From: Bart Van Assche <bvanassche@acm.org>
Date: 2023-01-24 19:38:19
Also in: linux-ide, linux-scsi

On 1/24/23 11:02, Niklas Cassel wrote:
From: Damien Le Moal <redacted>

The REPORT_SUPPORTED_OPERATION_CODES command allows checking for support
of commands that have the same opcode but different service actions,
such as READ 32 and WRITE 32. However, the current implementation of
scsi_report_opcode() only allows checking an operation code without a
service action differentiation.

Add the "sa" argument to scsi_report_opcode() to allow passing a service
action. If a non-zero service action is specified, the reporting
options field value is set to 3 to have the service action field taken
into account by the device. If no service action field is specified
(zero), the reporting options field is set to 1 as before.
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help