Skip to content
Commit 6e58a613 authored by Patryk Duda's avatar Patryk Duda Committed by Leif Lindholm
Browse files

Marvell/Drivers: MvSpiFlashDxe: Fix sector number obtaining



This commit fixes bug which was causing one sector of bytes to be
ommited. It was discovered when bytes to be written was 0 in last block,
but total count of bytes was multiplication of sector size. It turned
out that in every case one sector of data was missing.

This bug can be fixed in various ways, but this solution fixes hypotetical
situation in which total bytes count is smaller than sector size.

Signed-off-by: default avatarPatryk Duda <pdk@semihalf.com>
Reviewed-by: default avatarLeif Lindholm <leif.lindholm@linaro.org>
parent 9d52bba7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment