Searched hist:"1 cfce74fe5a2301ee9b384d9395ba95db930c9d6" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/cmd/ |
| H A D | nand.c | 1cfce74fe5a2301ee9b384d9395ba95db930c9d6 Wed Aug 24 16:46:32 UTC 2016 Tony Lindgren <tony@atomide.com> nand: Fix set_dev checks for no device
If we do nand device 0 command in u-boot on a device that has NAND support enabled but no NAND chip, we can get data abort at least on omaps.
Fix the issue by replacing the check with nand_info[dev] as suggested by Scott Wood. The check for name existed before because before the array-to-pointer conversion there was no way to directly test nand_info[dev] for emptiness.
Signed-off-by: Tony Lindgren <tony@atomide.com>
|