Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142079
b: refs/heads/master
c: fbcbb5d
h: refs/heads/master
i:
  142077: 7ef1aa6
  142075: 625366e
  142071: b48f8fa
  142063: e3d8746
  142047: 5f727cf
  142015: ecf7718
  141951: 08037d3
  141823: 42eb964
v: v3
  • Loading branch information
Lalit Chandivade authored and James Bottomley committed Apr 3, 2009
1 parent 8364f68 commit 6909a86
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ddb9b12632ab28460c281d50963bbe3eeda5984a
refs/heads/master: fbcbb5d0cf69ba8b59028ec3c5b9f9ff04409b88
13 changes: 13 additions & 0 deletions trunk/drivers/scsi/qla2xxx/qla_attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,16 @@ qla2x00_phy_version_show(struct device *dev, struct device_attribute *attr,
ha->phy_version[0], ha->phy_version[1], ha->phy_version[2]);
}

static ssize_t
qla2x00_flash_block_size_show(struct device *dev,
struct device_attribute *attr, char *buf)
{
scsi_qla_host_t *vha = shost_priv(class_to_shost(dev));
struct qla_hw_data *ha = vha->hw;

return snprintf(buf, PAGE_SIZE, "0x%x\n", ha->fdt_block_size);
}

static DEVICE_ATTR(driver_version, S_IRUGO, qla2x00_drvr_version_show, NULL);
static DEVICE_ATTR(fw_version, S_IRUGO, qla2x00_fw_version_show, NULL);
static DEVICE_ATTR(serial_num, S_IRUGO, qla2x00_serial_num_show, NULL);
Expand All @@ -954,6 +964,8 @@ static DEVICE_ATTR(total_isp_aborts, S_IRUGO, qla2x00_total_isp_aborts_show,
NULL);
static DEVICE_ATTR(mpi_version, S_IRUGO, qla2x00_mpi_version_show, NULL);
static DEVICE_ATTR(phy_version, S_IRUGO, qla2x00_phy_version_show, NULL);
static DEVICE_ATTR(flash_block_size, S_IRUGO, qla2x00_flash_block_size_show,
NULL);

struct device_attribute *qla2x00_host_attrs[] = {
&dev_attr_driver_version,
Expand All @@ -975,6 +987,7 @@ struct device_attribute *qla2x00_host_attrs[] = {
&dev_attr_total_isp_aborts,
&dev_attr_mpi_version,
&dev_attr_phy_version,
&dev_attr_flash_block_size,
NULL,
};

Expand Down

0 comments on commit 6909a86

Please sign in to comment.