Messages in this thread | | | From | Avri Altman <> | Subject | RE: [PATCH] mmc: block: enable cache-flushing when mmc cache is on | Date | Mon, 14 Mar 2022 07:26:26 +0000 |
| |
Hi, > The mmc core enable cache on default. But it only enables cache-flushing > when host supports cmd23 and eMMC supports reliable write. > For hosts which do not support cmd23 or eMMCs which do not support > reliable write, the cache can not be flushed by `sync` command. > This may leads to cache data lost. > This patch enables cache-flushing as long as cache is enabled, no matter host > supports cmd23 and/or eMMC supports reliable write or not. I looked in the spec and indeed couldn't find why enabling cache is dependent of cmd23/reliable write. Nor I was able to find the original commit log.
Please allow few days to ask internally.
Thanks, Avri
| |