Re: [U-Boot] [PATCH] ARM: cfi_flash: Fix unaligned accesses to cfi_qry structure

2013-05-08 Thread Marek Vasut
Dear Andrew Gabbasov, 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. This fix converts 16- and 32-bit members to

Re: [U-Boot] [PATCH] ARM: cfi_flash: Fix unaligned accesses to cfi_qry structure

2013-05-08 Thread Gabbasov, Andrew
Hi Marek, From: Marek Vasut [ma...@denx.de] Sent: Wednesday, May 08, 2013 21:26 To: u-boot@lists.denx.de Cc: Gabbasov, Andrew; Tom Rini; Albert Aribaud Subject: Re: [U-Boot] [PATCH] ARM: cfi_flash: Fix unaligned accesses to cfi_qry structure Dear Andrew Gabbasov, Packed structure

[U-Boot] [PATCH] ARM: cfi_flash: Fix unaligned accesses to cfi_qry structure

2013-04-29 Thread Andrew Gabbasov
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. This fix converts 16- and 32-bit members to byte arrays and uses special

Re: [U-Boot] [PATCH] ARM: cfi_flash: Fix unaligned accesses to cfi_qry structure

2013-04-29 Thread Gabbasov, Andrew
From: Gabbasov, Andrew Sent: Monday, April 29, 2013 13:34 To: u-boot@lists.denx.de Subject: [U-Boot][PATCH] ARM: 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