vfio: platform: ignore missing reset if disabled at module init
authorTomasz Duszynski <tduszynski@marvell.com>
Tue, 31 Jan 2023 08:33:49 +0000 (09:33 +0100)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 1 Feb 2023 19:25:41 +0000 (12:25 -0700)
commit168a9c91fe0a1180959b6394f4566de7080244b6
treebb69819c23ed815b034294ef9d3ad05788d74647
parentf4f0c25e5d726e353369258b5ce28a01bd71aa47
vfio: platform: ignore missing reset if disabled at module init

If reset requirement was relaxed via module parameter, errors caused by
missing reset should not be propagated down to the vfio core.
Otherwise initialization will fail.

Signed-off-by: Tomasz Duszynski <tduszynski@marvell.com>
Fixes: 5f6c7e0831a1 ("vfio/platform: Use the new device life cycle helpers")
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Link: https://lore.kernel.org/r/20230131083349.2027189-1-tduszynski@marvell.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/platform/vfio_platform_common.c