Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
White Rabbit Switch - Software
Commits
4ac12f3e
Commit
4ac12f3e
authored
Aug 07, 2020
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel/htvic: fixes to build on 4.14
parent
18e2ba3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
htvic.c
kernel/coht_vic/htvic.c
+7
-7
No files found.
kernel/coht_vic/htvic.c
View file @
4ac12f3e
...
...
@@ -144,7 +144,7 @@ static struct irq_chip htvic_chip = {
* In our case here we expect a string because we identify this domain by
* name
*/
static
int
htvic_irq_domain_match
(
struct
irq_domain
*
d
,
struct
device_node
*
node
)
static
int
htvic_irq_domain_match
(
struct
irq_domain
*
d
,
struct
device_node
*
node
,
enum
irq_domain_bus_token
bus_token
)
{
char
*
name
=
(
char
*
)
node
;
...
...
@@ -206,10 +206,10 @@ static struct irq_domain_ops htvic_irq_domain_ops = {
* When the platform receives an interrupt it will call than this function
* which then will call the proper handler
*/
static
void
htvic_handle_cascade_irq
(
unsigned
int
irq
,
struct
irq_desc
*
desc
)
static
void
htvic_handle_cascade_irq
(
struct
irq_desc
*
desc
)
{
struct
htvic_device
*
htvic
=
irq_
get_handler_data
(
irq
);
struct
irq_chip
*
chip
=
irq_
get_chip
(
irq
);
struct
htvic_device
*
htvic
=
irq_
data_get_irq_handler_data
(
&
desc
->
irq_data
);
struct
irq_chip
*
chip
=
irq_
data_get_irq_chip
(
&
desc
->
irq_data
);
unsigned
int
cascade_irq
,
/* i = 0, */
vect
;
/* unsigned long status; */
...
...
@@ -271,7 +271,7 @@ static int htvic_irq_mapping(struct htvic_device *htvic)
irq
=
platform_get_irq
(
htvic
->
pdev
,
0
);
desc
=
irq_to_desc
(
irq
);
htvic
->
platform_handle_irq
=
desc
->
handle_irq
;
htvic
->
platform_handler_data
=
desc
->
irq_data
.
handler
_data
;
htvic
->
platform_handler_data
=
htvic
;
//desc->irq_data.chip
_data;
if
(
irq_set_handler_data
(
irq
,
htvic
)
!=
0
)
BUG
();
...
...
@@ -424,7 +424,7 @@ out_memop:
void
__htvic_irq_shutdown
(
struct
irq_desc
*
desc
)
{
/* irq_state_set_disabled(desc); */
desc
->
irq_data
.
state_use_accessors
|=
IRQD_IRQ_DISABLED
;
desc
->
irq_data
.
common
->
state_use_accessors
|=
IRQD_IRQ_DISABLED
;
desc
->
depth
=
1
;
if
(
desc
->
irq_data
.
chip
->
irq_shutdown
)
desc
->
irq_data
.
chip
->
irq_shutdown
(
&
desc
->
irq_data
);
...
...
@@ -433,7 +433,7 @@ void __htvic_irq_shutdown(struct irq_desc *desc)
else
desc
->
irq_data
.
chip
->
irq_mask
(
&
desc
->
irq_data
);
/* irq_state_set_masked(desc); */
desc
->
irq_data
.
state_use_accessors
|=
IRQD_IRQ_MASKED
;
desc
->
irq_data
.
common
->
state_use_accessors
|=
IRQD_IRQ_MASKED
;
}
/**
...
...
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