The flag should be cleared on reset, otherwise, the DPU won't start
again after reset.

Signed-off-by: Alvaro Karsz <alvaro.ka...@solid-run.com>
---
 drivers/vdpa/solidrun/snet_main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/vdpa/solidrun/snet_main.c 
b/drivers/vdpa/solidrun/snet_main.c
index 0c13ccde4520..68de727398ed 100644
--- a/drivers/vdpa/solidrun/snet_main.c
+++ b/drivers/vdpa/solidrun/snet_main.c
@@ -255,6 +255,7 @@ static int snet_reset_dev(struct snet *snet)
        snet_free_irqs(snet);
        /* Reset status */
        snet->status = 0;
+       snet->dpu_ready = false;
 
        if (ret)
                SNET_WARN(pdev, "Incomplete reset to SNET[%u] device\n", 
snet->sid);
-- 
2.34.1

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

Reply via email to