All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mac80211_hwsim: set virtio device ready in probe()
@ 2022-06-13 21:04 Johannes Berg
  2022-06-14  5:07 ` Jason Wang
  2022-06-21  5:27 ` Kalle Valo
  0 siblings, 2 replies; 3+ messages in thread
From: Johannes Berg @ 2022-06-13 21:04 UTC (permalink / raw)
  To: linux-wireless; +Cc: Jason Wang, Vincent Whitchurch, Johannes Berg

From: Johannes Berg <johannes.berg@intel.com>

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.)

Change-Id: I617d3b819b5e5345471a8e79db25342981a92424
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>
---
 drivers/net/wireless/mac80211_hwsim.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
index 02108b94d6b8..d2b31595856d 100644
--- a/drivers/net/wireless/mac80211_hwsim.c
+++ b/drivers/net/wireless/mac80211_hwsim.c
@@ -4951,6 +4951,8 @@ static int hwsim_virtio_probe(struct virtio_device *vdev)
 	if (err)
 		return err;
 
+	virtio_device_ready(vdev);
+
 	err = fill_vq(hwsim_vqs[HWSIM_VQ_RX]);
 	if (err)
 		goto out_remove;
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] mac80211_hwsim: set virtio device ready in probe()
  2022-06-13 21:04 [PATCH] mac80211_hwsim: set virtio device ready in probe() Johannes Berg
@ 2022-06-14  5:07 ` Jason Wang
  2022-06-21  5:27 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Jason Wang @ 2022-06-14  5:07 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, Vincent Whitchurch, Johannes Berg

On Tue, Jun 14, 2022 at 5:04 AM Johannes Berg <johannes@sipsolutions.net> wrote:
>
> From: Johannes Berg <johannes.berg@intel.com>
>
> 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.)
>
> Change-Id: I617d3b819b5e5345471a8e79db25342981a92424
> 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>

> ---
>  drivers/net/wireless/mac80211_hwsim.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
> index 02108b94d6b8..d2b31595856d 100644
> --- a/drivers/net/wireless/mac80211_hwsim.c
> +++ b/drivers/net/wireless/mac80211_hwsim.c
> @@ -4951,6 +4951,8 @@ static int hwsim_virtio_probe(struct virtio_device *vdev)
>         if (err)
>                 return err;
>
> +       virtio_device_ready(vdev);
> +
>         err = fill_vq(hwsim_vqs[HWSIM_VQ_RX]);
>         if (err)
>                 goto out_remove;
> --
> 2.36.1
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] mac80211_hwsim: set virtio device ready in probe()
  2022-06-13 21:04 [PATCH] mac80211_hwsim: set virtio device ready in probe() Johannes Berg
  2022-06-14  5:07 ` Jason Wang
@ 2022-06-21  5:27 ` Kalle Valo
  1 sibling, 0 replies; 3+ messages in thread
From: Kalle Valo @ 2022-06-21  5:27 UTC (permalink / raw)
  To: Johannes Berg
  Cc: linux-wireless, Jason Wang, Vincent Whitchurch, Johannes Berg

Johannes Berg <johannes@sipsolutions.net> writes:

> From: Johannes Berg <johannes.berg@intel.com>
>
> 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.)
>
> Change-Id: I617d3b819b5e5345471a8e79db25342981a92424

I might be too late, but leftover Change-Id.

-- 
https://patchwork.kernel.org/project/linux-wireless/list/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-21  5:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-13 21:04 [PATCH] mac80211_hwsim: set virtio device ready in probe() Johannes Berg
2022-06-14  5:07 ` Jason Wang
2022-06-21  5:27 ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.