Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
PCI & interrupts modifications related to USB #1071
PCI & interrupts modifications related to USB #1071
Changes from 39 commits
53bec8c
d716bd7
66e4ddb
ee27c46
84860ad
8ae8816
68c618e
d6f72b3
aec3809
be56bc6
fb937fa
c12a3e4
fdc8a69
fe4e868
26ef6dd
99f1850
998ddde
dfd7766
5484a98
4085bb5
a88b5fe
9d70cc2
7c34a9d
d9d9202
3c983d1
e3e58ec
64cdae2
a52bf0a
fce5474
f0dfb3d
d833752
2511eb2
eb2595b
37f911c
7948c06
ac87fac
0b58f17
3aa2ddf
5c487ea
4949795
9473e75
2467383
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
this is also confusing, as upon first glance, the reader of this code would expect that you're just temporarily disabling PCI interrupts here while you handle the interrupt and then re-enabling them later. However, that doesn't happen, so this must mean something else.
We should rename and properly document the
pci_enable_interrupts()
function to be more clear about how and why it should be invoked (e.g., perhaps we just always want to disable this type of interrupt?)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.
I think we should rename this function to be more clear about what it actually does, and use the standard "enable_xyz" terminology. We can mention what it actually does (i.e., set the disable bit) in the function documentation, but as it stands now it's quite difficult to understand.
I'll accept this now; kindly include that in the next PR about PCI/USB. 👍