emmc: pre-alloc cali blk_test memory to fix suspend/resume failed
authorNan Li <nan.li@amlogic.com>
Wed, 6 Sep 2017 02:25:10 +0000 (10:25 +0800)
committerVictor Wan <victor.wan@amlogic.com>
Fri, 8 Sep 2017 03:28:45 +0000 (20:28 -0700)
commit4e128497b22e99187ddbd85254a6791f656e456c
tree025562dda6847a82137592321e2f18eab9aff075
parente57a03aafe3df97f614d27a1e14577a19eb09f38
emmc: pre-alloc cali blk_test memory to fix suspend/resume failed

PD#150194: modify suspend & resume fail.
1. fixed alloc blk_test memory on probe,
pre-allocated memory allows suspend/resume
without dynamic allocation.
2. do not flush cache while resume.

Change-Id: If4a310da82f053359f89599fd187ad51a24f16ba
Signed-off-by: Nan Li <nan.li@amlogic.com>
drivers/amlogic/mmc/aml_sd_emmc.c
drivers/mmc/core/mmc.c
include/linux/amlogic/sd.h