Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple PCIe FMC carrier SPEC - Software
Commits
da456dfc
Commit
da456dfc
authored
Jan 20, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: pci_enable_msi_{block|exact} according to version
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
aed186b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
spec-pci.c
kernel/spec-pci.c
+5
-0
No files found.
kernel/spec-pci.c
View file @
da456dfc
...
...
@@ -20,6 +20,7 @@
#include <linux/pci.h>
#include <linux/io.h>
#include <asm/unaligned.h>
#include <linux/version.h>
#include "spec.h"
#include "loader-ll.h"
...
...
@@ -110,7 +111,11 @@ static int spec_probe(struct pci_dev *pdev,
* This should be "4" but arch/x86/kernel/apic/io_apic.c
* says "x86 doesn't support multiple MSI yet".
*/
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,16,0)
ret
=
pci_enable_msi_block
(
pdev
,
1
);
#else
ret
=
pci_enable_msi_exact
(
pdev
,
1
);
#endif
if
(
ret
<
0
)
dev_err
(
&
pdev
->
dev
,
"%s: enable msi block: error %i
\n
"
,
__func__
,
ret
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment