On 2026-10-15T11:13:15, Bin Meng <[email protected]> wrote:
> virtio: Release virtqueues after device reset
>
> NET, BLK and RNG remove their devices through virtio_reset(). Only the
> modern PCI transport currently frees its virtqueues during reset, so
> MMIO and legacy PCI retain queue allocations across remove and reprobe.
>
> Wait for reset completion and release queues in the common helper.
> Keep transport reset callbacks limited to resetting hardware only.
>
> Signed-off-by: Bin Meng <[email protected]>
>
> drivers/virtio/virtio-uclass.c     | 18 +++++++++++++++++-
>  drivers/virtio/virtio_pci_modern.c | 12 +-----------
>  include/virtio.h                   |  7 ++++++-
>  3 files changed, 24 insertions(+), 13 deletions(-)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to