summaryrefslogtreecommitdiff
path: root/drivers/char
diff options
context:
space:
mode:
authorAshutosh Patel <ashutoshp@nvidia.com>2013-06-04 15:41:02 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 13:17:31 -0700
commitf073b0d21db468c27685c9ac29c7d247788d2bcc (patch)
tree39a440108c31aefae99ddb2a48a324c14d84daab /drivers/char
parente93052e30d217a8816a6fa89a1dcd85fb5764644 (diff)
tegra_pflash: Increase erase and write delay timings of tegra-pflash
Change: - Increase erase and write delay timings of tegra-pflash bug 1292129 Change-Id: I6d3d904c5b40371a3f7f3847bca82e2fe02e8f33 Signed-off-by: Ashutosh Patel <ashutoshp@nvidia.com> Reviewed-on: http://git-master/r/235407 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Nitin Sehgal <nsehgal@nvidia.com> Tested-by: Nitin Sehgal <nsehgal@nvidia.com> Reviewed-by: Nate Huang <nhuang@nvidia.com> Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Diffstat (limited to 'drivers/char')
-rw-r--r--drivers/char/tegra_pflash.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/char/tegra_pflash.c b/drivers/char/tegra_pflash.c
index c8dc1d16147a..03e63461de64 100644
--- a/drivers/char/tegra_pflash.c
+++ b/drivers/char/tegra_pflash.c
@@ -210,8 +210,8 @@ static long parallel_flash_writer_ioctl(struct file *filep,
if (!pdata.chip_erase[chip_no])
continue;
- /* timeout is 2 seconds */
- timeout = jiffies + 2 * HZ;
+ /* timeout is 4 seconds */
+ timeout = jiffies + 4 * HZ;
do {
loc = blk_no + pdata.chip_ofs[chip_no];
status = cfi2_chip_ready(chip_no,
@@ -267,7 +267,7 @@ static long parallel_flash_writer_ioctl(struct file *filep,
}
/* Giving delay of more than 340us for
program to complete */
- cfi_udelay(1000);
+ cfi_udelay(1500);
pr_debug("Program commands sent." \
"Checking whether chip is ready\n");
@@ -278,8 +278,8 @@ static long parallel_flash_writer_ioctl(struct file *filep,
if (!pdata.start_prog[chip_no])
continue;
- /* Timeout set to 2 second */
- timeout = jiffies + 2 * HZ;
+ /* Timeout set to 4 second */
+ timeout = jiffies + 4 * HZ;
do {
loc = pdata.chip_ofs[chip_no] +
blk_no + buf_no;
@@ -301,8 +301,8 @@ static long parallel_flash_writer_ioctl(struct file *filep,
if (!pdata.start_prog[chip_no])
continue;
- /* Timeout set to 3 second */
- timeout = jiffies + 5 * HZ;
+ /* Timeout set to 7 second */
+ timeout = jiffies + 7 * HZ;
do {
unsigned long data;
loc = blk_no + buf_no;