Skip to content

Conversation

@heyuanjie87
Copy link
Contributor

拉取/合并请求描述:(PR description)

[

为什么提交这份PR (why to submit this PR)

ioremap后地址可能超32位

你的解决方案是什么 (what is your solution)

请提供验证的bsp和config (provide the config and bsp)

···
msh />ping 192.168.2.20
ping: not found specified netif, using default netdev e0.
60 bytes from 192.168.2.20 icmp_seq=0 ttl=128 time=1 ms
60 bytes from 192.168.2.20 icmp_seq=1 ttl=128 time=0 ms
···
]

当前拉取/合并请求的状态 Intent for your PR

必须选择一项 Choose one (Mandatory):

  • 本拉取/合并请求是一个草稿版本 This PR is for a code-review and is intended to get feedback
  • 本拉取/合并请求是一个成熟版本 This PR is mature, and ready to be integrated into the repo

代码质量 Code Quality:

我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:

  • 已经仔细查看过代码改动的对比 Already check the difference between PR and old code
  • 代码风格正确,包括缩进空格,命名及其他风格 Style guide is adhered to, including spacing, naming and other styles
  • 没有垃圾代码,代码尽量精简,不包含#if 0代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up
  • 所有变更均有原因及合理的,并且不会影响到其他软件组件代码或BSP All modifications are justified and not affect other components or BSP
  • 对难懂代码均提供对应的注释 I've commented appropriately where code is tricky
  • 代码是高质量的 Code in this PR is of high quality
  • 已经使用formatting 等源码格式化工具确保格式符合RT-Thread代码规范 This PR complies with RT-Thread code specification

@heyuanjie87 heyuanjie87 changed the title [bsp/cvitek/eth]地址类型为指针以适应ioremap [bsp/cvitek/eth]地址类型修改为指针以适应ioremap Jul 3, 2024
@Rbb666 Rbb666 added the BSP: Cvitek BSP related with cvitek label Jul 3, 2024
@unicornx
Copy link
Contributor

unicornx commented Jul 4, 2024

存在以下问题:

  • commit 的 title 语法有误,应该是 ”将地址类型修改为指针以适应 ioremap“
  • 另外 commit 的 title 的前缀建议不要含 eth,只要保留 bsp 信息即可
  • pr 中的解释建议在 commit 中也写一份,因为以后我们主要看仓库的 commit,而 PR 的内容本身和仓库不是一个系统,换了一个托管,如 gitee,或者本地都是看不到的。不方便以后开发人员立即补丁的修改历史。
  • commit 信息缺少签名
  • 另外中英文混排时建议中文和英文(包括数字)之间加空格,看着比较美观。

综上建议对 commit 做如下修改:

title 可以修改为:[bsp/cvitek]: 将 eth 驱动中的地址类型修改为指针

然后在 commit 的文本中添加如下描述:

ioremap 后地址可能超 32 位, 地址类型换成指针可以以后更适应 ioremap。

Signed-off-by: xxxx <xxxx@xxxx>

@unicornx unicornx self-requested a review July 4, 2024 00:14
Copy link
Contributor

@unicornx unicornx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请修改 commit 信息,详细要求见评论

另外,PR 的 “代码质量 Code Quality:” 部分没有检查并执行。

@heyuanjie87 heyuanjie87 changed the title [bsp/cvitek/eth]地址类型修改为指针以适应ioremap [bsp/cvitek]将 eth 驱动中地址类型修改为指针以适应ioremap Jul 4, 2024
@heyuanjie87 heyuanjie87 closed this Jul 4, 2024
@heyuanjie87 heyuanjie87 deleted the hyj73-1 branch July 11, 2024 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BSP: Cvitek BSP related with cvitek

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants