]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[S390] cio: online_store - trigger recognition for boxed devices
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Tue, 31 Mar 2009 17:16:07 +0000 (19:16 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 31 Mar 2009 17:17:07 +0000 (19:17 +0200)
Start a new device recognition if someone writes to sysfs online attribute
of a boxed ccw device. The current test will fail, since cu_type != 0
for devices which were recognized before.

Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/device.c

index e47aa3f0476938d81dae726df6968d6c91930e76..35441fa16be1de86dcb72dd02d8e319da458edde 100644 (file)
@@ -468,7 +468,7 @@ static int online_store_recog_and_online(struct ccw_device *cdev)
        int ret;
 
        /* Do device recognition, if needed. */
-       if (cdev->id.cu_type == 0) {
+       if (cdev->private->state == DEV_STATE_BOXED) {
                ret = ccw_device_recognition(cdev);
                if (ret) {
                        CIO_MSG_EVENT(0, "Couldn't start recognition "