linux/drivers/bus/fsl-mc
Bharat Bhushan 1f86a00c11 bus/fsl-mc: add support for 'driver_override' in the mc-bus
This patch is required for vfio-fsl-mc meta driver to successfully bind
layerscape container devices for device passthrough. This patch adds
a mechanism to allow a layerscape device to specify a driver rather than
a layerscape driver provide a device match.

Example to allow a device (dprc.1) to specifically bind
with driver (vfio-fsl-mc):-
 - echo vfio-fsl-mc > /sys/bus/fsl-mc/devices/dprc.1/driver_override
 - echo dprc.1 > /sys/bus/fsl-mc/drivers/fsl_mc_dprc/unbind
 - echo dprc.1 > /sys/bus/fsl-mc/drivers/vfio-fsl-mc/bind

Reviewed-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Acked-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Bharat Bhushan <Bharat.Bhushan@nxp.com>
Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Diana Craciun <diana.craciun@oss.nxp.com>
Link: https://lore.kernel.org/r/20200929085441.17448-4-diana.craciun@oss.nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-10-02 16:05:01 +02:00
..
dpbp.c bus: fsl-mc: remove duplicated include files 2018-12-06 15:53:20 +01:00
dpcon.c bus: fsl-mc: remove duplicated include files 2018-12-06 15:53:20 +01:00
dpmcp.c bus: fsl-mc: change mc_command in fsl_mc_command 2018-03-23 15:52:48 +01:00
dprc-driver.c bus/fsl-mc: Add a new parameter to dprc_scan_objects function 2020-10-02 16:05:01 +02:00
dprc.c bus: fsl-mc: add the fsl_mc_get_endpoint function 2019-10-31 14:19:45 -07:00
fsl-mc-allocator.c bus: fsl-mc: remove explicit device_link_del 2019-08-16 14:17:35 -05:00
fsl-mc-bus.c bus/fsl-mc: add support for 'driver_override' in the mc-bus 2020-10-02 16:05:01 +02:00
fsl-mc-msi.c bus: fsl-mc: Add ACPI support for fsl-mc 2020-07-28 15:51:32 +01:00
fsl-mc-private.h bus/fsl-mc: Refactor the MSI domain creation in the DPRC driver 2020-07-28 15:51:32 +01:00
Kconfig
Makefile staging: fsl-mc: Move DPCON out of staging 2018-03-14 13:18:42 +01:00
mc-io.c bus: fsl-mc: use raw spin lock to serialize mc cmds 2020-07-23 16:54:33 +02:00
mc-sys.c bus: fsl-mc: use raw spin lock to serialize mc cmds 2020-07-23 16:54:33 +02:00