public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] add WATCHDOG_RESET() on nand write and read
@ 2009-06-18 15:16 Giulio Benetti
  2009-07-19 19:50 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Giulio Benetti @ 2009-06-18 15:16 UTC (permalink / raw)
  To: u-boot

I think it's better to put Watchdog reset also inside read and write nand.
What do you think?

Signed-off-by: giulio.benetti at micronovasrl.com

diff -urpN b/drivers/mtd/nand/nand_util.c a/drivers/mtd/nand/nand_util.c
--- b/drivers/mtd/nand/nand_util.c      2009-06-14 21:30:39.000000000 +0200
+++ a/drivers/mtd/nand/nand_util.c      2009-06-18 17:13:19.000000000 +0200
@@ -505,6 +505,8 @@ int nand_write_skip_bad(nand_info_t *nan
                size_t block_offset = offset & (nand->erasesize - 1);
                size_t write_size;
 
+               WATCHDOG_RESET ();
+
                if (nand_block_isbad (nand, offset & ~(nand->erasesize - 1))) {
                        printf ("Skip bad block 0x%08zx\n",
                                offset & ~(nand->erasesize - 1));
@@ -575,6 +577,8 @@ int nand_read_skip_bad(nand_info_t *nand
                size_t block_offset = offset & (nand->erasesize - 1);
                size_t read_length;
 
+               WATCHDOG_RESET ();
+
                if (nand_block_isbad (nand, offset & ~(nand->erasesize - 1))) {
                        printf ("Skipping bad block 0x%08zx\n",
                                offset & ~(nand->erasesize - 1));


-- 
Giulio Benetti
R&D
Micronova srl

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] add WATCHDOG_RESET() on nand write and read
  2009-06-18 15:16 [U-Boot] [PATCH] add WATCHDOG_RESET() on nand write and read Giulio Benetti
@ 2009-07-19 19:50 ` Wolfgang Denk
  2009-07-31 22:35   ` Scott Wood
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2009-07-19 19:50 UTC (permalink / raw)
  To: u-boot

Dear Scott,

In message <h1dlse$3bu$2@ger.gmane.org> Giulio Benetti wrote:
> I think it's better to put Watchdog reset also inside read and write nand.
> What do you think?
> 
> Signed-off-by: giulio.benetti at micronovasrl.com
> 
> diff -urpN b/drivers/mtd/nand/nand_util.c a/drivers/mtd/nand/nand_util.c
> --- b/drivers/mtd/nand/nand_util.c      2009-06-14 21:30:39.000000000 +0200
> +++ a/drivers/mtd/nand/nand_util.c      2009-06-18 17:13:19.000000000 +0200
> @@ -505,6 +505,8 @@ int nand_write_skip_bad(nand_info_t *nan
>                 size_t block_offset = offset & (nand->erasesize - 1);
>                 size_t write_size;
>  
> +               WATCHDOG_RESET ();
> +
>                 if (nand_block_isbad (nand, offset & ~(nand->erasesize - 1))) {
>                         printf ("Skip bad block 0x%08zx\n",
>                                 offset & ~(nand->erasesize - 1));
> @@ -575,6 +577,8 @@ int nand_read_skip_bad(nand_info_t *nand
>                 size_t block_offset = offset & (nand->erasesize - 1);
>                 size_t read_length;
>  
> +               WATCHDOG_RESET ();
> +
>                 if (nand_block_isbad (nand, offset & ~(nand->erasesize - 1))) {
>                         printf ("Skipping bad block 0x%08zx\n",
>                                 offset & ~(nand->erasesize - 1));

Acked-by: Wolfgang Denk <wd@denx.de>

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"It's like deja vu all over again."                      - Yogi Berra

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] add WATCHDOG_RESET() on nand write and read
  2009-07-19 19:50 ` Wolfgang Denk
@ 2009-07-31 22:35   ` Scott Wood
  2009-07-31 22:50     ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Scott Wood @ 2009-07-31 22:35 UTC (permalink / raw)
  To: u-boot

On Sun, Jul 19, 2009 at 09:50:25PM +0200, Wolfgang Denk wrote:
> Dear Scott,
> 
> In message <h1dlse$3bu$2@ger.gmane.org> Giulio Benetti wrote:
> > I think it's better to put Watchdog reset also inside read and write nand.
> > What do you think?
> > 
> > Signed-off-by: giulio.benetti at micronovasrl.com
> > 
> > diff -urpN b/drivers/mtd/nand/nand_util.c a/drivers/mtd/nand/nand_util.c
> > --- b/drivers/mtd/nand/nand_util.c      2009-06-14 21:30:39.000000000 +0200
> > +++ a/drivers/mtd/nand/nand_util.c      2009-06-18 17:13:19.000000000 +0200
> > @@ -505,6 +505,8 @@ int nand_write_skip_bad(nand_info_t *nan
> >                 size_t block_offset = offset & (nand->erasesize - 1);
> >                 size_t write_size;
> >  
> > +               WATCHDOG_RESET ();
> > +
> >                 if (nand_block_isbad (nand, offset & ~(nand->erasesize - 1))) {
> >                         printf ("Skip bad block 0x%08zx\n",
> >                                 offset & ~(nand->erasesize - 1));
> > @@ -575,6 +577,8 @@ int nand_read_skip_bad(nand_info_t *nand
> >                 size_t block_offset = offset & (nand->erasesize - 1);
> >                 size_t read_length;
> >  
> > +               WATCHDOG_RESET ();
> > +
> >                 if (nand_block_isbad (nand, offset & ~(nand->erasesize - 1))) {
> >                         printf ("Skipping bad block 0x%08zx\n",
> >                                 offset & ~(nand->erasesize - 1));
> 
> Acked-by: Wolfgang Denk <wd@denx.de>

Applied to u-boot-nand-flash (manually, since I lost the original patch
and it's hard to get an applyable patch from the list archives).

-Scott

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] add WATCHDOG_RESET() on nand write and read
  2009-07-31 22:35   ` Scott Wood
@ 2009-07-31 22:50     ` Wolfgang Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2009-07-31 22:50 UTC (permalink / raw)
  To: u-boot

Dear Scott Wood,

In message <20090731223501.GC27937@b07421-ec1.am.freescale.net> you wrote:
>
> Applied to u-boot-nand-flash (manually, since I lost the original patch
> and it's hard to get an applyable patch from the list archives).

And if anything else fails, just drop me a note :-)

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The only perfect science is hind-sight.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-31 22:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-18 15:16 [U-Boot] [PATCH] add WATCHDOG_RESET() on nand write and read Giulio Benetti
2009-07-19 19:50 ` Wolfgang Denk
2009-07-31 22:35   ` Scott Wood
2009-07-31 22:50     ` Wolfgang Denk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox