]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00169906-5 GPMI : change the code for new interface
authorHuang Shijie <b32955@freescale.com>
Mon, 16 Jan 2012 07:01:55 +0000 (15:01 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:10:36 +0000 (14:10 +0200)
commit4b2ecd19596616b9565ca033948251d0f902396f
tree6a9ee7b57fb2ac87c75a4359fc3ab8d234334bd8
parente7d63dafbeefd3e9dfdac3dba53b0977e88d9d91
ENGR00169906-5 GPMI : change the code for new interface

If we do not set the WAIT4END in the middle DMA command structure
of the long DMA command chain, a DMA timeout may occurs.

The reason of the DMA timeout is:
[1] We do not set the WAIT4END in the DMA command structure
    which do the ECC READ PAGE by the BCH.
[2] So the following DMA command structure (maybe in other DMA
CHAIN)may disable the BCH module.
[3] If the time delay between [2] and [1] is long enough,
    it's ok. But if the time delay is not long enough, the BCH
    module may become unnormal, so it can not finish its job.
    The DMA will timeout in this case.

We have changed the DMA interface to fix the bug, now use the new
interface.

Acked-by: Jason Liu <r64343@freescale.com>
Signed-off-by: Huang Shijie <b32955@freescale.com>
drivers/mtd/nand/gpmi-nfc/hal-mx50.c