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
91bbcad5
Commit
91bbcad5
authored
Dec 01, 2022
by
Federico Vaga
Browse files
Options
Browse Files
Download
Plain Diff
git Merge remote-tracking branch 'origin/master'
parents
104ded3e
907889d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
ft-debug.c
software/kernel/ft-debug.c
+6
-0
No files found.
software/kernel/ft-debug.c
View file @
91bbcad5
...
...
@@ -58,14 +58,20 @@ int ft_debug_init(struct fmctdc_dev *ft)
ft
->
dbg_reg32
.
regs
=
ft_debugfs_reg32
;
ft
->
dbg_reg32
.
nregs
=
ARRAY_SIZE
(
ft_debugfs_reg32
);
ft
->
dbg_reg32
.
base
=
ft
->
ft_base
;
#if KERNEL_VERSION(5, 6, 0) <= LINUX_VERSION_CODE
debugfs_create_regset32
(
"regs"
,
0444
,
ft
->
dbg_dir
,
&
ft
->
dbg_reg32
);
#else
ft
->
dbg_reg
=
debugfs_create_regset32
(
"regs"
,
0444
,
ft
->
dbg_dir
,
&
ft
->
dbg_reg32
);
if
(
IS_ERR_OR_NULL
(
ft
->
dbg_reg
))
{
err
=
PTR_ERR
(
ft
->
dbg_reg
);
dev_warn
(
&
ft
->
pdev
->
dev
,
"Cannot create debugfs file
\"
regs
\"
(%d)
\n
"
,
err
);
}
#endif
break
;
default:
break
;
...
...
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