mmc: sdhci-of-at91: fix set_uhs_signaling rewriting of MC1R
stable inclusion from stable-v5.10.137 commit 2985acdaf27da191a1ca2e42a605ca9baeb9fd20 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I60PLB Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2985acdaf27da191a1ca2e42a605ca9baeb9fd20 -------------------------------- [ Upstream commit 5987e6de ] In set_uhs_signaling, the DDR bit is being set by fully writing the MC1R register. This can lead to accidental erase of certain bits in this register. Avoid this by doing a read-modify-write operation. Fixes: d0918764 ("mmc: sdhci-of-at91: fix MMC_DDR_52 timing selection") Signed-off-by: NEugen Hristev <eugen.hristev@microchip.com> Tested-by: NKarl Olsen <karl@micro-technic.com> Acked-by: NAdrian Hunter <adrian.hunter@intel.com> Link: https://lore.kernel.org/r/20220630090926.15061-1-eugen.hristev@microchip.comSigned-off-by: NUlf Hansson <ulf.hansson@linaro.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com>
Showing
想要评论请 注册 或 登录