From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vignesh R Date: Thu, 1 Sep 2016 13:24:40 +0530 Subject: [U-Boot] [PATCH 2/2] spi: ti_qspi: Remove unnecessary udelay for AM437x In-Reply-To: <20160901075440.29943-1-vigneshr@ti.com> References: <20160901075440.29943-1-vigneshr@ti.com> Message-ID: <20160901075440.29943-3-vigneshr@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- drivers/spi/ti_qspi.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c index fe2a280cc7ae..1c215a0f89e2 100644 --- a/drivers/spi/ti_qspi.c +++ b/drivers/spi/ti_qspi.c @@ -225,13 +225,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; -- 2.9.3