diff options
author | Tero Kristo <t-kristo@ti.com> | 2019-12-13 13:21:15 +0200 |
---|---|---|
committer | Tero Kristo <t-kristo@ti.com> | 2019-12-16 10:30:53 +0200 |
commit | 38c1301a9ca77f56bee42be7d03f1225032a1387 (patch) | |
tree | 5fc6f8962940f8a116b02f329ccac00a7b51e595 | |
parent | 1d53b856338b86d1979fe09345c0b382913a848a (diff) | |
download | ipc-38c1301a9ca77f56bee42be7d03f1225032a1387.tar.gz |
VirtQueue: dra7xx: poll for init completion status
Virtqueue device address is provided by host, so poll the completion
status for this operation before proceeding. Otherwise we end up using
bad virtqueue address.
Signed-off-by: Tero Kristo <t-kristo@ti.com>
-rw-r--r-- | packages/ti/ipc/family/vayu/VirtQueue.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/ti/ipc/family/vayu/VirtQueue.c b/packages/ti/ipc/family/vayu/VirtQueue.c index f4c52a0..e859e04 100644 --- a/packages/ti/ipc/family/vayu/VirtQueue.c +++ b/packages/ti/ipc/family/vayu/VirtQueue.c @@ -233,6 +233,8 @@ static Void _VirtQueue_init() return; } + while (Resource_getVdevStatus(VIRTIO_ID_RPMSG) != VRING_BUFS_PRIMED); + initialized = 1; } } |