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
190258e4
Commit
190258e4
authored
Sep 27, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel/wr-nic: a different ack sequence to force an edge on gpio
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
0f56da31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
wr-nic-eth.c
kernel/wr-nic-eth.c
+7
-5
No files found.
kernel/wr-nic-eth.c
View file @
190258e4
...
...
@@ -77,12 +77,14 @@ irqreturn_t wrn_handler(int irq, void *dev_id)
* the typical trick you see in level-irq Ethernet drivers when
* they are plugged to edge-irq gpio lines: force an edge in case
* the line has become active again while we were serving it.
* (with a big thank you to Tomasz for the exact sequence to use)
* (with a big thank you to Tomasz and Grzegorz for the sequence)
*
* Actually, we should check the input line before doing this...
*/
writel
(
VIC_CTL_POL
,
&
vic
->
CTL
);
/* not enabled
*/
udelay
(
1
);
writel
(
VIC_CTL_ENABLE
|
VIC_CTL_POL
,
&
vic
->
CTL
);
writel
(
0
,
&
vic
->
EOIR
);
writel
(
WRN_ALL_MASK
,
&
vic
->
IDR
);
/* disable sources
*/
writel
(
0xff
,
&
vic
->
EOIR
);
udelay
(
5
);
writel
(
WRN_ALL_MASK
,
&
vic
->
IER
);
/* enable sources again */
return
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