Dear All, I'd like to report that after moving the fsl-quadspi.c driver from ./drivers/mtd to ./drivers/spi (around 5.1-rc1) [1] the Vybrid's QUADSPI (even with single SPI-NOR memory connected) is not working anymore (the chip ID read is FF FF FF). This wouldn't be a problem per-se, but not all necessary code was moved - especially for vybrid which has issues with some HW bugs [2]: --------------->8---------------- * The IC guy suggests we use the "AHB Command Read" which is faster * then the "IP Command Read". (What's more is that there is a bug in * the "IP Command Read" in the Vybrid.) ---------------8<---------------- I've explicitly asked NXP support for this HW issue [3] - but till now there was no reply. The official linux-imx (from meta-freescale) seems not to support vybrid (vf610) anymore - and the newest available now kernel is 4.19 (with the old fsl-quadspi.c driver available). Hence the question - has anybody noticed this issue and (maybe) is working on it? My quick-hack is to revert the changes from [1] and apply some "fixes" (which causes this driver to work on Vybrid) on the old driver [4]. Maybe somebody from NXP (linux-imx@xxxxxxx ?) can ask HW guys what is the exact problem for Vybrid's QUADSPI controller, so it can be fixed properly in the new kernel? It would be great is somebody from Linux/HW team could reply to the original post [3]. Thanks in advance for _any_ help. Note: [1] - SHA1 IDs for the commits: 84d043185dbe0d1b4f6db575bd91c834d37e2f78 80261459804507a349daf754d6e5d835bb8578ae 78df30808961cd32f0517c7469886386b0680852 50f1242c674226dd866949f24043f5a1076ee242 fcf85e5c2ac0e57430f065c77407e33c7b036a9d [2] - https://elixir.bootlin.com/linux/v4.19-rc4/source/drivers/mtd/spi-nor/fsl-quadspi.c#L671 [3] - https://community.nxp.com/thread/485139 [4] - https://github.com/lmajewski/y2038_kernel/commits/v5.2-vybrid-old-quadspi Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@xxxxxxx
Attachment:
pgpJlaRxhRLo8.pgp
Description: OpenPGP digital signature
______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/