Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
f4d0ee98
Commit
f4d0ee98
authored
Apr 28, 2005
by
David S. Miller
Committed by
David S. Miller
Apr 28, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TG3]: Set SA_SAMPLE_RANDOM in request_irq() calls.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
9acf6597
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
drivers/net/tg3.c
drivers/net/tg3.c
+6
-6
No files found.
drivers/net/tg3.c
View file @
f4d0ee98
...
@@ -5830,7 +5830,7 @@ static int tg3_test_interrupt(struct tg3 *tp)
...
@@ -5830,7 +5830,7 @@ static int tg3_test_interrupt(struct tg3 *tp)
free_irq
(
tp
->
pdev
->
irq
,
dev
);
free_irq
(
tp
->
pdev
->
irq
,
dev
);
err
=
request_irq
(
tp
->
pdev
->
irq
,
tg3_test_isr
,
err
=
request_irq
(
tp
->
pdev
->
irq
,
tg3_test_isr
,
SA_SHIRQ
,
dev
->
name
,
dev
);
SA_SHIRQ
|
SA_SAMPLE_RANDOM
,
dev
->
name
,
dev
);
if
(
err
)
if
(
err
)
return
err
;
return
err
;
...
@@ -5852,10 +5852,10 @@ static int tg3_test_interrupt(struct tg3 *tp)
...
@@ -5852,10 +5852,10 @@ static int tg3_test_interrupt(struct tg3 *tp)
if
(
tp
->
tg3_flags2
&
TG3_FLG2_USING_MSI
)
if
(
tp
->
tg3_flags2
&
TG3_FLG2_USING_MSI
)
err
=
request_irq
(
tp
->
pdev
->
irq
,
tg3_msi
,
err
=
request_irq
(
tp
->
pdev
->
irq
,
tg3_msi
,
0
,
dev
->
name
,
dev
);
SA_SAMPLE_RANDOM
,
dev
->
name
,
dev
);
else
else
err
=
request_irq
(
tp
->
pdev
->
irq
,
tg3_interrupt
,
err
=
request_irq
(
tp
->
pdev
->
irq
,
tg3_interrupt
,
SA_SHIRQ
,
dev
->
name
,
dev
);
SA_SHIRQ
|
SA_SAMPLE_RANDOM
,
dev
->
name
,
dev
);
if
(
err
)
if
(
err
)
return
err
;
return
err
;
...
@@ -5908,7 +5908,7 @@ static int tg3_test_msi(struct tg3 *tp)
...
@@ -5908,7 +5908,7 @@ static int tg3_test_msi(struct tg3 *tp)
tp
->
tg3_flags2
&=
~
TG3_FLG2_USING_MSI
;
tp
->
tg3_flags2
&=
~
TG3_FLG2_USING_MSI
;
err
=
request_irq
(
tp
->
pdev
->
irq
,
tg3_interrupt
,
err
=
request_irq
(
tp
->
pdev
->
irq
,
tg3_interrupt
,
SA_SHIRQ
,
dev
->
name
,
dev
);
SA_SHIRQ
|
SA_SAMPLE_RANDOM
,
dev
->
name
,
dev
);
if
(
err
)
if
(
err
)
return
err
;
return
err
;
...
@@ -5965,10 +5965,10 @@ static int tg3_open(struct net_device *dev)
...
@@ -5965,10 +5965,10 @@ static int tg3_open(struct net_device *dev)
}
}
if
(
tp
->
tg3_flags2
&
TG3_FLG2_USING_MSI
)
if
(
tp
->
tg3_flags2
&
TG3_FLG2_USING_MSI
)
err
=
request_irq
(
tp
->
pdev
->
irq
,
tg3_msi
,
err
=
request_irq
(
tp
->
pdev
->
irq
,
tg3_msi
,
0
,
dev
->
name
,
dev
);
SA_SAMPLE_RANDOM
,
dev
->
name
,
dev
);
else
else
err
=
request_irq
(
tp
->
pdev
->
irq
,
tg3_interrupt
,
err
=
request_irq
(
tp
->
pdev
->
irq
,
tg3_interrupt
,
SA_SHIRQ
,
dev
->
name
,
dev
);
SA_SHIRQ
|
SA_SAMPLE_RANDOM
,
dev
->
name
,
dev
);
if
(
err
)
{
if
(
err
)
{
if
(
tp
->
tg3_flags2
&
TG3_FLG2_USING_MSI
)
{
if
(
tp
->
tg3_flags2
&
TG3_FLG2_USING_MSI
)
{
...
...
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