mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
test: dm: virtio: Test notify before del_vqs
The virtqueue is passed to virtio_notify() so move the virtqueue deletion to the end of the test when it's no longer needed. This wasn't causing any problems because the sandbox virtio transport driver doesn't do anything for notifications, but it could cause problems if things change and it was a bad example. Signed-off-by: Andrew Scull <ascull@google.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
1674b6c4d8
commit
82c8610a44
1 changed files with 1 additions and 1 deletions
|
@ -80,8 +80,8 @@ static int dm_test_virtio_all_ops(struct unit_test_state *uts)
|
||||||
ut_asserteq_64(BIT_ULL(VIRTIO_F_VERSION_1), features);
|
ut_asserteq_64(BIT_ULL(VIRTIO_F_VERSION_1), features);
|
||||||
ut_assertok(virtio_set_features(dev));
|
ut_assertok(virtio_set_features(dev));
|
||||||
ut_assertok(virtio_find_vqs(dev, nvqs, vqs));
|
ut_assertok(virtio_find_vqs(dev, nvqs, vqs));
|
||||||
ut_assertok(virtio_del_vqs(dev));
|
|
||||||
ut_assertok(virtio_notify(dev, vqs[0]));
|
ut_assertok(virtio_notify(dev, vqs[0]));
|
||||||
|
ut_assertok(virtio_del_vqs(dev));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue