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
37dff380
Commit
37dff380
authored
Oct 15, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spec-fmc: disable output driver if bit is input
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
717fca7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
spec-fmc.c
kernel/spec-fmc.c
+1
-0
No files found.
kernel/spec-fmc.c
View file @
37dff380
...
...
@@ -181,6 +181,7 @@ static int spec_cfg_pin(struct fmc_device *fmc, int pin, int mode, int imode)
return
-
EINVAL
;
if
(
mode
&
GPIOF_DIR_IN
)
{
/* 1 = input */
gennum_mask_val
(
spec
,
bit
,
0
,
GNGPIO_OUTPUT_ENABLE
);
gennum_mask_val
(
spec
,
bit
,
bit
,
GNGPIO_DIRECTION_MODE
);
ret
=
!!
(
gennum_readl
(
spec
,
GNGPIO_INPUT_VALUE
)
&
bit
);
}
else
{
...
...
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