diff options
| author | Damien Le Moal <dlemoal@kernel.org> | 2026-09-08 18:03:00 +0900 |
|---|---|---|
| committer | Martin K. Petersen (Oracle) <mkp@kernel.org> | 2026-09-16 10:42:48 -0400 |
| commit | 3f94a6f129bf5bf2e634049d438b8794e019c17f (patch) | |
| tree | 0ac0fc780be874b575a1fda271a01801ce4bb4fe /tools/perf/scripts/python | |
| parent | 1b7ea7bb198e73a5237d3799187e46fe2b818ef5 (diff) | |
| download | linux-next-3f94a6f129bf5bf2e634049d438b8794e019c17f.tar.gz linux-next-3f94a6f129bf5bf2e634049d438b8794e019c17f.zip | |
scsi: hpsa: Use combined sense codes
Refactor the hpsa driver to 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.
The function decode_sense_data() is also modified to take a pointer to a
16-bit sense_code variable in place of the two pointers to the additional
sense code and its code qualifier. The local definitions of ASCs and ASCQs
are deleted too.
No functional change intended, but the function hpsa_volume_offline() was
checking only the addditional sense code qualifier with checking the
additional sense code. This change assumes that the intended additional
sense code to check is ASC_LU_NOT_READY.
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Hannes Reinecke <hare@kernel.org>
Acked-by: Don Brace <don.brace@microchip.com>
Link: https://patch.msgid.link/20260908090308.1085097-33-dlemoal@kernel.org
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
