[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201105060257.35269-3-vikas.gupta@broadcom.com>
Date: Thu, 5 Nov 2020 11:32:56 +0530
From: Vikas Gupta <vikas.gupta@...adcom.com>
To: eric.auger@...hat.com, alex.williamson@...hat.com,
cohuck@...hat.com, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: vikram.prakash@...adcom.com, Vikas Gupta <vikas.gupta@...adcom.com>
Subject: [RFC, v0 2/3] vfio/platform: change cleanup order
In the case of msi, vendor specific msi module may require
region access to handle msi cleanup so we need to cleanup region
after irq cleanup only.
Signed-off-by: Vikas Gupta <vikas.gupta@...adcom.com>
---
drivers/vfio/platform/vfio_platform_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/vfio/platform/vfio_platform_common.c b/drivers/vfio/platform/vfio_platform_common.c
index c713f4e4c552..b9d68ccdf92f 100644
--- a/drivers/vfio/platform/vfio_platform_common.c
+++ b/drivers/vfio/platform/vfio_platform_common.c
@@ -283,8 +283,8 @@ static void vfio_platform_release(void *device_data)
WARN_ON(1);
}
pm_runtime_put(vdev->device);
- vfio_platform_regions_cleanup(vdev);
vfio_platform_irq_cleanup(vdev);
+ vfio_platform_regions_cleanup(vdev);
}
mutex_unlock(&driver_lock);
--
2.17.1
Download attachment "smime.p7s" of type "application/pkcs7-signature" (4163 bytes)
Powered by blists - more mailing lists