vfio/fsl-mc: Add per device reset support
authorDiana Craciun <diana.craciun@oss.nxp.com>
Wed, 22 Sep 2021 11:05:30 +0000 (14:05 +0300)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 28 Sep 2021 22:56:05 +0000 (16:56 -0600)
commit8798a803ddf6329dc3b995775862b571db4909d2
treeaeeff5bff324d68ba94519a9dd1413587095a1f5
parentfec2432c9a7370788faab416b38589ac9f4350e5
vfio/fsl-mc: Add per device reset support

Currently when a fsl-mc device is reset, the entire DPRC container
is reset which is very inefficient because the devices within a
container will be reset multiple times.
Add support for individually resetting a device.

Signed-off-by: Diana Craciun <diana.craciun@oss.nxp.com>
Reviewed-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Link: https://lore.kernel.org/r/20210922110530.24736-2-diana.craciun@oss.nxp.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/fsl-mc/vfio_fsl_mc.c