bus/dpaa: delay fman device list to bus probe
authorHemant Agrawal <hemant.agrawal@nxp.com>
Tue, 26 Mar 2019 12:01:46 +0000 (12:01 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 29 Mar 2019 13:37:45 +0000 (14:37 +0100)
commit4762b3d419c357bd00012835e6fd430cde799dca
treea80ee827559ef035cd7913557e8b4c84d6605260
parente1797f4b445a649bbeaeb10fa83b1b55f5a7c9bc
bus/dpaa: delay fman device list to bus probe

The fman device list need to be accessed across processes.
The hw device structures should be allocated with rte_calloc
instead of calloc. The rte_calloc is not available at the
time of bus scan, so better prepare the device list at probe.

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/bus/dpaa/base/fman/fman.c
drivers/bus/dpaa/base/fman/netcfg_layer.c
drivers/bus/dpaa/dpaa_bus.c
drivers/bus/dpaa/rte_dpaa_bus.h
drivers/net/dpaa/dpaa_ethdev.c