From 93df6ce96d98731c1aa74c2bf31c31bc9aa3dd5f Mon Sep 17 00:00:00 2001 From: Cornelia Huck Date: Mon, 22 Oct 2007 12:52:41 +0200 Subject: [PATCH] --- yaml --- r: 72115 b: refs/heads/master c: 5bf04b2062c5b441d7154216694fea7dc2a6a7f3 h: refs/heads/master i: 72113: 4ccef34af395fa84ccf148cbe0db9703140ac959 72111: 08e645f19aab7e106624d28ced292ef0cdfbaea1 v: v3 --- [refs] | 2 +- trunk/drivers/s390/cio/css.c | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 1f333bd64a02..b43f0fbf9873 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 054696077a6c4f9e306321d45b5762d6ea7940e1 +refs/heads/master: 5bf04b2062c5b441d7154216694fea7dc2a6a7f3 diff --git a/trunk/drivers/s390/cio/css.c b/trunk/drivers/s390/cio/css.c index 5d83dd471461..838f7ac0dc32 100644 --- a/trunk/drivers/s390/cio/css.c +++ b/trunk/drivers/s390/cio/css.c @@ -182,6 +182,15 @@ static int css_register_subchannel(struct subchannel *sch) sch->dev.bus = &css_bus_type; sch->dev.release = &css_subchannel_release; sch->dev.groups = subch_attr_groups; + /* + * We don't want to generate uevents for I/O subchannels that don't + * have a working ccw device behind them since they will be + * unregistered before they can be used anyway, so we delay the add + * uevent until after device recognition was successful. + */ + if (!cio_is_console(sch->schid)) + /* Console is special, no need to suppress. */ + sch->dev.uevent_suppress = 1; css_update_ssd_info(sch); /* make it known to the system */ ret = css_sch_device_register(sch);