-
Notifications
You must be signed in to change notification settings - Fork 235
drivers: usb: dwc3: Extend core mapping to LLUCTL #570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: Ubuntu-qcom-6.8.0-1066.67
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -83,6 +83,8 @@ | |||||
| #define DWC3_DEVICE_REGS_END 0xcbff | ||||||
| #define DWC3_OTG_REGS_START 0xcc00 | ||||||
| #define DWC3_OTG_REGS_END 0xccff | ||||||
| /* DWC_usb31 LLUCTL sits past the OTG register block. */ | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
补一个DWC3_LLUCTL_REGS_START吧。另外那个注释没必要,寄存器自然不会重叠
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这个 DWC3_LLUCTL_REGS_START 应该不需要吧, 用不上, dwc_res.start 用的是 DWC3_GLOBALS_REGS_START 的值, DWC3_LLUCTL_REGS_END 指的是 DWC3 Core 到 LLUCTL 所在偏移为止的寄存器空间(DWC Core 寄存器区域的终点)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 其他几个寄存器都是包含了起始的定义的。start那边没问题
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. DWC3_LLUCTL_REGS_END 指 DWC3 Core 的映射上限 其实应该这么写的: |
||||||
| #define DWC3_LLUCTL_REGS_END 0xda00 | ||||||
|
|
||||||
| #define DWC3_RTK_RTD_GLOBALS_REGS_START 0x8100 | ||||||
|
|
||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里感觉会是个隐患。可能检查res->end是否满足res->start + DWC3_LLUCTL_REGS_END再赋值,不然warning并赋值res->start + DWC3_OTG_REGS_END更安全一点