u-boot/drivers/mtd/nand
Patrick van Gelder 27d706937a ARM: zynq: Fix invalid check on NAND_CMD_NONE.
The end_cmd field in the variables cmd_phase_addr and data_phase_addr
contains the value 0xFF when the end_cmd equals NAND_CMD_NONE. This
should be 0x00.

This is caused by comparing NAND_CMD_NONE (int) with end_cmd (u8).
end_cmd will be promoted by the int value -1 and therefore is not equal
to 0xFF. Solved by casting NAND_CMD_NONE to u8 which will avoid int
promotion.

Signed-off-by: Patrick van Gelder <patrick.vangelder@nl.bosch.com>
Reviewed-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2020-04-27 14:21:18 +02:00
..
raw ARM: zynq: Fix invalid check on NAND_CMD_NONE. 2020-04-27 14:21:18 +02:00
spi dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
bbt.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
core.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
Kconfig mtd: nand: Add core infrastructure to support SPI NANDs 2018-09-20 20:10:49 +05:30
Makefile mtd: Makefile: deep cleanup 2019-12-04 17:10:51 -05:00