[PATCH 9/9] virtio: virtio-pci: restrict MIPS support to MMU configuration

Ahmad Fatoum ahmad at a3f.at
Sun Feb 28 14:08:36 EST 2021


MMU-less MIPS doesn't play along nicely with VIRTIO_PCI.
e.g. Reading from a virtio-rng, will return clearly bogus data.
Document this in the Kconfig, so no one else trips over this.

Eventually, this should be fixed..

Signed-off-by: Ahmad Fatoum <ahmad at a3f.at>
---
 drivers/virtio/Kconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/virtio/Kconfig b/drivers/virtio/Kconfig
index ecf66987b3ed..91a89d3e1b89 100644
--- a/drivers/virtio/Kconfig
+++ b/drivers/virtio/Kconfig
@@ -28,6 +28,7 @@ config VIRTIO_MMIO
 config VIRTIO_PCI
 	tristate "PCI driver for virtio devices"
 	depends on PCI && HAS_DMA
+	depends on MMU && MIPS || !MIPS
 	select VIRTIO
 	help
 	  This driver provides support for virtio based paravirtual device
-- 
2.30.0




More information about the barebox mailing list