[U-Boot-Users] [PATCH] Fixed cfi flash read uchar bug.

Zhang Wei-r63237
2007-01-08T02:41:32Z

Hi, Stefan,

Thanks!
But it's a pity they are no useful.

>
> What I noticed after looking at the flash access functions like
> flash_read_uchar() is that no access macros and even no
> volatile pointer
> access is used to read from the flash. This looks like a
> potential problem,
> that can show when using different compiler versions.
>
> Please find attached a small patch that adds fixes this
> potential problem for
> the 3 functions flash_read_uchar/ushort/long. Please give it
> a try and let me
> know if this changed the behavior somehow.

Agree with you!
It's a potential problem. Is my patch fit for it? :D

Best Regards,
Zhang Wei