<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/components/drivers/spi, branch copilot/fix-riscv-none-job-failure</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/components/drivers/spi?h=copilot%2Ffix-riscv-none-job-failure</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/components/drivers/spi?h=copilot%2Ffix-riscv-none-job-failure'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2026-07-17T01:41:51Z</updated>
<entry>
<title>[bsp][drivers][soft_spi] unify the software SPI driver</title>
<updated>2026-07-17T01:41:51Z</updated>
<author>
<name>CYFS</name>
<email>2805686936@qq.com</email>
</author>
<published>2026-07-16T03:34:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=5363e4ed4cff5f300b3773aa3422a99c8ac687e5'/>
<id>urn:sha1:5363e4ed4cff5f300b3773aa3422a99c8ac687e5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[components][spi] add utest cases</title>
<updated>2026-07-04T08:45:24Z</updated>
<author>
<name>CYFS</name>
<email>2805686936@qq.com</email>
</author>
<published>2026-07-02T03:36:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=e97530fea8fd3ec60de637cd08c1ee3c6c00f193'/>
<id>urn:sha1:e97530fea8fd3ec60de637cd08c1ee3c6c00f193</id>
<content type='text'>
</content>
</entry>
<entry>
<title>chore: fix typo in components and libcpu</title>
<updated>2026-02-13T13:54:59Z</updated>
<author>
<name>theqengineer</name>
<email>zyrhqu@gmail.com</email>
</author>
<published>2026-02-13T07:04:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=85b656b14dcfe8a3ab27c819e168dde082ab39ef'/>
<id>urn:sha1:85b656b14dcfe8a3ab27c819e168dde082ab39ef</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[drivers] Fix OFW bus conflict and prevent duplicate device creation</title>
<updated>2026-01-20T14:05:28Z</updated>
<author>
<name>lhxj</name>
<email>2743257167@qq.com</email>
</author>
<published>2025-12-25T09:56:52Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=7641ef68855601bc73252546bf41a96d6078444e'/>
<id>urn:sha1:7641ef68855601bc73252546bf41a96d6078444e</id>
<content type='text'>
Problem:
When enumerating device tree nodes, platform bus and native buses (I2C/SPI)
may create duplicate devices for the same OFW node, causing cross-bus conflicts.
This triggers assertion failure '(dev-&gt;bus != new_bus)' in
rt_bus_reload_driver_device() during boot on minimal DM-enabled systems.

Root Cause:
1. Platform bus tries to reload devices that already belong to other buses
   by calling rt_bus_reload_driver_device(dev-&gt;bus, dev), which violates
   the API contract (requires dev-&gt;bus != new_bus).
2. Native buses (I2C/SPI) do not mark OFW nodes as occupied, so platform
   bus creates duplicate platform devices for I2C/SPI client nodes.

Solution:
1. components/drivers/core/platform_ofw.c: Return RT_EOK when np-&gt;dev exists,
   letting the native bus handle device lifecycle instead of cross-bus reload.
2. components/drivers/i2c/dev_i2c_bus.c: Mark i2c_client_np-&gt;dev during scan
   to prevent platform bus from duplicating I2C client devices.
3. components/drivers/spi/dev_spi_bus.c: Mark spi_dev_np-&gt;dev during scan
   to prevent platform bus from duplicating SPI devices.

Tested on Spacemit K1 RISC-V platform with minimal DM configuration.

Signed-off-by: lhxj &lt;2743257167@qq.com&gt;
</content>
</entry>
<entry>
<title>[fix] drivers: spi: refactor SPI bit operations into independent configuration</title>
<updated>2026-01-04T09:04:34Z</updated>
<author>
<name>Runcheng Lu</name>
<email>runcheng.lu@hpmicro.com</email>
</author>
<published>2025-12-29T06:35:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=17d026c6cc74f12dddf79690256331121124e2f3'/>
<id>urn:sha1:17d026c6cc74f12dddf79690256331121124e2f3</id>
<content type='text'>
- Add RT_USING_SPI_BITOPS as a separate configurable option
- Make RT_USING_SOFT_SPI depend on RT_USING_SPI_BITOPS
- Adjust build order in SConscript for proper com

Signed-off-by: Runcheng Lu &lt;runcheng.lu@hpmicro.com&gt;
</content>
</entry>
<entry>
<title>[DM][SPI] Support SFUD for DM</title>
<updated>2025-12-02T13:37:42Z</updated>
<author>
<name>GuEe-GUI</name>
<email>2991707448@qq.com</email>
</author>
<published>2025-12-02T06:30:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=d79475e02cdc8a4f3aa75c07b3945af7da8e62c4'/>
<id>urn:sha1:d79475e02cdc8a4f3aa75c07b3945af7da8e62c4</id>
<content type='text'>
DM need &gt; c99

Signed-off-by: GuEe-GUI &lt;2991707448@qq.com&gt;
</content>
</entry>
<entry>
<title>[Driver][SPI] Add 'W25Q128JWPIM' for SFUD</title>
<updated>2025-12-02T13:37:42Z</updated>
<author>
<name>GuEe-GUI</name>
<email>2991707448@qq.com</email>
</author>
<published>2025-12-02T06:29:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=9b02fdc30a1626bd3d6ded2eb95b189dcfafcbc8'/>
<id>urn:sha1:9b02fdc30a1626bd3d6ded2eb95b189dcfafcbc8</id>
<content type='text'>
Signed-off-by: GuEe-GUI &lt;2991707448@qq.com&gt;
</content>
</entry>
<entry>
<title>feat[spi]: enable interrupt-safe operations using spinlocks</title>
<updated>2025-11-13T07:41:41Z</updated>
<author>
<name>wdfk-prog</name>
<email>1425075683@qq.com</email>
</author>
<published>2025-11-13T03:21:49Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=ddfe2cd61cbe39e0f8fc200b6ef21ab223c842ca'/>
<id>urn:sha1:ddfe2cd61cbe39e0f8fc200b6ef21ab223c842ca</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix[components]: 修复日志输出的gcc编译警告</title>
<updated>2025-11-13T07:16:49Z</updated>
<author>
<name>wdfk-prog</name>
<email>1425075683@qq.com</email>
</author>
<published>2025-10-13T05:20:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=f56875fff5b5f4b7e57f027660427e7bf8535af5'/>
<id>urn:sha1:f56875fff5b5f4b7e57f027660427e7bf8535af5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>feat[SPI]: Add SPI device detach function</title>
<updated>2025-09-25T03:41:58Z</updated>
<author>
<name>wdfk-prog</name>
<email>1425075683@qq.com</email>
</author>
<published>2025-09-25T02:31:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=7e5cd483600a5ad66d3d9d3dc761281469bec69e'/>
<id>urn:sha1:7e5cd483600a5ad66d3d9d3dc761281469bec69e</id>
<content type='text'>
</content>
</entry>
</feed>
