bus/fslmc: refactor scan and probe functions
authorShreyansh Jain <shreyansh.jain@nxp.com>
Fri, 25 Aug 2017 10:19:54 +0000 (15:49 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 5 Oct 2017 23:08:58 +0000 (01:08 +0200)
commit828d51d8fc3ed096f1236245b5a616d7a878d86e
treef01852473207d2663bf418c635e86268c67fcd09
parent10f1614f36a6be8f98c0c316a1292863a25e817f
bus/fslmc: refactor scan and probe functions

Scan now searches for devices through sysfs interface and adds them
to a list for later initialization. During probe, each device is
initialized accroding to its property.

Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
Reviewed-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/bus/fslmc/fslmc_bus.c
drivers/bus/fslmc/fslmc_vfio.c
drivers/bus/fslmc/fslmc_vfio.h
drivers/bus/fslmc/portal/dpaa2_hw_dpio.c
drivers/bus/fslmc/rte_fslmc.h