]> git.baikalelectronics.ru Git - kernel.git/commit
um: virt-pci: set device ready in probe()
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Fri, 10 Jun 2022 15:12:03 +0000 (17:12 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 11 Jun 2022 00:38:06 +0000 (20:38 -0400)
commitb71b9b97d0a4ccb8e2027b130f2157002167f3cc
tree32e94e8fa481ec5e1589ba510ee8f40f2d76687f
parent06d9028bc7b9d58bcdbc23a36b9d530138e85e38
um: virt-pci: set device ready in probe()

Call virtio_device_ready() to make this driver work after commit
b4ec69d7e09 ("virtio: harden vring IRQ"), since the driver uses the
virtqueues in the probe function.  (The virtio core sets the device
ready when probe returns.)

Fixes: 1f7e58d9bbc5 ("virtio: harden vring IRQ")
Fixes: 732559b790cd ("um: add PCI over virtio emulation driver")
Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Message-Id: <20220610151203.3492541-1-vincent.whitchurch@axis.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Johannes Berg <johannes@sipsolutions.net>
arch/um/drivers/virt-pci.c