Skip to contentSkip to conversation

driver: net: fsl-mc: Remove portal id hard-coding

PATCH New Prabhakar Kushwaha 2 participants 2 messages Dec 24, 2015 – Jan 27, 2016 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 7/7 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.

So, Remove hard-coding of portal id.

---
 drivers/net/fsl-mc/mc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/fsl-mc/mc.c +1 -1
index a45a30d..9e042f6 100644
@@ -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,
Signature · 1 line
1.9.1
#1 lore raw

PATCH 7/7 driver: net: fsl-mc: Remove portal id hard-coding

Quoted 5 lines · Prabhakar Kushwaha

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.

Quoted 7 lines

So, Remove hard-coding of portal id.

---
 drivers/net/fsl-mc/mc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Slightly reformat commit message.
Applied to u-boot-fsl-qoriq master. Awaiting upstream.

Thanks.

York