Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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 TDC 1ns 5cha
Commits
82d6be26
Commit
82d6be26
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
fb051080
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
ft-core.c
software/kernel/ft-core.c
+12
-1
No files found.
software/kernel/ft-core.c
View file @
82d6be26
...
...
@@ -453,7 +453,15 @@ int ft_probe(struct platform_device *pdev)
if
(
!
ft_fmc_slot_is_valid
(
ft
))
goto
out_fmc_err
;
ret
=
ft_calib_init
(
ft
);
err
=
sysfs_create_link
(
&
ft
->
pdev
->
dev
.
kobj
,
&
ft
->
slot
->
dev
.
kobj
,
dev_name
(
&
ft
->
slot
->
dev
));
if
(
err
)
{
dev_err
(
&
ft
->
pdev
->
dev
,
"Failed to create FMC symlink to %s
\n
"
,
dev_name
(
&
ft
->
slot
->
dev
));
goto
err_fmc_link
;
}
ret
=
ft_calib_init
(
ft
);
if
(
ret
<
0
)
goto
err_calib
;
...
...
@@ -491,6 +499,8 @@ err:
m
->
exit
(
ft
);
ft_calib_exit
(
ft
);
err_calib:
sysfs_remove_link
(
&
ft
->
pdev
->
dev
.
kobj
,
dev_name
(
&
ft
->
slot
->
dev
));
err_fmc_link:
out_fmc_err:
out_fmc_eeprom:
out_fmc_pre:
...
...
@@ -533,6 +543,7 @@ int ft_remove(struct platform_device *pdev)
m
->
exit
(
ft
);
}
ft_calib_exit
(
ft
);
sysfs_remove_link
(
&
ft
->
pdev
->
dev
.
kobj
,
dev_name
(
&
ft
->
slot
->
dev
));
fmc_slot_put
(
ft
->
slot
);
iounmap
(
ft
->
ft_base
);
kfree
(
ft
);
...
...
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