diff options
author | Venkatraman S <[email protected]> | 2012-06-22 11:42:36 +0530 |
---|---|---|
committer | Chris Ball <[email protected]> | 2012-07-10 23:04:04 -0400 |
commit | 6af9e96e052a6d1a760c60cb340c5a6584cb92db (patch) | |
tree | 60ff946a87bcedf6a3e3eccafa994f468f955b75 /lib/mpi/mpi-cmp.c | |
parent | fd0ea65d3e675e479e022b6cfc9ebe1864c76afc (diff) |
mmc: core: Fix the HPI execution sequence
mmc_execute_hpi should send the HPI command only once, and only
if the card is in PRG state.
According to eMMC spec, the command's completion time is
not dependent on OUT_OF_INTERRUPT_TIME. Only the transition
out of PRG STATE is guarded by OUT_OF_INTERRUPT_TIME - which
is defined to begin at the end of sending the command itself.
Specify the default timeout for the actual sending of HPI
command, and then use OUT_OF_INTERRUPT_TIME to wait for
the transition out of PRG state.
Reported-by: Alex Lemberg <[email protected]>
Signed-off-by: Venkatraman S <[email protected]>
Reviewed-by: Namjae Jeon <[email protected]>
Reviewed-by: Subhash Jadavani <[email protected]>
Acked-by: Jaehoon Chung <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions