Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple VME FMC Carrier SVEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
14
Issues
14
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 VME FMC Carrier SVEC
Commits
1e209f5a
Commit
1e209f5a
authored
Sep 11, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drv: irq_find_host() compatible with kernel > 4.7
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
5e4a750e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
svec-core-fpga.c
software/kernel/svec-core-fpga.c
+16
-1
No files found.
software/kernel/svec-core-fpga.c
View file @
1e209f5a
...
...
@@ -194,6 +194,21 @@ static struct resource svec_fpga_vic_res[] = {
},
};
struct
irq_domain
*
svec_fpga_irq_find_host
(
struct
device
*
dev
)
{
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,7,0)
struct
irq_fwspec
fwspec
=
{
.
fwnode
=
dev
->
fwnode
,
.
param_count
=
2
,
.
param
[
0
]
=
((
unsigned
long
)
dev
>>
32
)
&
0xffffffff
,
.
param
[
1
]
=
((
unsigned
long
)
dev
)
&
0xffffffff
,
};
return
irq_find_matching_fwspec
(
&
fwspec
,
DOMAIN_BUS_ANY
);
#else
return
(
irq_find_host
((
void
*
)
dev
));
#endif
}
static
int
svec_fpga_vic_init
(
struct
svec_fpga
*
svec_fpga
)
{
struct
svec_dev
*
svec_dev
=
to_svec_dev
(
svec_fpga
->
dev
.
parent
);
...
...
@@ -344,7 +359,7 @@ static int svec_fpga_devices_init(struct svec_fpga *svec_fpga)
sizeof
(
fpga_mfd_devs
[
n_mfd
]));
n_mfd
++
;
vic_domain
=
irq_find_host
((
void
*
)
&
svec_fpga
->
vic_pdev
->
dev
);
vic_domain
=
svec_fpga_
irq_find_host
((
void
*
)
&
svec_fpga
->
vic_pdev
->
dev
);
if
(
!
vic_domain
)
{
/* Remove IRQ resource from all devices */
fpga_mfd_devs
[
0
].
num_resources
=
1
;
/* FMC I2C */
...
...
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