diff mbox

[U-Boot,v2,3/3] spi: ti_qspi: Remove delay in read path for dra7xx

Message ID 20160722052550.13339-3-vigneshr@ti.com
State Accepted
Commit fee3b6af903c0e24b662694427b62658f40c7d4b
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Commit Message

Raghavendra, Vignesh July 22, 2016, 5:25 a.m. UTC
As per commit b545a98f5dc563 ("spi: ti_qspi: Add delay
for successful bulk erase) says its added to meet bulk erase timing
constraints. But bulk erase is a cmd to flash and delay in read path
does not make sense. Morever, testing on DRA74/DRA72 evm has shown that
this delay is no longer required.

Signed-off-by: Vignesh R <vigneshr@ti.com>
---

v2: no patch

 drivers/spi/ti_qspi.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Jagan Teki July 22, 2016, 8:23 a.m. UTC | #1
On 22 July 2016 at 10:55, Vignesh R <vigneshr@ti.com> wrote:
> As per commit b545a98f5dc563 ("spi: ti_qspi: Add delay
> for successful bulk erase) says its added to meet bulk erase timing
> constraints. But bulk erase is a cmd to flash and delay in read path
> does not make sense. Morever, testing on DRA74/DRA72 evm has shown that
> this delay is no longer required.
>
> Signed-off-by: Vignesh R <vigneshr@ti.com>

Reviewed-by: Jagan Teki <jteki@openedev.com>

> ---
>
> v2: no patch
>
>  drivers/spi/ti_qspi.c | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c
> index 56ae29a3ee7c..fa7ee229878a 100644
> --- a/drivers/spi/ti_qspi.c
> +++ b/drivers/spi/ti_qspi.c
> @@ -249,9 +249,6 @@ static int __ti_qspi_xfer(struct ti_qspi_priv *priv, unsigned int bitlen,
>                 if (rxp) {
>                         debug("rx cmd %08x dc %08x\n",
>                               ((u32)(priv->cmd | QSPI_RD_SNGL)), priv->dc);
> -                       #ifdef CONFIG_DRA7XX
> -                               udelay(500);
> -                       #endif

Thanks for this change.

--
Jagan.
Mugunthan V N July 22, 2016, 10:09 a.m. UTC | #2
On Friday 22 July 2016 10:55 AM, Vignesh R wrote:
> As per commit b545a98f5dc563 ("spi: ti_qspi: Add delay
> for successful bulk erase) says its added to meet bulk erase timing
> constraints. But bulk erase is a cmd to flash and delay in read path
> does not make sense. Morever, testing on DRA74/DRA72 evm has shown that
> this delay is no longer required.
> 
> Signed-off-by: Vignesh R <vigneshr@ti.com>

Reviewed-by: Mugunthan V N <mugunthanvnm@ti.com>

Regards
Mugunthan V N
Jagan Teki July 23, 2016, 4:07 p.m. UTC | #3
On 22 July 2016 at 15:39, Mugunthan V N <mugunthanvnm@ti.com> wrote:
> On Friday 22 July 2016 10:55 AM, Vignesh R wrote:
>> As per commit b545a98f5dc563 ("spi: ti_qspi: Add delay
>> for successful bulk erase) says its added to meet bulk erase timing
>> constraints. But bulk erase is a cmd to flash and delay in read path
>> does not make sense. Morever, testing on DRA74/DRA72 evm has shown that
>> this delay is no longer required.
>>
>> Signed-off-by: Vignesh R <vigneshr@ti.com>
>
> Reviewed-by: Mugunthan V N <mugunthanvnm@ti.com>

Applied to u-boot-spi/master

thanks!
diff mbox

Patch

diff --git a/drivers/spi/ti_qspi.c b/drivers/spi/ti_qspi.c
index 56ae29a3ee7c..fa7ee229878a 100644
--- a/drivers/spi/ti_qspi.c
+++ b/drivers/spi/ti_qspi.c
@@ -249,9 +249,6 @@  static int __ti_qspi_xfer(struct ti_qspi_priv *priv, unsigned int bitlen,
 		if (rxp) {
 			debug("rx cmd %08x dc %08x\n",
 			      ((u32)(priv->cmd | QSPI_RD_SNGL)), priv->dc);
-			#ifdef CONFIG_DRA7XX
-				udelay(500);
-			#endif
 			writel(priv->cmd | QSPI_RD_SNGL, &priv->base->cmd);
 			status = readl(&priv->base->status);
 			timeout = QSPI_TIMEOUT;