diff options
author | Eric Auger <eric.auger@linaro.org> | 2015-06-15 11:09:45 +0200 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2015-06-22 09:35:38 -0600 |
commit | 713cc334a6cc20dd1740933bf49d804b081bbca0 (patch) | |
tree | 8d853639cae0648d789b06ab4201167b7110fad0 /drivers/vfio/platform/vfio_platform_common.c | |
parent | 3eeb0d510c65e777030156f03c116393095a3248 (diff) |
VFIO: platform: Calxeda xgmac reset module
This patch introduces a module that registers and implements a basic
reset function for the Calxeda xgmac device. This latter basically disables
interrupts and stops DMA transfers.
The reset function code is inherited from the native calxeda xgmac driver.
Signed-off-by: Eric Auger <eric.auger@linaro.org>
Acked-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
Tested-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/platform/vfio_platform_common.c')
-rw-r--r-- | drivers/vfio/platform/vfio_platform_common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/vfio/platform/vfio_platform_common.c b/drivers/vfio/platform/vfio_platform_common.c index f3391a93bc0c..e43efb5e92bf 100644 --- a/drivers/vfio/platform/vfio_platform_common.c +++ b/drivers/vfio/platform/vfio_platform_common.c @@ -26,6 +26,11 @@ static DEFINE_MUTEX(driver_lock); static const struct vfio_platform_reset_combo reset_lookup_table[] = { + { + .compat = "calxeda,hb-xgmac", + .reset_function_name = "vfio_platform_calxedaxgmac_reset", + .module_name = "vfio-platform-calxedaxgmac", + }, }; static void vfio_platform_get_reset(struct vfio_platform_device *vdev, |