<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/drivers/memory/mtk-smi.c, branch linux-6.12.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-6.12.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-6.12.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2026-03-13T16:20:21+00:00</updated>
<entry>
<title>memory: mtk-smi: fix device leak on larb probe</title>
<updated>2026-03-13T16:20:21+00:00</updated>
<author>
<name>Johan Hovold</name>
<email>johan@kernel.org</email>
</author>
<published>2025-11-21T16:46:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=1f23a48ff2b8ab47e514f7c84a4b1dbf9b848168'/>
<id>urn:sha1:1f23a48ff2b8ab47e514f7c84a4b1dbf9b848168</id>
<content type='text'>
[ Upstream commit 9dae65913b32d05dbc8ff4b8a6bf04a0e49a8eb6 ]

Make sure to drop the reference taken when looking up the SMI device
during larb probe on late probe failure (e.g. probe deferral) and on
driver unbind.

Fixes: cc8bbe1a8312 ("memory: mediatek: Add SMI driver")
Fixes: 038ae37c510f ("memory: mtk-smi: add missing put_device() call in mtk_smi_device_link_common")
Cc: stable@vger.kernel.org	# 4.6: 038ae37c510f
Cc: stable@vger.kernel.org	# 4.6
Cc: Yong Wu &lt;yong.wu@mediatek.com&gt;
Cc: Miaoqian Lin &lt;linmq006@gmail.com&gt;
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Link: https://patch.msgid.link/20251121164624.13685-3-johan@kernel.org
Signed-off-by: Krzysztof Kozlowski &lt;krzk@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>memory: mtk-smi: fix device leaks on common probe</title>
<updated>2026-03-13T16:20:20+00:00</updated>
<author>
<name>Johan Hovold</name>
<email>johan@kernel.org</email>
</author>
<published>2025-11-21T16:46:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=984992f31cfb71b25cd0a72ef51ceb5dd6f187e8'/>
<id>urn:sha1:984992f31cfb71b25cd0a72ef51ceb5dd6f187e8</id>
<content type='text'>
[ Upstream commit 6cfa038bddd710f544076ea2ef7792fc82fbedd6 ]

Make sure to drop the reference taken when looking up the SMI device
during common probe on late probe failure (e.g. probe deferral) and on
driver unbind.

Fixes: 47404757702e ("memory: mtk-smi: Add device link for smi-sub-common")
Fixes: 038ae37c510f ("memory: mtk-smi: add missing put_device() call in mtk_smi_device_link_common")
Cc: stable@vger.kernel.org	# 5.16: 038ae37c510f
Cc: stable@vger.kernel.org	# 5.16
Cc: Yong Wu &lt;yong.wu@mediatek.com&gt;
Cc: Miaoqian Lin &lt;linmq006@gmail.com&gt;
Signed-off-by: Johan Hovold &lt;johan@kernel.org&gt;
Link: https://patch.msgid.link/20251121164624.13685-2-johan@kernel.org
Signed-off-by: Krzysztof Kozlowski &lt;krzk@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>memory: mtk-smi: Use devm_clk_get_enabled()</title>
<updated>2024-08-25T09:02:17+00:00</updated>
<author>
<name>Rong Qianfeng</name>
<email>rongqianfeng@vivo.com</email>
</author>
<published>2024-08-21T03:25:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ff390189b7f2cfa20c644bc58b4462b5e2621838'/>
<id>urn:sha1:ff390189b7f2cfa20c644bc58b4462b5e2621838</id>
<content type='text'>
Replace devm_clk_get() and clk_prepare_enable() with
devm_clk_get_enabled() in .probe().

Fix the bug of missing clk_disable_unprepare() in .remove() by
using devm_clk_get_enabled() that can disables and unprepares
it automatically on driver detach.

