bus: fsl-mc: force device rescan if endpoint not discovered
authorLaurentiu Tudor <laurentiu.tudor@nxp.com>
Tue, 23 Mar 2021 11:01:15 +0000 (13:01 +0200)
committerIoana Ciornei <ciorneiioana@gmail.com>
Mon, 26 Apr 2021 09:22:47 +0000 (12:22 +0300)
commit64cee2378a260a592c8bb7bfa58e75178f45c77f
tree4665397bece90d30b7e672e5e5a7609ff54f9e8e
parent64e7f931c2aed8495bc10f2cd0e48f90dbb98ccb
bus: fsl-mc: force device rescan if endpoint not discovered

If the endpoint of a device is not yet probed on the bus force
a rescan of the devices and retry to get a reference to the
endpoint device. If the device is still not found then we assume
it's in a different isolation context (container/DPRC) thus
unavailable and return a permission error.

Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
drivers/bus/fsl-mc/fsl-mc-bus.c