<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/drivers/soc/ti/k3-ringacc.c, branch linux-rolling-stable</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-stable</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-rolling-stable'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2025-04-18T15:36:39Z</updated>
<entry>
<title>soc: ti: k3-ringacc: Use device_match_of_node()</title>
<updated>2025-04-18T15:36:39Z</updated>
<author>
<name>Tang Dongxing</name>
</author>
<published>2025-03-31T12:14:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ae9c0b68089d5412bb252c4adbeff122017557c3'/>
<id>urn:sha1:ae9c0b68089d5412bb252c4adbeff122017557c3</id>
<content type='text'>
Replace the open-code with device_match_of_node().

Signed-off-by: Tang Dongxing &lt;tang.dongxing@zte.com.cn&gt;
Signed-off-by: Shao Mingyin &lt;shao.mingyin@zte.com.cn&gt;
Link: https://lore.kernel.org/r/20250331201425296l4h98bZjxHzs08fdvHrGO@zte.com.cn
Signed-off-by: Nishanth Menon &lt;nm@ti.com&gt;
</content>
</entry>
<entry>
<title>soc: Switch back to struct platform_driver::remove()</title>
<updated>2024-11-01T16:08:57Z</updated>
<author>
<name>Uwe Kleine-König</name>
</author>
<published>2024-10-29T07:48:58Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=511c06e3903563dba4472430e1b586745b6ae238'/>
<id>urn:sha1:511c06e3903563dba4472430e1b586745b6ae238</id>
<content type='text'>
After commit 0edb555a65d1 ("platform: Make platform_driver::remove()
return void") .remove() is (again) the right callback to implement for
platform drivers.

Convert all platform drivers below drivers/soc to use .remove(), with
the eventual goal to drop struct platform_driver::remove_new(). As
.remove() and .remove_new() have the same prototypes, conversion is done
by just changing the structure member name in the driver initializer.

On the way do a few whitespace changes to make indention consistent.

Signed-off-by: Uwe Kleine-König &lt;u.kleine-koenig@baylibre.com&gt;
Acked-by: Heiko Stuebner &lt;heiko@sntech.de&gt;
Acked-by: Herve Codina &lt;herve.codina@bootlin.com&gt; # for fsl/qe/{qmc,tsa}.c
Acked-by: Bjorn Andersson &lt;andersson@kernel.org&gt; # qcom parts
Acked-by: Gabriel Somlo &lt;gsomlo@gmail.com&gt;
Acked-by: Andrew Jeffery &lt;andrew@codeconstruct.com.au&gt; # aspeed
Link: https://lore.kernel.org/r/20241029074859.509587-2-u.kleine-koenig@baylibre.com
Signed-off-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
</content>
</entry>
<entry>
<title>soc: ti: k3-ringacc: Constify struct k3_ring_ops</title>
<updated>2024-08-06T20:33:32Z</updated>
<author>
<name>Christophe JAILLET</name>
</author>
<published>2024-07-09T17:41:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d9483b44c94eba6fa7451caf27cc7e993c8cc568'/>
<id>urn:sha1:d9483b44c94eba6fa7451caf27cc7e993c8cc568</id>
<content type='text'>
'struct k3_ring_ops' is not modified in this driver.

Constifying this structure moves some data to a read-only section, so
increase overall security.

On a x86_64, with allmodconfig:
Before:
======
   text	   data	    bss	    dec	    hex	filename
  17090	   3304	     32	  20426	   4fca	drivers/soc/ti/k3-ringacc.o

After:
=====
   text	   data	    bss	    dec	    hex	filename
  17266	   3144	     32	  20442	   4fda	drivers/soc/ti/k3-ringacc.o

Signed-off-by: Christophe JAILLET &lt;christophe.jaillet@wanadoo.fr&gt;
Link: https://lore.kernel.org/r/cb9dfc18cdf890afa2c53cd74b0b330d6f1c30ab.1720546863.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Nishanth Menon &lt;nm@ti.com&gt;
</content>
</entry>
<entry>
<title>soc/ti: k3-ringacc: Convert to platform remove callback returning void</title>
<updated>2023-10-02T14:11:45Z</updated>
<author>
<name>Uwe Kleine-König</name>
</author>
<published>2023-09-25T09:55:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f34b902c5ba67841902cd7f0e24e64bb82f69cb4'/>
<id>urn:sha1:f34b902c5ba67841902cd7f0e24e64bb82f69cb4</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;
Acked-by: Konrad Dybcio &lt;konrad.dybcio@linaro.org&gt; # qcom
Link: https://lore.kernel.org/r/20230925095532.1984344-34-u.kleine-koenig@pengutronix.de
Signed-off-by: Nishanth Menon &lt;nm@ti.com&gt;
</content>
</entry>
<entry>
<title>soc: ti: Use devm_platform_ioremap_resource_byname simplify logic</title>
<updated>2023-08-10T03:39:13Z</updated>
<author>
<name>Zhang Zekun</name>
</author>
<published>2023-08-09T08:15:23Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f9dbb99748bab004663e349498c24edbb2368f70'/>
<id>urn:sha1:f9dbb99748bab004663e349498c24edbb2368f70</id>
<content type='text'>
platform_get_resource_byname() and devm_ioremap_resource() can be
replaced by devm_platform_ioremap_resource_byname(), which can
simplify the code logic a bit, No functional change here.

Signed-off-by: Zhang Zekun &lt;zhangzekun11@huawei.com&gt;
Reviewed-by: Dhruva Gole &lt;d-gole@ti.com&gt;
Link: https://lore.kernel.org/r/20230809081523.26196-1-zhangzekun11@huawei.com
Signed-off-by: Nishanth Menon &lt;nm@ti.com&gt;
</content>
</entry>
<entry>
<title>soc: ti: k3-ringacc: remove non-fatal probe deferral log</title>
<updated>2023-08-02T04:56:40Z</updated>
<author>
<name>Jayesh Choudhary</name>
</author>
<published>2023-07-28T05:33:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e50a76355c1d8581673bda987688d59e7da33928'/>
<id>urn:sha1:e50a76355c1d8581673bda987688d59e7da33928</id>
<content type='text'>
Drop the non-fatal probe deferral log for getting MSI domain.
This makes the kernel log clean and we do not get recurring logs
stating: "Failed to get MSI domain".

Signed-off-by: Jayesh Choudhary &lt;j-choudhary@ti.com&gt;
Link: https://lore.kernel.org/r/20230728053356.31044-1-j-choudhary@ti.com
Signed-off-by: Nishanth Menon &lt;nm@ti.com&gt;
</content>
</entry>
<entry>
<title>soc: ti: Explicitly include correct DT includes</title>
<updated>2023-07-25T11:26:34Z</updated>
<author>
<name>Rob Herring</name>
</author>
<published>2023-07-14T17:51:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cdbab28c3728e6c47228585eb6e84669518a1e7d'/>
<id>urn:sha1:cdbab28c3728e6c47228585eb6e84669518a1e7d</id>
<content type='text'>
The DT of_device.h and of_platform.h date back to the separate
of_platform_bus_type before it as merged into the regular platform bus.
As part of that merge prepping Arm DT support 13 years ago, they
"temporarily" include each other. They also include platform_device.h
and of.h. As a result, there's a pretty much random mix of those include
files used throughout the tree. In order to detangle these headers and
replace the implicit includes with struct declarations, users need to
explicitly include the correct includes.

Signed-off-by: Rob Herring &lt;robh@kernel.org&gt;
Link: https://lore.kernel.org/r/20230714175156.4068520-1-robh@kernel.org
Signed-off-by: Nishanth Menon &lt;nm@ti.com&gt;
</content>
</entry>
<entry>
<title>soc: ti: k3-ringacc: Fixup documentation errors</title>
<updated>2023-07-11T18:04:32Z</updated>
<author>
<name>Nishanth Menon</name>
</author>
<published>2023-06-21T02:34:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bffd3a805d8eb7a61e31eebb99bf089cf2229079'/>
<id>urn:sha1:bffd3a805d8eb7a61e31eebb99bf089cf2229079</id>
<content type='text'>
Fixup couple of misses in documentation. This squashes the following
warnings:
drivers/soc/ti/k3-ringacc.c:135: warning: Function parameter or member 'tdown_complete' not described in 'k3_ring_state'
drivers/soc/ti/k3-ringacc.c:238: warning: expecting prototype for struct k3_ringacc. Prototype was for struct k3_ringacc_soc_data instead

While at this, replace "w/a" to indicate workaround to help clarify.

Cc: Peter Ujfalusi &lt;peter.ujfalusi@gmail.com&gt;
Reviewed-by: Randy Dunlap &lt;rdunlap@infradead.org&gt;
Link: https://lore.kernel.org/r/20230621023442.275128-1-nm@ti.com
Signed-off-by: Nishanth Menon &lt;nm@ti.com&gt;
</content>
</entry>
<entry>
<title>soc: ti: k3-ringacc: Add try_module_get() to k3_dmaring_request_dual_ring()</title>
<updated>2023-03-08T07:06:30Z</updated>
<author>
<name>Nicolas Frayer</name>
</author>
<published>2022-12-30T00:14:04Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=5f1732a8683c1da8faaa90d6ffc3bd6d33013a58'/>
<id>urn:sha1:5f1732a8683c1da8faaa90d6ffc3bd6d33013a58</id>
<content type='text'>
When the k3 ring accelerator driver has been modified to add module build
support, try_module_get() and module_put() have been added to update the
module refcnt. One code path has not been updated and it has introduced
an issue where the refcnt is decremented by module_put() in
k3_ringacc_ring_free() without being incremented previously.
Adding try_module_get() to k3_dmaring_request_dual_ring() ensures the
refcnt is kept up to date.

Fixes: c07f216a8b72 ("soc: ti: k3-ringacc: Allow the driver to be built as module")
Signed-off-by: Nicolas Frayer &lt;nfrayer@baylibre.com&gt;
Reviewed-by: Peter Ujfalusi &lt;peter.ujfalusi@gmail.com&gt;
Link: https://lore.kernel.org/r/20221230001404.10902-1-nfrayer@baylibre.com
Signed-off-by: Nishanth Menon &lt;nm@ti.com&gt;
</content>
</entry>
<entry>
<title>soc: ti: k3-ringacc: Allow the driver to be built as module</title>
<updated>2022-11-03T06:42:50Z</updated>
<author>
<name>Peter Ujfalusi</name>
</author>
<published>2022-10-29T07:53:56Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c07f216a8b72bac0c6e921793ad656a3b77f3545'/>
<id>urn:sha1:c07f216a8b72bac0c6e921793ad656a3b77f3545</id>
<content type='text'>
The ring accelerator driver can be built as module since all depending
functions are exported.

Signed-off-by: Peter Ujfalusi &lt;peter.ujfalusi@gmail.com&gt;
Signed-off-by: Nishanth Menon &lt;nm@ti.com&gt;
Tested-by: Nicolas Frayer &lt;nfrayer@baylibre.com&gt;
Reviewed-by: Nicolas Frayer &lt;nfrayer@baylibre.com&gt;
Link: https://lore.kernel.org/r/20221029075356.7296-1-peter.ujfalusi@gmail.com
</content>
</entry>
</feed>
