• Laurentiu Tudor's avatar
    soc: fsl: qbman: add APIs to retrieve the probing status · 853dc104
    Laurentiu Tudor authored
    Add a couple of new APIs to check the probing status of qman and bman:
     'int bman_is_probed()' and 'int qman_is_probed()'.
    They return the following values.
     *  1 if qman/bman were probed correctly
     *  0 if qman/bman were not yet probed
     * -1 if probing of qman/bman failed
    Drivers that use qman/bman driver services are required to use these
    APIs before calling any functions exported by qman or bman drivers
    or otherwise they will crash the kernel.
    The APIs will be used in the following couple of qbman portal patches
    and later in the series in the dpaa1 ethernet driver.
    Signed-off-by: default avatarLaurentiu Tudor <laurentiu.tudor@nxp.com>
    Signed-off-by: default avatarLi Yang <leoyang.li@nxp.com>
    853dc104
qman_ccsr.c 23.8 KB