dect
/
linux-2.6
Archived
13
0
Fork 0

[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>
This commit is contained in:
Sebastian Ott 2009-03-31 19:16:07 +02:00 committed by Martin Schwidefsky
parent b5cd99e6b0
commit 99f6a570ee
1 changed files with 1 additions and 1 deletions

View 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 "