summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorPrabhakar Kushwaha <prabhakar@freescale.com>2015-12-24 15:33:49 +0530
committerYork Sun <york.sun@nxp.com>2016-01-27 08:13:12 -0800
commit335b1936ebf48bf1df3568a8df3766d9408a1070 (patch)
tree0296815a4237e27b43f6dcaf7657214ec3305202 /drivers
parent44b2036e1277eb694a5cefa1551120e1e79b41f0 (diff)
downloadtalos-obmc-uboot-335b1936ebf48bf1df3568a8df3766d9408a1070.tar.gz
talos-obmc-uboot-335b1936ebf48bf1df3568a8df3766d9408a1070.zip
driver: net: fsl-mc: Remove portal id hard-coding
Management Complex firmware 9.0 has fixed the issue of dprc_destroy_container i.e. the used portal is not return to the free pool. Which was resulting in error ethernet driver want to use this portal via either DPL or dynamically in Linux. Hard-coding of portal id is removed. Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com> Reviewed-by: York Sun <york.sun@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/fsl-mc/mc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fsl-mc/mc.c b/drivers/net/fsl-mc/mc.c
index a45a30d961..9e042f6198 100644
--- a/drivers/net/fsl-mc/mc.c
+++ b/drivers/net/fsl-mc/mc.c
@@ -821,7 +821,7 @@ static int dprc_init(void)
DPRC_CFG_OPT_OBJ_CREATE_ALLOWED |
DPRC_CFG_OPT_ALLOC_ALLOWED;
cfg.icid = DPRC_GET_ICID_FROM_POOL;
- cfg.portal_id = 250;
+ cfg.portal_id = DPRC_GET_PORTAL_ID_FROM_POOL;
err = dprc_create_container(root_mc_io, MC_CMD_NO_FLAGS,
root_dprc_handle,
&cfg,
OpenPOWER on IntegriCloud