Hi Don,
Here are the changes I made to adjust/backport the first patch. Is this correct?
2a47834d9452 scsi: smartpqi: Enable SATA NCQ priority in sysfs
drivers/scsi/smartpqi/smartpqi_init.c @@ -7126,15 +7234,18 @@ static DEVICE_ATTR(sas_address, 0444, pqi_sas_address_show, NULL); static DEVICE_ATTR(ssd_smart_path_enabled, 0444, pqi_ssd_smart_path_enabled_show, NULL); static DEVICE_ATTR(raid_level, 0444, pqi_raid_level_show, NULL); static DEVICE_ATTR(raid_bypass_cnt, 0444, pqi_raid_bypass_cnt_show, NULL); - -static struct device_attribute *pqi_sdev_attrs[] = { - &dev_attr_lunid, - &dev_attr_unique_id, - &dev_attr_path_info, - &dev_attr_sas_address, - &dev_attr_ssd_smart_path_enabled, - &dev_attr_raid_level, - &dev_attr_raid_bypass_cnt, +static DEVICE_ATTR(sas_ncq_prio_enable, 0644, + pqi_sas_ncq_prio_enable_show, pqi_sas_ncq_prio_enable_store); + +static struct attribute *pqi_sdev_attrs[] = { + &dev_attr_lunid.attr, + &dev_attr_unique_id.attr, + &dev_attr_path_info.attr, + &dev_attr_sas_address.attr, + &dev_attr_ssd_smart_path_enabled.attr, + &dev_attr_raid_level.attr, + &dev_attr_raid_bypass_cnt.attr, + &dev_attr_sas_ncq_prio_enable.attr, NULL };
Hi Don,
Here are the changes I made to adjust/backport the first patch. Is this correct?
2a47834d9452 scsi: smartpqi: Enable SATA NCQ priority in sysfs
drivers/ scsi/smartpqi/ smartpqi_ init.c ATTR(sas_ address, 0444, pqi_sas_ address_ show, NULL); ATTR(ssd_ smart_path_ enabled, 0444, pqi_ssd_ smart_path_ enabled_ show, NULL); ATTR(raid_ level, 0444, pqi_raid_ level_show, NULL); ATTR(raid_ bypass_ cnt, 0444, pqi_raid_ bypass_ cnt_show, NULL); unique_ id, path_info, sas_address, ssd_smart_ path_enabled, raid_level, raid_bypass_ cnt, ATTR(sas_ ncq_prio_ enable, 0644, ncq_prio_ enable_ show, pqi_sas_ ncq_prio_ enable_ store); lunid.attr, unique_ id.attr, path_info. attr, sas_address. attr, ssd_smart_ path_enabled. attr, raid_level. attr, raid_bypass_ cnt.attr, sas_ncq_ prio_enable. attr,
@@ -7126,15 +7234,18 @@ static DEVICE_
static DEVICE_
static DEVICE_
static DEVICE_
-
-static struct device_attribute *pqi_sdev_attrs[] = {
- &dev_attr_lunid,
- &dev_attr_
- &dev_attr_
- &dev_attr_
- &dev_attr_
- &dev_attr_
- &dev_attr_
+static DEVICE_
+ pqi_sas_
+
+static struct attribute *pqi_sdev_attrs[] = {
+ &dev_attr_
+ &dev_attr_
+ &dev_attr_
+ &dev_attr_
+ &dev_attr_
+ &dev_attr_
+ &dev_attr_
+ &dev_attr_
NULL
};