]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211_hwsim: set virtio device ready in probe()
authorJohannes Berg <johannes.berg@intel.com>
Mon, 13 Jun 2022 21:04:01 +0000 (23:04 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 29 Jun 2022 09:43:11 +0000 (11:43 +0200)
commit6c86bbd0c4a76e041b37e759d4535499918b3bc8
treef7791528fdade335f517ca280930a3a905789d65
parent6e050a9839a834d14105cc4e06fa216846600882
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.)

Fixes: 1f7e58d9bbc5 ("virtio: harden vring IRQ")
Fixes: 4edba45981d3 ("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>
drivers/net/wireless/mac80211_hwsim.c