Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Network Interface Card
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
White Rabbit Network Interface Card
Commits
aa37ca38
Commit
aa37ca38
authored
Feb 08, 2013
by
Alessandro Rubini
Committed by
Miguel Jimenez Lopez
Sep 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr_nic: irq registration only if WR_IS_SWITCH
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
44e80e40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
device.c
kernel/wr_nic/device.c
+9
-9
No files found.
kernel/wr_nic/device.c
View file @
aa37ca38
...
...
@@ -130,16 +130,16 @@ static int __devinit wrn_probe(struct platform_device *pdev)
printk
(
"regs %p, txd %p, rxd %p, buffer %p
\n
"
,
wrn
->
regs
,
wrn
->
txd
,
wrn
->
rxd
,
wrn
->
databuf
);
/* Register the interrupt handlers (not shared) */
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
irq_names
);
i
++
)
{
err
=
request_irq
(
irqs
[
i
],
irq_handlers
[
i
],
IRQF_TRIGGER_LOW
,
irq_names
[
i
],
wrn
);
if
(
err
)
goto
out
;
wrn
->
irq_registered
|=
1
<<
i
;
if
(
WR_IS_SWITCH
)
{
/* Register the interrupt handlers (not shared) */
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
irq_names
);
i
++
)
{
err
=
request_irq
(
irqs
[
i
],
irq_handlers
[
i
],
IRQF_TRIGGER_LOW
,
irq_names
[
i
],
wrn
);
if
(
err
)
goto
out
;
wrn
->
irq_registered
|=
1
<<
i
;
}
}
/* Reset the device, just to be sure, before making anything */
writel
(
0
,
&
wrn
->
regs
->
CR
);
mdelay
(
10
);
/* Finally, register one interface per endpoint */
memset
(
wrn
->
dev
,
0
,
sizeof
(
wrn
->
dev
));
...
...
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