summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAvri Altman <avri.altman@wdc.com>2021-04-20 16:46:41 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-05-11 14:47:14 +0200
commitb1fba87e60bc795a06c510ee797edbd61c41a755 (patch)
tree569a60b28f62b4a3fe7a77604836097dd98120a0 /include/linux
parentcdc615acade458f3b99ea83cc977c7edad027292 (diff)
mmc: block: Update ext_csd.cache_ctrl if it was written
commit aea0440ad023ab0662299326f941214b0d7480bd upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions