* [PATCH] ppc ddr-8xxx: misplaced parenthesis
@ 2013-07-18 10:16 Renaud Barbier
2013-07-22 6:41 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Renaud Barbier @ 2013-07-18 10:16 UTC (permalink / raw)
To: barebox
Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
---
arch/ppc/ddr-8xxx/ctrl_regs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/ppc/ddr-8xxx/ctrl_regs.c b/arch/ppc/ddr-8xxx/ctrl_regs.c
index 3f8ecf7..1abc826 100644
--- a/arch/ppc/ddr-8xxx/ctrl_regs.c
+++ b/arch/ppc/ddr-8xxx/ctrl_regs.c
@@ -314,7 +314,7 @@ static void set_ddr_sdram_mode(struct fsl_ddr_cfg_regs_s *ddr,
| ((rtt & 0x1) << 2));
/* Write recovery */
- wr = (dimm->tWR_ps + mclk_ps - 1) / (mclk_ps - 1);
+ wr = ((dimm->tWR_ps + mclk_ps - 1) / mclk_ps) - 1;
switch (popts->burst_length) {
case DDR_BL4:
--
1.7.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ppc ddr-8xxx: misplaced parenthesis
2013-07-18 10:16 [PATCH] ppc ddr-8xxx: misplaced parenthesis Renaud Barbier
@ 2013-07-22 6:41 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2013-07-22 6:41 UTC (permalink / raw)
To: Renaud Barbier; +Cc: barebox
On Thu, Jul 18, 2013 at 11:16:51AM +0100, Renaud Barbier wrote:
> Signed-off-by: Renaud Barbier <renaud.barbier@ge.com>
> ---
Applied, thanks
Sascha
> arch/ppc/ddr-8xxx/ctrl_regs.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/ppc/ddr-8xxx/ctrl_regs.c b/arch/ppc/ddr-8xxx/ctrl_regs.c
> index 3f8ecf7..1abc826 100644
> --- a/arch/ppc/ddr-8xxx/ctrl_regs.c
> +++ b/arch/ppc/ddr-8xxx/ctrl_regs.c
> @@ -314,7 +314,7 @@ static void set_ddr_sdram_mode(struct fsl_ddr_cfg_regs_s *ddr,
> | ((rtt & 0x1) << 2));
>
> /* Write recovery */
> - wr = (dimm->tWR_ps + mclk_ps - 1) / (mclk_ps - 1);
> + wr = ((dimm->tWR_ps + mclk_ps - 1) / mclk_ps) - 1;
>
> switch (popts->burst_length) {
> case DDR_BL4:
> --
> 1.7.1
>
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-22 6:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-18 10:16 [PATCH] ppc ddr-8xxx: misplaced parenthesis Renaud Barbier
2013-07-22 6:41 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox