s390/cio: don't register chpids in reserved state
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Wed, 12 Oct 2016 09:14:31 +0000 (11:14 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 17 Oct 2016 09:25:25 +0000 (11:25 +0200)
commit179a98cba11b057d9f1cc70cd2a8831f9e9a06e6
tree1707c70f64e4c576391ed1e949067499ba2c9cce
parent12e721964e7feb555c3ee499a3f85c194d3d36ea
s390/cio: don't register chpids in reserved state

During IPL we register all chpids that are not in the unrecognized
state. This includes chpids that are not usable and chpids for which
the state could not be obtained.

Change that to only register chpids in the configured (usable) or
standby (usable after a configure operation) state. All other chpids
could only be made available by external control for which we would
receive machine checks.

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>
drivers/s390/cio/chp.c