Commit c08f294a authored by Cornelia Huck's avatar Cornelia Huck Committed by Martin Schwidefsky

[S390] cio: Use ccw_device_set_notoper().

Use ccw_device_set_notoper() (which also deletes the device
timer and disables the subchannel) instead of simply setting
the state to DEV_STATE_NOT_OPER in the generic not operational
handling code. This prevents unexpected interrupts popping up
for devices that are deemed not operational.
Signed-off-by: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent ed04b892
...@@ -728,7 +728,7 @@ static void ccw_device_generic_notoper(struct ccw_device *cdev, ...@@ -728,7 +728,7 @@ static void ccw_device_generic_notoper(struct ccw_device *cdev,
{ {
struct subchannel *sch; struct subchannel *sch;
cdev->private->state = DEV_STATE_NOT_OPER; ccw_device_set_notoper(cdev);
sch = to_subchannel(cdev->dev.parent); sch = to_subchannel(cdev->dev.parent);
css_schedule_eval(sch->schid); css_schedule_eval(sch->schid);
} }
......
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