Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
741e2237
Commit
741e2237
authored
Sep 07, 2017
by
Bjorn Helgaas
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'pci/host-aardvark' into next
* pci/host-aardvark: PCI: aardvark: Use PCI_NUM_INTX
parents
37deba45
0d2977a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
drivers/pci/host/pci-aardvark.c
drivers/pci/host/pci-aardvark.c
+2
-3
No files found.
drivers/pci/host/pci-aardvark.c
View file @
741e2237
...
...
@@ -191,7 +191,6 @@
#define LINK_WAIT_USLEEP_MIN 90000
#define LINK_WAIT_USLEEP_MAX 100000
#define LEGACY_IRQ_NUM 4
#define MSI_IRQ_NUM 32
struct
advk_pcie
{
...
...
@@ -729,7 +728,7 @@ static int advk_pcie_init_irq_domain(struct advk_pcie *pcie)
irq_chip
->
irq_unmask
=
advk_pcie_irq_unmask
;
pcie
->
irq_domain
=
irq_domain_add_linear
(
pcie_intc_node
,
LEGACY_IRQ_NUM
,
irq_domain_add_linear
(
pcie_intc_node
,
PCI_NUM_INTX
,
&
advk_pcie_irq_domain_ops
,
pcie
);
if
(
!
pcie
->
irq_domain
)
{
dev_err
(
dev
,
"Failed to get a INTx IRQ domain
\n
"
);
...
...
@@ -786,7 +785,7 @@ static void advk_pcie_handle_int(struct advk_pcie *pcie)
advk_pcie_handle_msi
(
pcie
);
/* Process legacy interrupts */
for
(
i
=
0
;
i
<
LEGACY_IRQ_NUM
;
i
++
)
{
for
(
i
=
0
;
i
<
PCI_NUM_INTX
;
i
++
)
{
if
(
!
(
status
&
PCIE_ISR0_INTX_ASSERT
(
i
)))
continue
;
...
...
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