bus/fsl-mc: Add generic implementation for open/reset/close commands
authorDiana Craciun <diana.craciun@oss.nxp.com>
Wed, 22 Sep 2021 11:05:29 +0000 (14:05 +0300)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 28 Sep 2021 22:56:05 +0000 (16:56 -0600)
commitfec2432c9a7370788faab416b38589ac9f4350e5
treee1907c7fd1ca855fa09c0a7c3adb997afef2d58e
parent5816b3e6577eaa676ceb00a848f0fd65fe2adc29
bus/fsl-mc: Add generic implementation for open/reset/close commands

The open/reset/close commands format is similar for all objects.
Currently there are multiple implementations for these commands
scattered through various drivers. The code is cavsi-identical.
Create a generic implementation for the open/reset/close commands.
One of the consumer will be the VFIO driver which needs to
be able to reset 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-1-diana.craciun@oss.nxp.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/bus/fsl-mc/Makefile
drivers/bus/fsl-mc/fsl-mc-private.h
drivers/bus/fsl-mc/obj-api.c [new file with mode: 0644]
include/linux/fsl/mc.h