diff options
author | Will Deacon <willdeacon@google.com> | 2023-03-29 22:24:55 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-04-25 11:53:15 -0400 |
commit | 7804306c800112390a35af9c777bda86465a7be5 (patch) | |
tree | a7148261cb9620439c2bf2ffa2cc75cba9984254 /drivers | |
parent | 6a11fdf0536e02ac9cd4a3da0535a271c694715f (diff) | |
download | u-boot-7804306c800112390a35af9c777bda86465a7be5.zip u-boot-7804306c800112390a35af9c777bda86465a7be5.tar.gz u-boot-7804306c800112390a35af9c777bda86465a7be5.tar.bz2 |
virtio: Expose VIRTIO_F_IOMMU_PLATFORM in device features
If we detect the VIRTIO_F_IOMMU_PLATFORM transport feature for a device,
then expose it in the device features.
Signed-off-by: Will Deacon <willdeacon@google.com>
[ Paul: pick from the Android tree. Rebase to the upstream ]
Signed-off-by: Ying-Chun Liu (PaulLiu) <paul.liu@linaro.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Link: https://android.googlesource.com/platform/external/u-boot/+/9693bd26bfcfe77d6a1295a561420e08c5daf019
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/virtio/virtio-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/virtio/virtio-uclass.c b/drivers/virtio/virtio-uclass.c index de9bc90..b3fb3db 100644 --- a/drivers/virtio/virtio-uclass.c +++ b/drivers/virtio/virtio-uclass.c @@ -336,7 +336,7 @@ static int virtio_uclass_child_pre_probe(struct udevice *vdev) /* Transport features always preserved to pass to finalize_features */ for (i = VIRTIO_TRANSPORT_F_START; i < VIRTIO_TRANSPORT_F_END; i++) if ((device_features & (1ULL << i)) && - (i == VIRTIO_F_VERSION_1)) + (i == VIRTIO_F_VERSION_1 || i == VIRTIO_F_IOMMU_PLATFORM)) __virtio_set_bit(vdev->parent, i); debug("(%s) final negotiated features supported %016llx\n", |