Skip to content
Commit aedadf10 authored by Andrew Gabbasov's avatar Andrew Gabbasov Committed by Stefan Roese
Browse files

cfi_flash: Fix unaligned accesses to cfi_qry structure



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.

Signed-off-by: default avatarAndrew Gabbasov <andrew_gabbasov@mentor.com>
Reviewed-By: default avatarAlbert ARIBAUD <albert.u.boot@aribaud.net>
Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent 8bcb6f43
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment