diff --git a/patches.suse/scsi-smartpqi-Change-sysfs-raid_level-attribute-to-N.patch b/patches.suse/scsi-smartpqi-Change-sysfs-raid_level-attribute-to-N.patch new file mode 100644 index 0000000..4295597 --- /dev/null +++ b/patches.suse/scsi-smartpqi-Change-sysfs-raid_level-attribute-to-N.patch @@ -0,0 +1,33 @@ +From: Kevin Barnett +Date: Tue, 8 Nov 2022 13:21:53 -0600 +Subject: scsi: smartpqi: Change sysfs raid_level attribute to N/A for + controllers +Patch-mainline: v6.2-rc1 +Git-commit: cbe42ac15698a23b204a9b5c66eb0067b22cbd42 +References: bsc#1207315 + +Change the sysfs raid_level attribute from "RAID-0" to N/A. + +Reviewed-by: Scott Benesh +Reviewed-by: Scott Teel +Reviewed-by: Mike McGowan +Signed-off-by: Kevin Barnett +Signed-off-by: Don Brace +Link: https://lore.kernel.org/r/166793531357.322537.8639138137605612362.stgit@brunhilda +Signed-off-by: Martin K. Petersen +Acked-by: Martin Wilck +--- + drivers/scsi/smartpqi/smartpqi_init.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/drivers/scsi/smartpqi/smartpqi_init.c ++++ b/drivers/scsi/smartpqi/smartpqi_init.c +@@ -7255,7 +7255,7 @@ static ssize_t pqi_raid_level_show(struc + return -ENODEV; + } + +- if (pqi_is_logical_device(device)) ++ if (pqi_is_logical_device(device) && device->devtype == TYPE_DISK) + raid_level = pqi_raid_level_to_string(device->raid_level); + else + raid_level = "N/A"; diff --git a/series.conf b/series.conf index 8e630d6..1f16ae2 100644 --- a/series.conf +++ b/series.conf @@ -36434,6 +36434,7 @@ patches.suse/scsi-smartpqi-Convert-to-host_tagset.patch patches.suse/scsi-smartpqi-Add-new-controller-PCI-IDs.patch patches.suse/scsi-smartpqi-Correct-max-LUN-number.patch + patches.suse/scsi-smartpqi-Change-sysfs-raid_level-attribute-to-N.patch patches.suse/scsi-scsi_debug-Fix-a-warning-in-resp_write_scat.patch patches.suse/scsi-lpfc-Use-memset_startat-helper.patch patches.suse/scsi-lpfc-Fix-WQ-CQ-EQ-resource-check.patch