vfio: platform: reset: Add Broadcom FlexRM reset module
authorAnup Patel <anup.patel@broadcom.com>
Fri, 20 Oct 2017 17:43:24 +0000 (11:43 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Fri, 20 Oct 2017 17:43:24 +0000 (11:43 -0600)
commite25883411e80f314f0f76c8eeacd1b47d7e4805b
tree6aeaad0fa4c9e03a9e6635cf6890f00ed55fcadb
parent79d40370e8d31886a9413e2ee115fc426b4ae97e
vfio: platform: reset: Add Broadcom FlexRM reset module

This patch adds Broadcom FlexRM low-level reset for
VFIO platform.

It will do the following:
1. Disable/Deactivate each FlexRM ring
2. Flush each FlexRM ring

The cleanup sequence for FlexRM rings is adapted from
Broadcom FlexRM mailbox driver.

Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Reviewed-by: Oza Oza <oza.oza@broadcom.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/platform/reset/Kconfig
drivers/vfio/platform/reset/Makefile
drivers/vfio/platform/reset/vfio_platform_bcmflexrm.c [new file with mode: 0644]