diff options
author | Avri Altman <avri.altman@wdc.com> | 2021-04-20 16:46:41 +0300 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2021-04-23 10:11:17 +0200 |
commit | aea0440ad023ab0662299326f941214b0d7480bd (patch) | |
tree | 38b07daea517b32ec221902af94bb2dfb2a6cc12 /drivers/memstick/host | |
parent | edd602146507532c1714d8428f654b87205f492e (diff) | |
download | linux-stable-aea0440ad023ab0662299326f941214b0d7480bd.tar.gz linux-stable-aea0440ad023ab0662299326f941214b0d7480bd.tar.bz2 linux-stable-aea0440ad023ab0662299326f941214b0d7480bd.zip |
mmc: block: Update ext_csd.cache_ctrl if it was written
The cache function can be turned ON and OFF by writing to the CACHE_CTRL
byte (EXT_CSD byte [33]). However, card->ext_csd.cache_ctrl is only
set on init if cache size > 0.
Fix that by explicitly setting ext_csd.cache_ctrl on ext-csd write.
Signed-off-by: Avri Altman <avri.altman@wdc.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20210420134641.57343-3-avri.altman@wdc.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/memstick/host')
0 files changed, 0 insertions, 0 deletions