]> git.baikalelectronics.ru Git - kernel.git/commit
s390/cio: generate delayed uevent for vfio-ccw subchannels
authorCornelia Huck <cohuck@redhat.com>
Fri, 27 Mar 2020 12:45:03 +0000 (13:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2020 14:33:01 +0000 (16:33 +0200)
commit9539e3b06e9be937dcffb54ab3086f7a6fa6441d
treeb8be3c1a74f5b3905491b285208a697deab4978a
parent2bf08c34bd1a0af71898f523af7571c61ca8d0bb
s390/cio: generate delayed uevent for vfio-ccw subchannels

[ Upstream commit 5de78b7df928cb2038cc347affd5b3d1a29d9755 ]

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: <20200327124503.9794-3-cohuck@redhat.com>
Fixes: 60b37cfc2ca9 ("vfio: ccw: basic implementation for vfio_ccw driver")
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/s390/cio/vfio_ccw_drv.c