]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
memory: mtk-smi: Enable sleep ctrl safety function for MT8195
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Fri, 4 Feb 2022 12:55:43 +0000 (13:55 +0100)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Tue, 8 Feb 2022 08:29:25 +0000 (09:29 +0100)
Enable the sleep ctrl function to wait until all the queued commands
are executed before suspending the LARBs, like done for MT8186.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Macpaul Lin <macpaul.lin@mediatek.com>
Link: https://lore.kernel.org/r/20220204125543.1189151-1-angelogioacchino.delregno@collabora.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
drivers/memory/mtk-smi.c

index 377ef019c4cf54e897c1d9cbedede9890d77fba0..903c2202c3b7923878311867f291166a88ad7064 100644 (file)
@@ -366,7 +366,8 @@ static const struct mtk_smi_larb_gen mtk_smi_larb_mt8192 = {
 
 static const struct mtk_smi_larb_gen mtk_smi_larb_mt8195 = {
        .config_port                = mtk_smi_larb_config_port_gen2_general,
-       .flags_general              = MTK_SMI_FLAG_THRT_UPDATE | MTK_SMI_FLAG_SW_FLAG,
+       .flags_general              = MTK_SMI_FLAG_THRT_UPDATE | MTK_SMI_FLAG_SW_FLAG |
+                                     MTK_SMI_FLAG_SLEEP_CTL,
        .ostd                       = mtk_smi_larb_mt8195_ostd,
 };