Thread (130 messages) flat view 130 messages, 5 authors, 9d ago

Re: [PATCH v2 13/40] scsi: device_handlers: hp_sw: use 16-bits defined sense codes

From: Hannes Reinecke <hare@suse.de>
Date: 2026-09-07 12:28:42
Also in: linux-s390, linux-scsi, linux-usb

On 9/3/26 5:41 AM, Damien Le Moal wrote:
Refactor the HP sw device handler driver to use the 16-bits sense_code
field of struct scsi_sense_hdr and struct scsi_failure and replace all
hard-coded additional sense codes and additional sense code qualifiers
with the enum values defined in include/scsi/scsi_sense.h. This helps with
code clarity as the sense codes being processed are easier to test and
self-documented.

No functional change intended.

Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
---
  drivers/scsi/device_handler/scsi_dh_hp_sw.c | 25 +++++++++------------
  1 file changed, 11 insertions(+), 14 deletions(-)
Reviewed-by: Hannes Reinecke <hare@kernel.org>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                  Kernel Storage Architect
hare@suse.de                                +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help