From: Cornelia Huck Date: Thu, 26 Mar 2009 14:24:07 +0000 (+0100) Subject: [S390] cio: Use ccw_device_set_notoper(). X-Git-Tag: v2.6.30-rc1~659^2~55 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=c08f294a14cb4c2abbd1a9a619c2d8d07afd41e3;p=~emulex%2Finfiniband.git [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: Cornelia Huck Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/cio/device_fsm.c b/drivers/s390/cio/device_fsm.c index 301d27bf944..87b4bfca080 100644 --- a/drivers/s390/cio/device_fsm.c +++ b/drivers/s390/cio/device_fsm.c @@ -728,7 +728,7 @@ static void ccw_device_generic_notoper(struct ccw_device *cdev, { struct subchannel *sch; - cdev->private->state = DEV_STATE_NOT_OPER; + ccw_device_set_notoper(cdev); sch = to_subchannel(cdev->dev.parent); css_schedule_eval(sch->schid); }