dpaa2-ptp: defer probe when portal allocation failed
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 9 Nov 2018 15:26:46 +0000 (15:26 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 18:46:59 +0000 (19:46 +0100)
commit3a11ec548c5b8d5c57cd249c9c2bae580f7fc29c
tree3d88b698c251c18747c0332843204615166307c0
parent4ee24ae83ccbfb518be879617368f72db26dec6a
dpaa2-ptp: defer probe when portal allocation failed

[ Upstream commit 5500598abbfb5b46201b9768bd9ea873a5eeaece ]

The fsl_mc_portal_allocate can fail when the requested MC portals are
not yet probed by the fsl_mc_allocator. In this situation, the driver
should defer the probe.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/fsl-dpaa2/rtc/rtc.c