linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v7 0/2] Add SMI reset and clamp for MediaTek MT8188 SoC
@ 2025-04-30  9:45 Friday Yang
  2025-04-30  9:45 ` [PATCH v7 1/2] dt-bindings: memory: mediatek: Add SMI reset and clamp for MT8188 Friday Yang
  2025-04-30  9:45 ` [PATCH v7 2/2] memory: mtk-smi: mt8188: " Friday Yang
  0 siblings, 2 replies; 7+ messages in thread
From: Friday Yang @ 2025-04-30  9:45 UTC (permalink / raw)
  To: Yong Wu, Krzysztof Kozlowski, Rob Herring, Conor Dooley,
	Matthias Brugger, AngeloGioacchino Del Regno, Philipp Zabel
  Cc: Friday Yang, linux-mediatek, linux-kernel, devicetree,
	linux-arm-kernel, Project_Global_Chrome_Upstream_Group

Based on tag: next-20250429, linux-next/master

On the MediaTek MT8188 SoC platform, we encountered power-off failures
and SMI bus hang issues during camera stress tests. The issue arises
because bus glitches are sometimes produced when MTCMOS powers on or
off. While this is fairly normal, the software must handle these
glitches to avoid mistaking them for transaction signals. What's
more, this issue emerged only after the initial upstreaming of SMI
driver.

The software solutions can be summarized as follows:

1. Use CLAMP to disable the SMI sub-common port after turning off the
   LARB CG and before turning off the LARB MTCMOS.
2. Use CLAMP to disable/enable the SMI sub-common port.
3. Implement an AXI reset for SMI LARBs.

Changes v7:
- Remove the 'devm_pm_runtime_enable' change.

v6:
https://lore.kernel.org/lkml/20250408033206.12176-2-friday.yang@mediatek.com/
https://lore.kernel.org/lkml/20250408033206.12176-3-friday.yang@mediatek.com/
https://lore.kernel.org/lkml/20250408-bulky-optimistic-lobster-69ed77@shite/

friday.yang (2):
  dt-bindings: memory: mediatek: Add SMI reset and clamp for MT8188
  memory: mtk-smi: mt8188: Add SMI reset and clamp for MT8188

 .../mediatek,smi-common.yaml                  |   2 +
 .../memory-controllers/mediatek,smi-larb.yaml |  19 +++
 drivers/memory/mtk-smi.c                      | 133 ++++++++++++++++++
 3 files changed, 154 insertions(+)

--
2.46.0



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

end of thread, other threads:[~2025-07-28  7:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-30  9:45 [PATCH v7 0/2] Add SMI reset and clamp for MediaTek MT8188 SoC Friday Yang
2025-04-30  9:45 ` [PATCH v7 1/2] dt-bindings: memory: mediatek: Add SMI reset and clamp for MT8188 Friday Yang
2025-05-04 13:42   ` Krzysztof Kozlowski
2025-07-28  6:21     ` Friday Yang (杨阳)
2025-04-30  9:45 ` [PATCH v7 2/2] memory: mtk-smi: mt8188: " Friday Yang
2025-05-04 13:40   ` Krzysztof Kozlowski
2025-07-28  6:21     ` Friday Yang (杨阳)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).