* [U-Boot] [PATCH] ddr: altera: Init the rule ID in debug code
@ 2015-12-29 8:38 Marek Vasut
2015-12-29 21:04 ` Chin Liang See
0 siblings, 1 reply; 3+ messages in thread
From: Marek Vasut @ 2015-12-29 8:38 UTC (permalink / raw)
To: u-boot
Init the rule ID, otherwise the debug code will always dump the
protection settings entry 0.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Dinh Nguyen <dinh.linux@gmail.com>
---
drivers/ddr/altera/sdram.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c
index 1ed2883..2996942 100644
--- a/drivers/ddr/altera/sdram.c
+++ b/drivers/ddr/altera/sdram.c
@@ -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);
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* [U-Boot] [PATCH] ddr: altera: Init the rule ID in debug code
2015-12-29 8:38 [U-Boot] [PATCH] ddr: altera: Init the rule ID in debug code Marek Vasut
@ 2015-12-29 21:04 ` Chin Liang See
2015-12-29 21:11 ` Marek Vasut
0 siblings, 1 reply; 3+ messages in thread
From: Chin Liang See @ 2015-12-29 21:04 UTC (permalink / raw)
To: u-boot
On Tue, 2015-12-29 at 09:38 +0100, Marek Vasut wrote:
> Init the rule ID, otherwise the debug code will always dump the
> protection settings entry 0.
>
> Signed-off-by: Marek Vasut <marex@denx.de>
> Cc: Chin Liang See <clsee@altera.com>
> Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
> Cc: Dinh Nguyen <dinh.linux@gmail.com>
> ---
> drivers/ddr/altera/sdram.c | 1 +
> 1 file changed, 1 insertion(+)
>
Acked-by: Chin Liang See <clsee@altera.com>
Thanks
Chin Liang
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH] ddr: altera: Init the rule ID in debug code
2015-12-29 21:04 ` Chin Liang See
@ 2015-12-29 21:11 ` Marek Vasut
0 siblings, 0 replies; 3+ messages in thread
From: Marek Vasut @ 2015-12-29 21:11 UTC (permalink / raw)
To: u-boot
On Tuesday, December 29, 2015 at 10:04:55 PM, Chin Liang See wrote:
> On Tue, 2015-12-29 at 09:38 +0100, Marek Vasut wrote:
> > Init the rule ID, otherwise the debug code will always dump the
> > protection settings entry 0.
> >
> > Signed-off-by: Marek Vasut <marex@denx.de>
> > Cc: Chin Liang See <clsee@altera.com>
> > Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
> > Cc: Dinh Nguyen <dinh.linux@gmail.com>
> > ---
> >
> > drivers/ddr/altera/sdram.c | 1 +
> > 1 file changed, 1 insertion(+)
>
> Acked-by: Chin Liang See <clsee@altera.com>
Applied, thanks.
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-12-29 21:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-29 8:38 [U-Boot] [PATCH] ddr: altera: Init the rule ID in debug code Marek Vasut
2015-12-29 21:04 ` Chin Liang See
2015-12-29 21:11 ` Marek Vasut
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.