aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/chsc.c
diff options
context:
space:
mode:
authorPeter Oberparleiter <peter.oberparleiter@de.ibm.com>2007-04-27 10:01:27 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2007-04-27 10:01:38 -0400
commitd120b2a4e60cc9e62e7cc5dcf049100af3745cc4 (patch)
treee598f89a784d9a1ba2938311e247c8ffb4731f31 /drivers/s390/cio/chsc.c
parentf86635fad14c4a6810cf0e08488fc9129a3b3b32 (diff)
[S390] cio: Allow 0 and 1 as input for channel path status attribute.
Channel path status can now be modified by writing '0' and '1' to the sysfs status attribute in addition to 'offline' and 'online' respectively. Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio/chsc.c')
-rw-r--r--drivers/s390/cio/chsc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/cio/chsc.c b/drivers/s390/cio/chsc.c
index bb6f876e53c2..b329851f7b55 100644
--- a/drivers/s390/cio/chsc.c
+++ b/drivers/s390/cio/chsc.c
@@ -1169,9 +1169,9 @@ chp_status_write(struct device *dev, struct device_attribute *attr, const char *
1169 if (!num_args) 1169 if (!num_args)
1170 return count; 1170 return count;
1171 1171
1172 if (!strnicmp(cmd, "on", 2)) 1172 if (!strnicmp(cmd, "on", 2) || !strcmp(cmd, "1"))
1173 error = s390_vary_chpid(cp->chpid, 1); 1173 error = s390_vary_chpid(cp->chpid, 1);
1174 else if (!strnicmp(cmd, "off", 3)) 1174 else if (!strnicmp(cmd, "off", 3) || !strcmp(cmd, "0"))
1175 error = s390_vary_chpid(cp->chpid, 0); 1175 error = s390_vary_chpid(cp->chpid, 0);
1176 else 1176 else
1177 error = -EINVAL; 1177 error = -EINVAL;