[U-Boot] [PATCH v2] cfi_flash: Fix unaligned accesses to cfi_qry structure
Stefan Roese
sr at denx.de
Thu May 23 09:49:19 CEST 2013
On 05/14/2013 07:27 PM, Andrew Gabbasov wrote:
> Packed structure cfi_qry contains unaligned 16- and 32-bits members,
> accessing which causes problems when cfi_flash driver is compiled with
> -munaligned-access option: flash initialization hangs, probably
> due to data error.
>
> Since the structure is supposed to replicate the actual data layout
> in CFI Flash chips, the alignment issue can't be fixed in the structure.
> So, unaligned fields need using of explicit unaligned access macros.
Applied to u-boot-cfi-flash/master.
Thanks,
Stefan
More information about the U-Boot
mailing list