summaryrefslogtreecommitdiffstats
path: root/drivers/bus
diff options
context:
space:
mode:
authorLaurentiu Tudor <laurentiu.tudor@nxp.com>2019-04-27 10:10:24 +0300
committerLi Yang <leoyang.li@nxp.com>2019-05-20 14:28:16 -0500
commit5d1d046e2868fc876a69231eb2f24f000b521f1c (patch)
tree0167f1d24f1bec27a959feb8d1da515c337c2814 /drivers/bus
parentd9ebd99d9a2ff7857b8dbfebd4604f80064d749c (diff)
downloadlinux-5d1d046e2868fc876a69231eb2f24f000b521f1c.tar.gz
linux-5d1d046e2868fc876a69231eb2f24f000b521f1c.tar.bz2
linux-5d1d046e2868fc876a69231eb2f24f000b521f1c.zip
soc: fsl: qbman_portals: add APIs to retrieve the probing status
Add a couple of new APIs to check the probing status of the required cpu bound qman and bman portals: 'int bman_portals_probed()' and 'int qman_portals_probed()'. They return the following values. * 1 if qman/bman portals were all probed correctly * 0 if qman/bman portals were not yet probed * -1 if probing of qman/bman portals failed Portals are considered successful probed if no error occurred during the probing of any of the portals and if enough portals were probed to have one available for each cpu. The error handling paths were slightly rearranged in order to fit this new functionality without being too intrusive. Drivers that use qman/bman portal driver services are required to use these APIs before calling any functions exported by these drivers or otherwise they will crash the kernel. First user will be the dpaa1 ethernet driver, coming in a subsequent patch. Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Li Yang <leoyang.li@nxp.com>
Diffstat (limited to 'drivers/bus')
0 files changed, 0 insertions, 0 deletions