arm: tegra: fuse: Fixed burning fuse through sysfs
Sumit Sharma [Wed, 28 Nov 2012 06:21:10 +0000 (11:21 +0530)]
Fixed fuse burning issue by adding 1 ms delay in fuse_program function

Bug 1057910

Change-Id: Id0d754a195c2a78ec4bf5a41f3ffb2bbd6c9c5ea
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/166789
Reviewed-by: Mrutyunjay Sawant <msawant@nvidia.com>
Tested-by: Mrutyunjay Sawant <msawant@nvidia.com>

arch/arm/mach-tegra/tegra_odm_fuses.c

index a100404..f6099e9 100644 (file)
@@ -653,6 +653,10 @@ int tegra_fuse_program(struct fuse_data *pgm_data, u32 flags)
        }
 
        pr_debug("%s: use %d programming cycles\n", __func__, fuse_pgm_cycles[index]);
+
+       /* FIXME: Ideally, this delay should not be present */
+       mdelay(1);
+
        fuse_program_array(fuse_pgm_cycles[index]);
 
        memset(&fuse_info, 0, sizeof(fuse_info));