Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
FMC ADC 100M 14b 4cha
Commits
fd07e18a
Commit
fd07e18a
authored
Dec 04, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv: add link to FMC slot in sysfs
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
6524363c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
fa-core.c
software/kernel/fa-core.c
+11
-0
No files found.
software/kernel/fa-core.c
View file @
fd07e18a
...
...
@@ -727,6 +727,14 @@ int fa_probe(struct platform_device *pdev)
if
(
!
fa_fmc_slot_is_valid
(
fa
))
goto
out_fmc_err
;
err
=
sysfs_create_link
(
&
fa
->
pdev
->
dev
.
kobj
,
&
fa
->
slot
->
dev
.
kobj
,
dev_name
(
&
fa
->
slot
->
dev
));
if
(
err
)
{
dev_err
(
&
fa
->
pdev
->
dev
,
"Failed to create FMC symlink to %s
\n
"
,
dev_name
(
&
fa
->
slot
->
dev
));
goto
err_fmc_link
;
}
err
=
fa_dma_request_channel
(
fa
);
if
(
err
)
goto
out_dma
;
...
...
@@ -768,6 +776,8 @@ out_serdes:
fa_clock_disable
(
fa
);
fa_dma_release_channel
(
fa
);
out_dma:
sysfs_remove_link
(
&
fa
->
pdev
->
dev
.
kobj
,
dev_name
(
&
fa
->
slot
->
dev
));
err_fmc_link:
out_fmc_err:
out_fmc_eeprom:
out_fmc_pre:
...
...
@@ -799,6 +809,7 @@ int fa_remove(struct platform_device *pdev)
iounmap
(
fa
->
fa_top_level
);
sysfs_remove_link
(
&
fa
->
pdev
->
dev
.
kobj
,
dev_name
(
&
fa
->
slot
->
dev
));
fmc_slot_put
(
fa
->
slot
);
return
0
;
...
...
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