]> 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)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 6 Apr 2020 12:02:28 +0000 (14:02 +0200)
commitc05e5a7b09a271fb2612b648f20b84f2c22861b1
treec0f5db043fde22e8d8dd1a1c73ca1b18d2051454
parent2cb55c339a159b6fe349ed6a8b33eb1e999f6aa4
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: <20200327124503.9794-3-cohuck@redhat.com>
Fixes: 0b4a39d5a655 ("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>
drivers/s390/cio/vfio_ccw_drv.c