mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] memory: mtk-smi: Enable sleep ctrl safety function for MT8195
@ 2022-02-04 12:55 AngeloGioacchino Del Regno
  2022-02-07  3:12 ` Macpaul Lin
  2022-02-08  8:30 ` Krzysztof Kozlowski
  0 siblings, 2 replies; 4+ messages in thread
From: AngeloGioacchino Del Regno @ 2022-02-04 12:55 UTC (permalink / raw)
  To: yong.wu
  Cc: krzysztof.kozlowski, matthias.bgg, linux-mediatek, linux-kernel,
	linux-arm-kernel, AngeloGioacchino Del Regno

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>
---
 drivers/memory/mtk-smi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/memory/mtk-smi.c b/drivers/memory/mtk-smi.c
index c22acd3ddd10..86a3d34f418e 100644
--- a/drivers/memory/mtk-smi.c
+++ b/drivers/memory/mtk-smi.c
@@ -351,7 +351,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,
 };
 
-- 
2.33.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-02-08  8:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-04 12:55 [PATCH] memory: mtk-smi: Enable sleep ctrl safety function for MT8195 AngeloGioacchino Del Regno
2022-02-07  3:12 ` Macpaul Lin
2022-02-07  8:59   ` Krzysztof Kozlowski
2022-02-08  8:30 ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®