[S390] cio: make not operational handling consistent
authorPeter Oberparleiter <peter.oberparleiter@de.ibm.com>
Tue, 6 Oct 2009 08:34:02 +0000 (10:34 +0200)
committerMartin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com>
Tue, 6 Oct 2009 08:35:07 +0000 (10:35 +0200)
commit6afcc775d9d66fe550fad6c579f78b3c3da895b8
treefcbd29835c31ed0174025bc6991309fd6b6a0e76
parent9a332116948955bd25d122efd91feed103f0e3e4
[S390] cio: make not operational handling consistent

When a ccw device appears not operational, inform the associated
device driver and act according to the response: if the driver
wants to keep the device, put it into the disconnected state.
If not, or if there is no driver or if the device is not online,
unregister it. This approach is consistent with no-path event
handling.

Signed-off-by: Peter Oberparleiter <peter.oberparleiter@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/device.c
drivers/s390/cio/device.h
drivers/s390/cio/device_fsm.c