mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
virtio: wrap config->reset calls
This will enable cleanups down the road. The idea is to disable cbs, then add "flush_queued_cbs" callback as a parameter, this way drivers can flush any work queued after callbacks have been disabled. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Link: https://lore.kernel.org/r/20211013105226.20225-1-mst@redhat.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
@@ -1024,7 +1024,7 @@ static void rpmsg_remove(struct virtio_device *vdev)
|
||||
size_t total_buf_space = vrp->num_bufs * vrp->buf_size;
|
||||
int ret;
|
||||
|
||||
vdev->config->reset(vdev);
|
||||
virtio_reset_device(vdev);
|
||||
|
||||
ret = device_for_each_child(&vdev->dev, NULL, rpmsg_remove_device);
|
||||
if (ret)
|
||||
|
||||
Reference in New Issue
Block a user