diff options
author | Sebastian Ott <sebott@linux.vnet.ibm.com> | 2009-03-31 13:16:07 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-03-31 13:17:07 -0400 |
commit | 99f6a570eedc885675b6aa36b7acdbdcc3a7f55b (patch) | |
tree | 5695c53060a59c00a2ba093264b2342ed56835d1 /drivers/s390/cio | |
parent | b5cd99e6b002776c0e946f38292adbb0258b7983 (diff) |
[S390] cio: online_store - trigger recognition for boxed devices
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>
Diffstat (limited to 'drivers/s390/cio')
-rw-r--r-- | drivers/s390/cio/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/cio/device.c b/drivers/s390/cio/device.c index e47aa3f04769..35441fa16be1 100644 --- a/drivers/s390/cio/device.c +++ b/drivers/s390/cio/device.c | |||
@@ -468,7 +468,7 @@ static int online_store_recog_and_online(struct ccw_device *cdev) | |||
468 | int ret; | 468 | int ret; |
469 | 469 | ||
470 | /* Do device recognition, if needed. */ | 470 | /* Do device recognition, if needed. */ |
471 | if (cdev->id.cu_type == 0) { | 471 | if (cdev->private->state == DEV_STATE_BOXED) { |
472 | ret = ccw_device_recognition(cdev); | 472 | ret = ccw_device_recognition(cdev); |
473 | if (ret) { | 473 | if (ret) { |
474 | CIO_MSG_EVENT(0, "Couldn't start recognition " | 474 | CIO_MSG_EVENT(0, "Couldn't start recognition " |