summaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/chsc.c
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.vnet.ibm.com>2016-06-22 19:42:40 +0200
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-03-26 16:13:16 +0200
commitfcc6dd4b7b4dfc57ba19f988cfa5ac335de885d5 (patch)
tree09be12638fc83eadcfa87456ae3598f06571dd29 /drivers/s390/cio/chsc.c
parents390/cio: rename struct channel_path_desc (diff)
downloadlinux-fcc6dd4b7b4dfc57ba19f988cfa5ac335de885d5.tar.xz
linux-fcc6dd4b7b4dfc57ba19f988cfa5ac335de885d5.zip
s390/chsc: query utility strings via fmt3 channel path descriptor
Add support for format 3 channel path descriptors and use them to gather utility strings. Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/chsc.c')
-rw-r--r--drivers/s390/cio/chsc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/s390/cio/chsc.c b/drivers/s390/cio/chsc.c
index 65290e5ac854..6652a49a49b1 100644
--- a/drivers/s390/cio/chsc.c
+++ b/drivers/s390/cio/chsc.c
@@ -915,6 +915,8 @@ int chsc_determine_channel_path_desc(struct chp_id chpid, int fmt, int rfmt,
return -EINVAL;
if ((rfmt == 2) && !css_general_characteristics.cib)
return -EINVAL;
+ if ((rfmt == 3) && !css_general_characteristics.util_str)
+ return -EINVAL;
memset(page, 0, PAGE_SIZE);
scpd_area = page;
@@ -963,6 +965,7 @@ out: \
chsc_det_chp_desc(0, 0)
chsc_det_chp_desc(1, 1)
+chsc_det_chp_desc(3, 0)
static void
chsc_initialize_cmg_chars(struct channel_path *chp, u8 cmcv,