[U-Boot] [PATCH] mtd: nand: Fix length bug in ioread16_rep() and iowrite16_rep()

Heiko Schocher hs at denx.de
Fri Sep 5 10:06:48 CEST 2014


Hello Stefan,

Am 05.09.2014 09:57, schrieb Stefan Roese:
> The ioread16_rep() and iowrite16_rep() implementations are U-Boot specific
> and have been introduced with the Linux MTD v3.14 sync. While introducing
> these functions, the length for the loop has been miscalculated. The ">>  1"
> is already present in the caller. So lets remove it in the function.
>
> Tested on omap3_ha.
>
> Signed-off-by: Stefan Roese<sr at denx.de>
> Cc: Heiko Schocher<hs at denx.de>
> Cc: Tom Rini<trini at ti.com>
> Cc: Scott Wood<scottwood at freescale.com>
> ---
>   drivers/mtd/nand/nand_base.c | 4 +---
>   1 file changed, 1 insertion(+), 3 deletions(-)

Good catch, thanks!

Acked-by: Heiko Schocher <hs at denx.de>

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


More information about the U-Boot mailing list