We write 0 to device_status to initiate reset of a virtio-mmio device. The reset operation itself may or may not be completed by the time write instruction completes. Add polling device_status to return 0 to ensure reset completion before reinitializing the device. Change-Id: If15d11d090dfd0d4972ad35f49af03e076872413 Signed-off-by: Jianguo Sun <quic_jianguos@quicinc.com> Signed-off-by: Sreenad Menon <quic_sreemeno@quicinc.com> |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| qti_virtio_mem.c | ||
| qti_virtio_mem.h | ||
| virtio.c | ||
| virtio_anchor.c | ||
| virtio_balloon.c | ||
| virtio_dma_buf.c | ||
| virtio_input.c | ||
| virtio_mem.c | ||
| virtio_mmio.c | ||
| virtio_pci_common.c | ||
| virtio_pci_common.h | ||
| virtio_pci_legacy.c | ||
| virtio_pci_legacy_dev.c | ||
| virtio_pci_modern.c | ||
| virtio_pci_modern_dev.c | ||
| virtio_ring.c | ||
| virtio_vdpa.c | ||