bus: fsl-mc: probe the allocatable objects first
authorGrigore Popescu <grigore.popescu@nxp.com>
Fri, 17 Jul 2020 15:48:00 +0000 (18:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2020 14:54:33 +0000 (16:54 +0200)
commit20f7151d63abbb5281ec036197ed822843be1ebf
tree3b78b695fc6bdd787523822022bb9abffe3bc249
parent9a872def598195d2de4a4a74e17804142e2aa78e
bus: fsl-mc: probe the allocatable objects first

Because the DPNIs are probed before DPMCPs and other objects that need
to be allocated, messages like "No more resources of type X left" are
printed by the fsl-mc bus driver. This patch resolves the issue by probing
the allocatable objects first and then any other object that may use
them.

Signed-off-by: Grigore Popescu <grigore.popescu@nxp.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Link: https://lore.kernel.org/r/20200717154800.17169-4-ioana.ciornei@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/fsl-mc/dprc-driver.c