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
cd641fe7
Commit
cd641fe7
authored
Feb 08, 2013
by
Alessandro Rubini
Committed by
Adam Wujek
Oct 27, 2014
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
db830e88
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
device.c
kernel/wr_nic/device.c
+9
-11
No files found.
kernel/wr_nic/device.c
View file @
cd641fe7
...
...
@@ -105,13 +105,10 @@ static int wrn_probe(struct platform_device *pdev)
struct
wrn_dev
*
wrn
=
drvdata
->
wrn
;
int
i
,
err
=
0
;
#if 0
/* Lazily: irqs are not in the resource list */
static
int
irqs
[]
=
WRN_IRQ_NUMBERS
;
static
char
*
irq_names
[]
=
WRN_IRQ_NAMES
;
static
irq_handler_t
irq_handlers
[]
=
WRN_IRQ_HANDLERS
;
#endif
/* No need to lock_irq: we only protect count and continue unlocked */
if
(
WR_IS_SWITCH
)
{
...
...
@@ -138,15 +135,16 @@ static int wrn_probe(struct platform_device *pdev)
printk
(
"regs %p, txd %p, rxd %p, buffer %p
\n
"
,
wrn
->
regs
,
wrn
->
txd
,
wrn
->
rxd
,
wrn
->
databuf
);
#if 0
/* 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
;
}
}
#endif
/* Reset the device, just to be sure, before making anything */
writel
(
0
,
&
wrn
->
regs
->
CR
);
mdelay
(
10
);
...
...
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