soc: mmsys: mediatek: add mask to mmsys routes
authorCK Hu <ck.hu@mediatek.com>
Thu, 29 Jul 2021 07:05:49 +0000 (09:05 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Wed, 4 Aug 2021 17:05:46 +0000 (19:05 +0200)
commit7bdcead7a75e3eab5e711c2da78c2a0360e7f2a4
tree8c74a94dc5759011732b592aecc452f97d299890
parent114956518c85f4e93c298749b35b46b2e78a2ec9
soc: mmsys: mediatek: add mask to mmsys routes

SOUT has many bits and need to be cleared before set new value.
Write only could do the clear, but for MOUT, it clears bits that
should not be cleared. So use a mask to reset only the needed bits.

this fixes HDMI issues on MT7623/BPI-R2 since 5.13

Fixes: 440147639ac7 ("soc: mediatek: mmsys: Use an array for setting the routing registers")
Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
Reviewed-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Reviewed-by: Hsin-Yi Wang <hsinyi@chromium.org>
Link: https://lore.kernel.org/r/20210729070549.5514-1-linux@fw-web.de
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
drivers/soc/mediatek/mt8183-mmsys.h
drivers/soc/mediatek/mtk-mmsys.c
drivers/soc/mediatek/mtk-mmsys.h