Fixes: 3c8f4ad85c4b ("memory/mediatek: add support for mt2701")
Cc: honghui.zhang@mediatek.com
Signed-off-by: Rong Qianfeng &lt;rongqianfeng@vivo.com&gt;
Reviewed-by: Yong Wu &lt;yong.wu@mediatek.com&gt;
Link: https://lore.kernel.org/r/20240821032558.43052-1-rongqianfeng@vivo.com
Signed-off-by: Krzysztof Kozlowski &lt;krzysztof.kozlowski@linaro.org&gt;
</content>
</entry>
<entry>
<title>memory: mtk-smi: fix module autoloading</title>
<updated>2024-04-11T06:22:26+00:00</updated>
<author>
<name>Krzysztof Kozlowski</name>
<email>krzysztof.kozlowski@linaro.org</email>
</author>
<published>2024-04-09T20:46:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=bf11908757eeab716536d16a32693b5dcd6990de'/>
<id>urn:sha1:bf11908757eeab716536d16a32693b5dcd6990de</id>
<content type='text'>
Add MODULE_DEVICE_TABLE(), so the module could be properly autoloaded
based on the alias from of_device_id table.

Reviewed-by: Yong Wu &lt;yong.wu@mediatek.com&gt;
Reviewed-by: AngeloGioacchino Del Regno &lt;angelogioacchino.delregno@collabora.com&gt;
Link: https://lore.kernel.org/r/20240409204615.83928-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Krzysztof Kozlowski &lt;krzysztof.kozlowski@linaro.org&gt;
</content>
</entry>
<entry>
<title>memory: mtk-smi: Convert to platform remove callback returning void</title>
<updated>2023-12-19T08:05:17+00:00</updated>
<author>
<name>Uwe Kleine-König</name>
<email>u.kleine-koenig@pengutronix.de</email>
</author>
<published>2023-12-17T14:29:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=08c1aeaa45ce0fd18912e92c6705586c8aa5240f'/>
<id>urn:sha1:08c1aeaa45ce0fd18912e92c6705586c8aa5240f</id>
<content type='text'>
The .remove() callback for a platform driver returns an int which makes
many driver authors wrongly assume it's possible to do error handling by
returning an error code. However the value returned is ignored (apart
from emitting a warning) and this typically results in resource leaks.

To improve here there is a quest to make the remove callback return
void. In the first step of this quest all drivers are converted to
.remove_new(), which already returns void. Eventually after all drivers
are converted, .remove_new() will be renamed to .remove().

Trivially convert this driver from always returning zero in the remove
callback to the void returning variant.

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@pengutronix.de&gt;
Link: https://lore.kernel.org/r/5c35a33cfdc359842e034ddd2e9358f10e91fa1f.1702822744.git.u.kleine-koenig@pengutronix.de
Signed-off-by: Krzysztof Kozlowski &lt;krzysztof.kozlowski@linaro.org&gt;
</content>
</entry>
<entry>
<title>memory: mtk-smi: mt8365: Add SMI Support</title>
<updated>2023-04-10T16:57:15+00:00</updated>
<author>
<name>Alexandre Mergnat</name>
<email>amergnat@baylibre.com</email>
</author>
<published>2023-04-07T09:13:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3ec0e1ea4770e40575bfb2bb4e9ebbbaa3c80d3f'/>
<id>urn:sha1:3ec0e1ea4770e40575bfb2bb4e9ebbbaa3c80d3f</id>
<content type='text'>
Add MT8365 SMI common support.

Reviewed-by: Yong Wu &lt;yong.wu@mediatek.com&gt;
Signed-off-by: Alexandre Mergnat &lt;amergnat@baylibre.com&gt;
Link: https://lore.kernel.org/r/20230407-smi-driver-v2-1-8da6683cdb5c@baylibre.com
Signed-off-by: Krzysztof Kozlowski &lt;krzysztof.kozlowski@linaro.org&gt;
</content>
</entry>
<entry>
<title>memory: mtk-smi: mt8188: Add SMI Support</title>
<updated>2022-08-30T17:54:05+00:00</updated>
<author>
<name>Chengci.Xu</name>
<email>chengci.xu@mediatek.com</email>
</author>
<published>2022-08-17T12:46:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=673e71df5ccfaefeb32bb5b3130a5d397b742194'/>
<id>urn:sha1:673e71df5ccfaefeb32bb5b3130a5d397b742194</id>
<content type='text'>
Add mt8188 smi common &amp; larb support

