[components][serial] fix serial v2 rx indicate setup#11539
Conversation
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
📌 Code Review Assignment🏷️ Tag: componentsReviewers: @Maihuanyi Changed Files (Click to expand)
🏷️ Tag: components_driver_serial_v2Reviewers: @Ryan-CW-Code Changed Files (Click to expand)
📊 Current Review Status (Last Updated: 2026-07-01 09:34 CST)
📝 Review Instructions
|
|
对posix这方面了解甚少,大佬可以增加 components/drivers/serial/utest 跑一遍试试吗? |
|
我看了 这个 PR 的改动只在 我当前本地 Windows 环境没有可运行这组目标侧 utest 的工具链/运行环境:缺 已核对当前 PR CI:format/license、static analysis、BSP static build、MemBrowse、现有 如果你们有推荐的 BSP/config 用来跑 serial v2 POSIX 用例,我可以按那个配置继续补验证。 |
Summary
serial_fops_open().rt_serial_close()cleanup behavior unchanged.serial_fops_rx_indcleared by the internalrt_device_close()call, so poll/select waiters can be woken after opening the serial device through DFS.Closes #11538
Validation
git diff --checkserial_fops_open/rx_indicatefixes.serial_fops_open()->rt_device_close()->rt_serial_close()clearsrx_indicate, thenrt_device_open()returns.Build not run locally: this Windows environment does not have
sconsorgccin PATH.