summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/pm8001/pm8001_ctl.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/scsi/pm8001/pm8001_ctl.c b/drivers/scsi/pm8001/pm8001_ctl.c
index d193961ea82f..c7e0a42c3d0d 100644
--- a/drivers/scsi/pm8001/pm8001_ctl.c
+++ b/drivers/scsi/pm8001/pm8001_ctl.c
@@ -462,6 +462,24 @@ static ssize_t pm8001_ctl_bios_version_show(struct device *cdev,
462} 462}
463static DEVICE_ATTR(bios_version, S_IRUGO, pm8001_ctl_bios_version_show, NULL); 463static DEVICE_ATTR(bios_version, S_IRUGO, pm8001_ctl_bios_version_show, NULL);
464/** 464/**
465 * event_log_size_show - event log size
466 * @cdev: pointer to embedded class device
467 * @buf: the buffer returned
468 *
469 * A sysfs read shost attribute.
470 */
471static ssize_t event_log_size_show(struct device *cdev,
472 struct device_attribute *attr, char *buf)
473{
474 struct Scsi_Host *shost = class_to_shost(cdev);
475 struct sas_ha_struct *sha = SHOST_TO_SAS_HA(shost);
476 struct pm8001_hba_info *pm8001_ha = sha->lldd_ha;
477
478 return snprintf(buf, PAGE_SIZE, "%d\n",
479 pm8001_ha->main_cfg_tbl.pm80xx_tbl.event_log_size);
480}
481static DEVICE_ATTR_RO(event_log_size);
482/**
465 * pm8001_ctl_aap_log_show - IOP event log 483 * pm8001_ctl_aap_log_show - IOP event log
466 * @cdev: pointer to embedded class device 484 * @cdev: pointer to embedded class device
467 * @buf: the buffer returned 485 * @buf: the buffer returned
@@ -796,6 +814,7 @@ struct device_attribute *pm8001_host_attrs[] = {
796 &dev_attr_max_sg_list, 814 &dev_attr_max_sg_list,
797 &dev_attr_sas_spec_support, 815 &dev_attr_sas_spec_support,
798 &dev_attr_logging_level, 816 &dev_attr_logging_level,
817 &dev_attr_event_log_size,
799 &dev_attr_host_sas_address, 818 &dev_attr_host_sas_address,
800 &dev_attr_bios_version, 819 &dev_attr_bios_version,
801 &dev_attr_ib_log, 820 &dev_attr_ib_log,