diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2013-04-30 11:17:34 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2013-05-02 09:50:20 -0400 |
commit | d1eb16e64f20bbb88b0949fb5203ac43b661dffe (patch) | |
tree | dd76d036ec78af56aa6e028859432ce5739b10c1 | |
parent | 0e6c83d18759e282fb4cfc19478a4217923421b3 (diff) |
s390/cio: add condev keyword to cio_ignore
Provide a 'condev' keyword to cio_ignore to (un)ignore the
CCW console device.
Reviewed-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
-rw-r--r-- | Documentation/s390/CommonIO | 11 | ||||
-rw-r--r-- | drivers/s390/cio/blacklist.c | 7 |
2 files changed, 13 insertions, 5 deletions
diff --git a/Documentation/s390/CommonIO b/Documentation/s390/CommonIO index d90a5ddb2b07..6e0f63f343b4 100644 --- a/Documentation/s390/CommonIO +++ b/Documentation/s390/CommonIO | |||
@@ -10,7 +10,7 @@ Command line parameters | |||
10 | 10 | ||
11 | * cio_ignore = device[,device[,..]] | 11 | * cio_ignore = device[,device[,..]] |
12 | 12 | ||
13 | device := {all | [!]ipldev | [!]<devno> | [!]<devno>-<devno>} | 13 | device := {all | [!]ipldev | [!]condev | [!]<devno> | [!]<devno>-<devno>} |
14 | 14 | ||
15 | The given devices will be ignored by the common I/O-layer; no detection | 15 | The given devices will be ignored by the common I/O-layer; no detection |
16 | and device sensing will be done on any of those devices. The subchannel to | 16 | and device sensing will be done on any of those devices. The subchannel to |
@@ -24,10 +24,11 @@ Command line parameters | |||
24 | device numbers (0xabcd or abcd, for 2.4 backward compatibility). If you | 24 | device numbers (0xabcd or abcd, for 2.4 backward compatibility). If you |
25 | give a device number 0xabcd, it will be interpreted as 0.0.abcd. | 25 | give a device number 0xabcd, it will be interpreted as 0.0.abcd. |
26 | 26 | ||
27 | You can use the 'all' keyword to ignore all devices. The 'ipldev' keyword can | 27 | You can use the 'all' keyword to ignore all devices. The 'ipldev' and 'condev' |
28 | be used to refer to the CCW based boot device (this is probably useful only | 28 | keywords can be used to refer to the CCW based boot device and CCW console |
29 | when combined with the '!' operator). The '!' operator will cause the I/O-layer | 29 | device respectively (these are probably useful only when combined with the '!' |
30 | to _not_ ignore a device. The command line is parsed from left to right. | 30 | operator). The '!' operator will cause the I/O-layer to _not_ ignore a device. |
31 | The command line is parsed from left to right. | ||
31 | 32 | ||
32 | For example, | 33 | For example, |
33 | cio_ignore=0.0.0023-0.0.0042,0.0.4711 | 34 | cio_ignore=0.0.0023-0.0.0042,0.0.4711 |
diff --git a/drivers/s390/cio/blacklist.c b/drivers/s390/cio/blacklist.c index 706eb9b6513f..a9fe3de2dec1 100644 --- a/drivers/s390/cio/blacklist.c +++ b/drivers/s390/cio/blacklist.c | |||
@@ -189,6 +189,13 @@ static int blacklist_parse_parameters(char *str, range_action action, | |||
189 | to_cssid = from_cssid; | 189 | to_cssid = from_cssid; |
190 | to_ssid = from_ssid; | 190 | to_ssid = from_ssid; |
191 | to = from; | 191 | to = from; |
192 | } else if (strcmp(parm, "condev") == 0) { | ||
193 | if (console_devno == -1) | ||
194 | continue; | ||
195 | |||
196 | from_cssid = to_cssid = 0; | ||
197 | from_ssid = to_ssid = 0; | ||
198 | from = to = console_devno; | ||
192 | } else { | 199 | } else { |
193 | rc = parse_busid(strsep(&parm, "-"), &from_cssid, | 200 | rc = parse_busid(strsep(&parm, "-"), &from_cssid, |
194 | &from_ssid, &from, msgtrigger); | 201 | &from_ssid, &from, msgtrigger); |