Signed-off-by: Chengci.Xu &lt;chengci.xu@mediatek.com&gt;
Reviewed-by: AngeloGioacchino Del Regno &lt;angelogioacchino.delregno@collabora.com&gt;
Reviewed-by: Yong Wu &lt;yong.wu@mediatek.com&gt;
Signed-off-by: Krzysztof Kozlowski &lt;krzysztof.kozlowski@linaro.org&gt;
Link: https://lore.kernel.org/r/20220817124608.10062-5-chengci.xu@mediatek.com
</content>
</entry>
<entry>
<title>memory: mtk-smi: Add enable IOMMU SMC command for MM master</title>
<updated>2022-08-30T17:54:05+00:00</updated>
<author>
<name>Chengci.Xu</name>
<email>chengci.xu@mediatek.com</email>
</author>
<published>2022-08-17T12:46:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=4e508b259ed02f5fa608cdd83b817a7f49c22271'/>
<id>urn:sha1:4e508b259ed02f5fa608cdd83b817a7f49c22271</id>
<content type='text'>
For concerns about security, the register to enable/disable IOMMU of
SMI LARB should only be configured in secure world. Thus, we add some
SMC command for multimedia master to enable/disable MM IOMMU in ATF by
setting the register of SMI LARB. This function is prepared for MT8188.

Signed-off-by: Chengci.Xu &lt;chengci.xu@mediatek.com&gt;
Signed-off-by: Krzysztof Kozlowski &lt;krzysztof.kozlowski@linaro.org&gt;
Link: https://lore.kernel.org/r/20220817124608.10062-4-chengci.xu@mediatek.com
</content>
</entry>
<entry>
<title>memory: mtk-smi: Add return value for configure port function</title>
<updated>2022-08-30T17:54:04+00:00</updated>
<author>
<name>Chengci.Xu</name>
<email>chengci.xu@mediatek.com</email>
</author>
<published>2022-08-17T12:46:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=8c1561edc0692fa8e321daf2777c3c32454b5748'/>
<id>urn:sha1:8c1561edc0692fa8e321daf2777c3c32454b5748</id>
<content type='text'>
In MT8188, the register to enable/disable IOMMU can only be configured
in secure world by SMC call. We should add a return value for configure
port function for preparation because SMC call may return an error result.

Signed-off-by: Chengci.Xu &lt;chengci.xu@mediatek.com&gt;
Reviewed-by: Yong Wu &lt;yong.wu@mediatek.com&gt;
Signed-off-by: Krzysztof Kozlowski &lt;krzysztof.kozlowski@linaro.org&gt;
Link: https://lore.kernel.org/r/20220817124608.10062-3-chengci.xu@mediatek.com
</content>
</entry>
<entry>
<title>Merge tag 'memory-controller-drv-5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl into arm/drivers</title>
<updated>2022-07-01T20:56:39+00:00</updated>
<author>
<name>Arnd Bergmann</name>
<email>arnd@arndb.de</email>
</author>
<published>2022-07-01T20:56:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=3ed9222ce728fd3f1c4e429293270f58f3a8256d'/>
<id>urn:sha1:3ed9222ce728fd3f1c4e429293270f58f3a8256d</id>
<content type='text'>
Memory controller drivers for v5.20

Add MediaTek MT6795 Helio X10 SMI support.

* tag 'memory-controller-drv-5.20' of git://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux-mem-ctrl:
  memory: mtk-smi: Add support for MT6795 Helio X10
  dt-bindings: memory: mtk-smi: Add MT6795 Helio X10 bindings

Link: https://lore.kernel.org/r/20220624081828.33649-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
</content>
</entry>
</feed>
