Skip to content

Commit 2bc55ea

Browse files
cohuckVasily Gorbik
authored andcommitted
s390/cio: generate delayed uevent for vfio-ccw subchannels
The common I/O layer delays the ADD uevent for subchannels and delegates generating this uevent to the individual subchannel drivers. The vfio-ccw I/O subchannel driver, however, did not do that, and will not generate an ADD uevent for subchannels that had not been bound to a different driver (or none at all, which also triggers the uevent). Generate the ADD uevent at the end of the probe function if uevents were still suppressed for the device. Message-Id: <[email protected]> Fixes: 63f1934 ("vfio: ccw: basic implementation for vfio_ccw driver") Reviewed-by: Eric Farman <[email protected]> Signed-off-by: Cornelia Huck <[email protected]> Signed-off-by: Vasily Gorbik <[email protected]>
1 parent 05ce3e5 commit 2bc55ea

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/s390/cio/vfio_ccw_drv.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ static int vfio_ccw_sch_probe(struct subchannel *sch)
167167
if (ret)
168168
goto out_disable;
169169

170+
if (dev_get_uevent_suppress(&sch->dev)) {
171+
dev_set_uevent_suppress(&sch->dev, 0);
172+
kobject_uevent(&sch->dev.kobj, KOBJ_ADD);
173+
}
174+
170175
VFIO_CCW_MSG_EVENT(4, "bound to subchannel %x.%x.%04x\n",
171176
sch->schid.cssid, sch->schid.ssid,
172177
sch->schid.sch_no);

0 commit comments

Comments
 (0)