diff options
author | Patrick van Gelder <patrick.vangelder@nl.bosch.com> | 2020-04-24 01:28:56 -0600 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2020-04-27 14:21:18 +0200 |
commit | 27d706937a5c72f0414a540ca20fd36b4b72bda7 (patch) | |
tree | 9b5b7ffe47178724ab982542f03dde4d21e6782a /configs/am3517_crane_defconfig | |
parent | 19d130450544f505589b25afc30508136ab52b71 (diff) |
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>
Diffstat (limited to 'configs/am3517_crane_defconfig')
0 files changed, 0 insertions, 0 deletions