Files
u-boot/drivers
Ezequiel Garcia 07c5cbbd1e nand: zynq: Fix driver initialization
This driver is currently broken, refusing to initialize properly.

The reason is that get_nand_dev_by_index() was being called before
nand_register(), thus returning a pointer into uninitialized memory.
In other words, the struct mtd_info used by the driver is total junk.

Fix it by getting the correct struct mtd_info, via nand_to_mtd()
on the driver's struct nand_chip.

Tested on a custom board, where the CPU is halted without this patch.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Reviewed-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2018-04-23 13:15:27 +02:00
..
2018-04-13 13:02:50 -04:00
2018-02-13 23:24:22 -05:00
2018-03-21 23:23:13 +01:00
2018-02-18 15:53:48 -07:00
2018-02-21 20:28:15 +01:00
2018-04-06 20:45:44 -04:00
2018-04-06 17:04:33 -04:00
2018-04-21 18:33:30 +02:00
2018-04-23 13:15:27 +02:00
2018-04-01 20:36:39 -04:00
2018-03-13 18:12:35 +01:00
2016-02-06 12:00:59 +01:00
2018-03-09 09:23:10 -05:00
2018-03-19 16:14:20 -04:00