linux-yocto/drivers/mailbox
Jason-JH Lin 3196b6c708 mailbox: mtk-cmdq: Refine GCE_GCTL_VALUE setting
[ Upstream commit 9fcebcb37c ]

Add cmdq_gctl_value_toggle() to configure GCE_CTRL_BY_SW and GCE_DDR_EN
together in the same GCE_GCTL_VALUE register.

For the SoCs whose GCE is located in MMINFRA and uses MMINFRA_AO power,
this allows it to be written without enabling the clocks. Otherwise, all
GCE registers should be written after the GCE clocks are enabled.
Move this function into cmdq_runtime_resume() and cmdq_runtime_suspend()
to ensure it is called when the GCE clock is enabled.

Fixes: 7abd037aa5 ("mailbox: mtk-cmdq: add gce ddr enable support flow")
Signed-off-by: Jason-JH Lin <jason-jh.lin@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-19 15:32:07 +02:00
..
arm_mhu_db.c mailbox: Explicitly include correct DT includes 2023-09-05 10:10:58 -05:00
arm_mhu.c mailbox: Explicitly include correct DT includes 2023-09-05 10:10:58 -05:00
arm_mhuv2.c mailbox: arm_mhuv2: clean up loop in get_irq_chan_comb() 2024-12-05 14:02:17 +01:00
arm_mhuv3.c mailbox: arm_mhuv3: Add driver 2024-05-19 22:30:09 -05:00
armada-37xx-rwtm-mailbox.c treewide: change my e-mail address, fix my name 2021-04-09 14:54:23 -07:00
bcm-flexrm-mailbox.c irqchip: Convert all platform MSI users to the new API 2024-02-15 17:55:40 +01:00
bcm-pdc-mailbox.c mailbox: bcm-pdc: remove unused struct 'pdc_dma_map' 2024-07-10 13:24:55 -05:00
bcm2835-mailbox.c mailbox: bcm2835: Fix timeout during suspend mode 2024-09-22 19:19:17 -05:00
hi3660-mailbox.c mailbox: Explicitly include correct DT includes 2023-09-05 10:10:58 -05:00
hi6220-mailbox.c mailbox: Explicitly include correct DT includes 2023-09-05 10:10:58 -05:00
imx-mailbox.c mailbox: imx: Fix TXDB_V2 sending 2025-06-19 15:32:07 +02:00
Kconfig mailbox, remoteproc: omap2+: fix compile testing 2024-09-27 09:11:05 -05:00
mailbox-altera.c mailbox: altera: Make use of the helper function devm_platform_ioremap_resource() 2021-10-16 14:39:48 -05:00
mailbox-mpfs.c mailbox: Explicitly include correct DT includes 2023-09-05 10:10:58 -05:00
mailbox-sti.c mailbox: Use device_get_match_data() 2023-10-15 12:39:16 -05:00
mailbox-test.c mailbox: mailbox-test: Convert to platform remove callback returning void 2024-01-13 23:08:51 -06:00
mailbox-xgene-slimpro.c mailbox: xgene-slimpro: Make use of the helper function devm_platform_ioremap_resource() 2021-10-16 14:39:49 -05:00
mailbox.c mailbox: use error ret code of of_parse_phandle_with_args() 2025-05-29 11:02:04 +02:00
mailbox.h mailbox: fix various typos in comments 2021-04-13 20:07:35 -05:00
Makefile mailbox: Add support for QTI CPUCP mailbox controller 2024-07-10 13:24:55 -05:00
mtk-adsp-mailbox.c mailbox: Explicitly include correct DT includes 2023-09-05 10:10:58 -05:00
mtk-cmdq-mailbox.c mailbox: mtk-cmdq: Refine GCE_GCTL_VALUE setting 2025-06-19 15:32:07 +02:00
omap-mailbox.c kfifo: don't include dma-mapping.h in kfifo.h 2024-12-05 14:03:03 +01:00
pcc.c mailbox: pcc: Use acpi_os_ioremap() instead of ioremap() 2025-05-29 11:02:04 +02:00
pl320-ipc.c mailbox: fix various typos in comments 2021-04-13 20:07:35 -05:00
platform_mhu.c mailbox: Explicitly include correct DT includes 2023-09-05 10:10:58 -05:00
qcom-apcs-ipc-mailbox.c mailbox: qcom-apcs-ipc: Convert to platform remove callback returning void 2024-01-13 23:08:51 -06:00
qcom-cpucp-mbox.c mailbox: qcom-cpucp: Mark the irq with IRQF_NO_SUSPEND flag 2024-11-12 19:45:25 +01:00
qcom-ipcc.c mailbox: qcom-ipcc: Convert to platform remove callback returning void 2024-01-13 23:08:51 -06:00
rockchip-mailbox.c mailbox: rockchip: fix a typo in module autoloading 2024-09-22 19:19:17 -05:00
sprd-mailbox.c mailbox: sprd: Use devm_clk_get_enabled() helpers 2024-09-22 19:19:17 -05:00
stm32-ipcc.c mailbox: stm32-ipcc: Convert to platform remove callback returning void 2024-01-13 23:08:51 -06:00
sun6i-msgbox.c mailbox: sun6i-msgbox: Convert to platform remove callback returning void 2024-01-13 23:08:51 -06:00
tegra-hsp.c mailbox: tegra-hsp: Define dimensioning masks in SoC data 2025-04-20 10:15:45 +02:00
ti-msgmgr.c mailbox: Use device_get_match_data() 2023-10-15 12:39:16 -05:00
zynqmp-ipi-mailbox.c mailbox: zynqmp: Remove invalid __percpu annotation in zynqmp_ipi_probe() 2025-02-17 10:05:40 +01:00