spi: ti_qspi: Remove unnecessary udelay for AM437x
authorVignesh R <vigneshr@ti.com>
Wed, 7 Sep 2016 09:48:23 +0000 (15:18 +0530)
committerJagan Teki <jagannadh.teki@gmail.com>
Wed, 21 Sep 2016 19:28:26 +0000 (00:58 +0530)
This udelay() was added as an HACK and is no longer required. All
read/write/erase operations work fine even without this delay. Hence,
remove the udelay() call.

Tested read/write/erase operation on AM437x SK. Also tested QSPI Boot.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Jagan Teki <jteki@openedev.com>
drivers/spi/ti_qspi.c

index 1e2c432ede66b04b13a4991acd8de16531cedd50..406e76b8a7807d42a089a2f6a11aa01c0f8ff6be 100644 (file)
@@ -226,13 +226,6 @@ static int __ti_qspi_xfer(struct ti_qspi_priv *priv, unsigned int bitlen,
                priv->cmd |= QSPI_3_PIN;
        priv->cmd |= 0xfff;
 
-/* FIXME: This delay is required for successfull
- * completion of read/write/erase. Once its root
- * caused, it will be remove from the driver.
- */
-#ifdef CONFIG_AM43XX
-       udelay(100);
-#endif
        while (words) {
                u8 xfer_len = 0;