mmc: proactively issue bkops_start and refresh
authorMohit Kataria <mkataria@nvidia.com>
Tue, 5 Jun 2012 09:35:31 +0000 (14:35 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 12 Jul 2012 04:42:04 +0000 (09:42 +0530)
commitc64d0a0fe11a2610053d0925086b29c022bd86ea
treeeca1011d4062d0b42cf0f512aaaf89f18eebcf81
parent4fb485bcaabac9b602c0d60c29955c1b6e6dc269
mmc: proactively issue bkops_start and refresh

Adding CMD56 implementation.
Doing the following for manfid 0x90 and FW revisions 0x73 and
0x7b (both are non-standard custom FW):
1. Adding change to issue BKOPS_START whenever 20 seconds have gone
by without any slow write operations.
2. Adding change to issue CMD56 to refresh (custom feature) 1 block
whenever 60 seconds have gone by without any slow write operations.

Corresponding changes are already there in embedded branches:
http://git-master/r/#change,93247
http://git-master/r/#change,97555

Bug 847037.
Bug 874256.
Bug 963737.

Change-Id: Ie36b52620a75320abfedc36d1408647b36eddb46
Signed-off-by: Vishal Singh <vissingh@nvidia.com>
Reviewed-on: http://git-master/r/102259
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Luis Dib <ldib@nvidia.com>
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
drivers/mmc/core/core.c
drivers/mmc/core/mmc.c
drivers/mmc/core/mmc_ops.c
drivers/mmc/core/mmc_ops.h
include/linux/mmc/card.h
include/linux/mmc/core.h