Commit 99f6a570 authored by Sebastian Ott's avatar Sebastian Ott Committed by Martin Schwidefsky

[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: default avatarSebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent b5cd99e6
...@@ -468,7 +468,7 @@ static int online_store_recog_and_online(struct ccw_device *cdev) ...@@ -468,7 +468,7 @@ static int online_store_recog_and_online(struct ccw_device *cdev)
int ret; int ret;
/* Do device recognition, if needed. */ /* Do device recognition, if needed. */
if (cdev->id.cu_type == 0) { if (cdev->private->state == DEV_STATE_BOXED) {
ret = ccw_device_recognition(cdev); ret = ccw_device_recognition(cdev);
if (ret) { if (ret) {
CIO_MSG_EVENT(0, "Couldn't start recognition " CIO_MSG_EVENT(0, "Couldn't start recognition "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment