]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
driver: net: fsl-mc: Remove portal id hard-coding
authorPrabhakar Kushwaha <prabhakar@freescale.com>
Thu, 24 Dec 2015 10:03:49 +0000 (15:33 +0530)
committerYork Sun <york.sun@nxp.com>
Wed, 27 Jan 2016 16:13:12 +0000 (08:13 -0800)
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>
drivers/net/fsl-mc/mc.c

index a45a30d961df6a1e96aae9ce58200df015f9ccf9..9e042f6198338cb0564802eced6683497fd5a24b 100644 (file)
@@ -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,