]> git.baikalelectronics.ru Git - uboot.git/commit
virtio: Add helper functions to attach/detach vring descriptors
authorWill Deacon <willdeacon@google.com>
Wed, 29 Mar 2023 14:24:58 +0000 (22:24 +0800)
committerTom Rini <trini@konsulko.com>
Tue, 25 Apr 2023 15:53:15 +0000 (11:53 -0400)
commit6c5c584082819f45b94c97d7664af4d12daf72bf
treef77744ea6c62c25db9d06c1a39b30b3a4a94fbcd
parentd20343c63e931f7491ed164ce9eeccb2b31bd4fe
virtio: Add helper functions to attach/detach vring descriptors

Move the attach and detach logic for manipulating vring descriptors
out into their own functions so that we can later extend these to
bounce the data for devices with VIRTIO_F_IOMMU_PLATFORM set.

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/+/f73258a4bfe968c5f935db45f2ec5cc0104ee796
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/virtio/virtio_ring.c