mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 08:59:33 +00:00
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: 9693bd26bf
Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
6a11fdf053
commit
7804306c80
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ static int virtio_uclass_child_pre_probe(struct udevice *vdev)
|
||||||
/* Transport features always preserved to pass to finalize_features */
|
/* Transport features always preserved to pass to finalize_features */
|
||||||
for (i = VIRTIO_TRANSPORT_F_START; i < VIRTIO_TRANSPORT_F_END; i++)
|
for (i = VIRTIO_TRANSPORT_F_START; i < VIRTIO_TRANSPORT_F_END; i++)
|
||||||
if ((device_features & (1ULL << 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);
|
__virtio_set_bit(vdev->parent, i);
|
||||||
|
|
||||||
debug("(%s) final negotiated features supported %016llx\n",
|
debug("(%s) final negotiated features supported %016llx\n",
|
||||||
|
|
Loading…
Reference in a new issue