Skip to content

Commit

Permalink
[S390] cio: online_store - trigger recognition for boxed devices
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sebastian Ott authored and Martin Schwidefsky committed Mar 31, 2009
1 parent b5cd99e commit 99f6a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/s390/cio/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 99f6a57

Please sign in to comment.