bus: fsl-mc: extend fsl_mc_get_endpoint() to pass interface ID
authorIoana Ciornei <ioana.ciornei@nxp.com>
Tue, 3 Aug 2021 16:57:42 +0000 (19:57 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Aug 2021 08:53:34 +0000 (09:53 +0100)
commit27cfdadd687deca58146b415f60b23d185cb3532
treebddf1d15b21b8e36459bf8ca3f60844f5eaad188
parent2b24ffd83e3953e6ff7a67ca1c8f7832598b1bf0
bus: fsl-mc: extend fsl_mc_get_endpoint() to pass interface ID

In case of a switch DPAA2 object, the interface ID is also needed when
querying for the object endpoint. Extend fsl_mc_get_endpoint() so that
users can also pass the interface ID that are interested in.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/bus/fsl-mc/fsl-mc-bus.c
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c
include/linux/fsl/mc.h