OpenCloudOS-Kernel/drivers/bus/fsl-mc
Ioana Ciornei ef57e6c9f7 bus: fsl-mc: return -EPROBE_DEFER when a device is not yet discovered
The fsl_mc_get_endpoint() should return a pointer to the connected
fsl_mc device, if there is one. By interrogating the MC firmware, we
know if there is an endpoint or not so when the endpoint device is
actually searched on the fsl-mc bus and not found we are hitting the
case in which the device has not been yet discovered by the bus.

Return -EPROBE_DEFER so that callers can differentiate this case.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Acked-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-01-09 16:21:30 -08:00
..
Kconfig
Makefile staging: fsl-mc: Move DPCON out of staging 2018-03-14 13:18:42 +01: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: simplify DPRC version check 2020-12-09 19:51:22 +01:00
dprc.c bus: fsl-mc: added missing fields to dprc_rsp_get_obj_region structure 2020-12-09 19:50:53 +01:00
fsl-mc-allocator.c bus: fsl-mc: fix error return code in fsl_mc_object_allocate() 2020-12-09 19:51:06 +01:00
fsl-mc-bus.c bus: fsl-mc: return -EPROBE_DEFER when a device is not yet discovered 2021-01-09 16:21:30 -08: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: added missing fields to dprc_rsp_get_obj_region structure 2020-12-09 19:50:53 +01:00
mc-io.c bus/fsl_mc: Do not rely on caller to provide non NULL mc_io 2020-10-02 16:05:01 +02:00
mc-sys.c bus: fsl-mc: use raw spin lock to serialize mc cmds 2020-07-23 16:54:33 +02:00