From: Cornelia Huck Date: Fri, 27 Oct 2006 10:39:17 +0000 (+0200) Subject: [S390] cio: css_probe_device() must be called enabled. X-Git-Tag: upstream/snapshot3+hdmi~36434^2~7^2~13^2~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c2b1449bd1fd73103ed5ff1a28d8f7cbc8a01b52;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git [S390] cio: css_probe_device() must be called enabled. Move css_probe_device() behind giving up the lock for the old subchannel in css_evaluate_known_subchannel() so we aren't disabled when we call it. Signed-off-by: Cornelia Huck Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/cio/css.c b/drivers/s390/cio/css.c index a2dee5b..ad7f7e1 100644 --- a/drivers/s390/cio/css.c +++ b/drivers/s390/cio/css.c @@ -271,10 +271,6 @@ static int css_evaluate_known_subchannel(struct subchannel *sch, int slow) /* Reset intparm to zeroes. */ sch->schib.pmcw.intparm = 0; cio_modify(sch); - - /* Probe if necessary. */ - if (action == UNREGISTER_PROBE) - ret = css_probe_device(sch->schid); break; case REPROBE: device_trigger_reprobe(sch); @@ -283,6 +279,9 @@ static int css_evaluate_known_subchannel(struct subchannel *sch, int slow) break; } spin_unlock_irqrestore(&sch->lock, flags); + /* Probe if necessary. */ + if (action == UNREGISTER_PROBE) + ret = css_probe_device(sch->schid); return ret; }