]> Git Repo - J-u-boot.git/commit - cmd/sf.c
cmd_sf: Fix problem with "sf update" and unaligned length
authorStefan Roese <[email protected]>
Fri, 9 Jan 2015 13:39:22 +0000 (14:39 +0100)
committerJagannadha Sutradharudu Teki <[email protected]>
Wed, 22 Apr 2015 11:19:51 +0000 (16:49 +0530)
commited62756dcf5544e277d87c461a84c6274f42b765
tree9695aa03ae956788fdfa983c9f57312528c238c2
parentd15e74f16cc521da0e08060cda2c87307bd4363f
cmd_sf: Fix problem with "sf update" and unaligned length

On SoCFPGA, using "sf update" with an non-4byte aligned length leads
to a hangup (and reboot via watchdog). This is because of the unaligned
access in the cadence QSPI driver which is hard to prevent since the
data is written into a 4-byte wide FIFO. This patch fixes this problem
by changing the behavior of the last sector write (not sector aligned).

The new code is even simpler and copies the source data into the temp
buffer and now uses the temp buffer to write the complete sector. So
only one SPI sector write is used now instead of 2 in the old version.

Signed-off-by: Stefan Roese <[email protected]>
Cc: Gerlando Falauto <[email protected]>
Cc: Valentin Longchamp <[email protected]>
Cc: Holger Brunck <[email protected]>
Acked-by: Gerlando Falauto <[email protected]>
Reviewed-by: Jagannadha Sutradharudu Teki <[email protected]>
common/cmd_sf.c
This page took 0.036865 seconds and 4 git commands to generate.