]> git.baikalelectronics.ru Git - kernel.git/commitdiff
mailbox: add control_by_sw for mt8195
authorjason-jh.lin <jason-jh.lin@mediatek.com>
Fri, 10 Dec 2021 06:11:38 +0000 (14:11 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Wed, 12 Jan 2022 05:47:32 +0000 (23:47 -0600)
To make sure the GCE request signal to SPM is not trigger by
other HW modules and cause suspend premature wake.

Set 0x7 (the bit 0~2 as 1) to GCE_GCTL_VALUE, to configure the
request signal control by SW and release the request to SPM.

Signed-off-by: jason-jh.lin <jason-jh.lin@mediatek.com>
Reviewed-by: Tzung-Bi Shih <tzungbi@google.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/mtk-cmdq-mailbox.c

index e83bca84753bb41b5eb90ec768abb90f2eb704f9..bd986ab2f384078ee6356a2e41360d5db241c8db 100644 (file)
@@ -666,7 +666,7 @@ static const struct gce_plat gce_plat_v5 = {
 static const struct gce_plat gce_plat_v6 = {
        .thread_nr = 24,
        .shift = 3,
-       .control_by_sw = false,
+       .control_by_sw = true,
        .gce_num = 2
 };