bus/fslmc: fix parse method for bus devices
authorShreyansh Jain <shreyansh.jain@nxp.com>
Fri, 11 Jan 2019 12:24:23 +0000 (12:24 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 Jan 2019 16:44:29 +0000 (17:44 +0100)
commit68f5637bcba7ecace57e12b85d82fdeadaa58843
treeffd664d5d0d8e97fe3bbc1e4d85a54c3fa5e7136
parent7bf59396043c4f997196ff5f2a01b13531acf778
bus/fslmc: fix parse method for bus devices

Current code expects that bus->parse() would get a string containing
the name of the bus. That is incorrect. bus->parse() is expected
to have strings like:
  dpni.1,key=val
  dpio.2,key=val

when user passed:
  -b fslmc:dpni.1,key=val

This commit fixes this behavior.

Fixes: 50245be05d1a ("bus/fslmc: support device blacklisting")
Cc: stable@dpdk.org
Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/bus/fslmc/fslmc_bus.c