Skip to contentSkip to conversation

ddr: altera: Init the rule ID in debug code

PATCH New Marek Vasut 2 participants 3 messages Dec 29, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ddr: altera: Init the rule ID in debug code

Init the rule ID, otherwise the debug code will always dump the protection settings entry 0.

Cc Chin Liang See <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Dinh Nguyen <[email protected]>
---
 drivers/ddr/altera/sdram.c | 1 +
 1 file changed, 1 insertion(+)
drivers/ddr/altera/sdram.c +1 -0
index 1ed2883..2996942 100644
@@ -218,6 +218,7 @@ static void sdram_dump_protection_config(void)
 	      readl(&sdr_ctrl->protport_default));
 
 	for (rules = 0; rules < 20; rules++) {
+		rule.rule = rules;
 		sdram_get_rule(&rule);
 		debug("Rule %d, rules ...\n", rules);
 		debug("    sdram start %x\n", rule.sdram_start);
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/1 ddr: altera: Init the rule ID in debug code

Quoted 11 lines · Marek Vasut

Init the rule ID, otherwise the debug code will always dump the protection settings entry 0.

Cc Chin Liang See <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Dinh Nguyen <[email protected]>
---
 drivers/ddr/altera/sdram.c | 1 +
 1 file changed, 1 insertion(+)

Thanks
Chin Liang

author Applied
#2 lore raw

PATCH 1/1 ddr: altera: Init the rule ID in debug code

Quoted 10 lines · Chin Liang See
Quoted 9 lines · Marek Vasut

Init the rule ID, otherwise the debug code will always dump the protection settings entry 0.

Cc Chin Liang See <[email protected]>
Cc Dinh Nguyen <[email protected]>
Cc Dinh Nguyen <[email protected]>

---

Quoted 4 lines
Quoted 2 lines
 drivers/ddr/altera/sdram.c | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks.

Best regards,
Marek Vasut