UPSTREAM: wifi: mac80211_hwsim: set virtio device ready in probe()
Just like a similar commit to arch/um/drivers/virt-pci.c, 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.) Bug: 254441685 Fixes: 8b4ec69d7e09 ("virtio: harden vring IRQ") Fixes: 5d44fe7c9808 ("mac80211_hwsim: add frame transmission support over virtio") Signed-off-by: Johannes Berg <johannes.berg@intel.com> Acked-by: Jason Wang <jasowang@redhat.com> Link: https://lore.kernel.org/r/20220613210401.327958-1-johannes@sipsolutions.net Signed-off-by: Johannes Berg <johannes.berg@intel.com> (cherry picked from commit 3f3558c8054f82950b6decf928738306f556edf3) Signed-off-by: Lee Jones <joneslee@google.com> Change-Id: Ia813ad70f2aa9908d8756bcfe9be17f86a0f5ec2
This commit is contained in:
parent
de960e4e26
commit
624ab3a0c0
@ -4152,6 +4152,8 @@ static int hwsim_virtio_probe(struct virtio_device *vdev)
|
|||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
|
virtio_device_ready(vdev);
|
||||||
|
|
||||||
err = fill_vq(hwsim_vqs[HWSIM_VQ_RX]);
|
err = fill_vq(hwsim_vqs[HWSIM_VQ_RX]);
|
||||||
if (err)
|
if (err)
|
||||||
goto out_remove;
|
goto out_remove;
|
||||||
|
Loading…
Reference in New Issue
Block a user