[BUG/RFC] denali NAND probe issues on SoCFPGA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hi!

I just found an issue with

   commit 586a2c52909df453ed1b6239283744b0851ccf81
   Author: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>
   Date:   Fri Sep 22 12:46:41 2017 +0900

mtd: nand: denali: squash denali_enable_dma() helper into caller

on (atleast) Cyclone5 SoCFPGAs.

With this patch I get

[ 0.543088] denali-nand-dt ff900000.nand: necessary clock is missing. default clock rates are used. [ 0.554325] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
   [    0.560654] nand: Micron MT29F2G08ABAEAWP
[ 0.564680] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 0.971317] nand: timeout while waiting for chip to become ready [ 1.991336] denali-nand-dt ff900000.nand: timeout while waiting for irq 0x4

and then the system just reboots. Adding the ioread32 back or just some printks fixes this. So there seems to be a timing issue. What would be the preferred solution? Add a msleep($IDONTKNOWWHATISAGOODVALUE) although it is unnecessary for the other SoCs?
Bringing the ioread32 back seems like obfuscating the problem.


Best regards,
Steffen

--
Pengutronix e.K. | Steffen Trumtrar | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany| Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555|

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux