aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRam Muthiah <rammuthiah@google.com>2020-10-01 11:05:30 -0700
committerAlistair Delva <adelva@google.com>2020-10-02 07:16:53 -0700
commit27503ab51e89f792346f9d2cbbbdc6b3c8a8653a (patch)
treef9850cf42e08701713c54a42f7f87947c8febe86
parentffd80db74932718544220b03b0f789118581fc8f (diff)
downloadplatform_external_u-boot-27503ab51e89f792346f9d2cbbbdc6b3c8a8653a.tar.gz
platform_external_u-boot-27503ab51e89f792346f9d2cbbbdc6b3c8a8653a.tar.bz2
platform_external_u-boot-27503ab51e89f792346f9d2cbbbdc6b3c8a8653a.zip
ANDROID: Work around virtio probe issue on crosvm
Set the ACKNOWLEDGE bit in the middle of PCI binding since crosvm expects the bit to be set in order to activate the device thread. Bug: 153027511 Bug: 169336575 Signed-off-by: Ram Muthiah <rammuthiah@google.com> Change-Id: Ib274fb9f9449ce9ed2f8d51e4baacc2b1806cea9
-rw-r--r--drivers/virtio/virtio-uclass.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/virtio/virtio-uclass.c b/drivers/virtio/virtio-uclass.c
index 2636cbedfe..5cd5968e80 100644
--- a/drivers/virtio/virtio-uclass.c
+++ b/drivers/virtio/virtio-uclass.c
@@ -293,6 +293,7 @@ static int virtio_uclass_child_pre_probe(struct udevice *vdev)
if (ret)
goto err;
+ virtio_add_status(vdev, VIRTIO_CONFIG_S_ACKNOWLEDGE);
/* We have a driver! */
virtio_add_status(vdev, VIRTIO_CONFIG_S_DRIVER);