[U-Boot-Users] [PATCH] mips: tolerate the MIPS 'CFG_HZ' valuesin the MHZ range for NAND delays

McMullan, Jason mcmullan at netapp.com
Mon May 19 22:31:50 CEST 2008


On Mon, 2008-05-19 at 15:26 -0500, Scott Wood wrote:
> Even though it's MIPS that needs it, it should be flagged as a NAND 
> patch since that's the code it touches.

Totally agree.

> How about this?
> 
> if (state == FL_ERASING)
> 	timeo = CFG_HZ * 2 / 5;
> else
> 	timeo = CFG_HZ / 50
> 
> If we have CFG_HZ values that are within a factor of 2 of wrapping 
> around, the platform should probably do some downward scaling (or we 
> should think about 64-bit timestamps)...


Much better than my original patch. Should I revert, retry, and resend?

--
Jason McMullan
MTS SW
System Firmware

NetApp
724.741.5011    Fax
724.741.5166    Direct
412.656.3519    Mobile
jason.mcmullan at netapp.com
www.netapp.com


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.denx.de/pipermail/u-boot/attachments/20080519/2b2ed3a5/attachment.pgp 


More information about the U-Boot mailing list