diff options
-rw-r--r-- | drivers/s390/cio/device.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index 7cd5c6812ac7..c6767f5a58b2 100644 --- a/drivers/s390/cio/device.c +++ b/drivers/s390/cio/device.c | |||
@@ -632,6 +632,14 @@ initiate_logging(struct device *dev, struct device_attribute *attr, | |||
632 | return count; | 632 | return count; |
633 | } | 633 | } |
634 | 634 | ||
635 | static ssize_t vpm_show(struct device *dev, struct device_attribute *attr, | ||
636 | char *buf) | ||
637 | { | ||
638 | struct subchannel *sch = to_subchannel(dev); | ||
639 | |||
640 | return sprintf(buf, "%02x\n", sch->vpm); | ||
641 | } | ||
642 | |||
635 | static DEVICE_ATTR(chpids, 0444, chpids_show, NULL); | 643 | static DEVICE_ATTR(chpids, 0444, chpids_show, NULL); |
636 | static DEVICE_ATTR(pimpampom, 0444, pimpampom_show, NULL); | 644 | static DEVICE_ATTR(pimpampom, 0444, pimpampom_show, NULL); |
637 | static DEVICE_ATTR(devtype, 0444, devtype_show, NULL); | 645 | static DEVICE_ATTR(devtype, 0444, devtype_show, NULL); |
@@ -640,11 +648,13 @@ static DEVICE_ATTR(modalias, 0444, modalias_show, NULL); | |||
640 | static DEVICE_ATTR(online, 0644, online_show, online_store); | 648 | static DEVICE_ATTR(online, 0644, online_show, online_store); |
641 | static DEVICE_ATTR(availability, 0444, available_show, NULL); | 649 | static DEVICE_ATTR(availability, 0444, available_show, NULL); |
642 | static DEVICE_ATTR(logging, 0200, NULL, initiate_logging); | 650 | static DEVICE_ATTR(logging, 0200, NULL, initiate_logging); |
651 | static DEVICE_ATTR(vpm, 0444, vpm_show, NULL); | ||
643 | 652 | ||
644 | static struct attribute *io_subchannel_attrs[] = { | 653 | static struct attribute *io_subchannel_attrs[] = { |
645 | &dev_attr_chpids.attr, | 654 | &dev_attr_chpids.attr, |
646 | &dev_attr_pimpampom.attr, | 655 | &dev_attr_pimpampom.attr, |
647 | &dev_attr_logging.attr, | 656 | &dev_attr_logging.attr, |
657 | &dev_attr_vpm.attr, | ||
648 | NULL, | 658 | NULL, |
649 | }; | 659 | }; |
650 | 660 | ||