Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
5853fd57
Commit
5853fd57
authored
Oct 27, 2021
by
Linus Walleij
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ib-gpio-ppid' into devel
parents
f0c142fc
cfe6807d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
+24
-4
drivers/gpio/gpiolib.c
drivers/gpio/gpiolib.c
+7
-2
include/linux/gpio/driver.h
include/linux/gpio/driver.h
+17
-2
No files found.
drivers/gpio/gpiolib.c
View file @
5853fd57
...
...
@@ -1534,9 +1534,14 @@ static int gpiochip_add_irqchip(struct gpio_chip *gc,
}
if
(
gc
->
irq
.
parent_handler
)
{
void
*
data
=
gc
->
irq
.
parent_handler_data
?:
gc
;
for
(
i
=
0
;
i
<
gc
->
irq
.
num_parents
;
i
++
)
{
void
*
data
;
if
(
gc
->
irq
.
per_parent_data
)
data
=
gc
->
irq
.
parent_handler_data_array
[
i
];
else
data
=
gc
->
irq
.
parent_handler_data
?:
gc
;
/*
* The parent IRQ chip is already using the chip_data
* for this IRQ chip, so our callbacks simply use the
...
...
include/linux/gpio/driver.h
View file @
5853fd57
...
...
@@ -168,11 +168,18 @@ struct gpio_irq_chip {
/**
* @parent_handler_data:
* @parent_handler_data_array:
*
* Data associated, and passed to, the handler for the parent
* interrupt.
* interrupt. Can either be a single pointer if @per_parent_data
* is false, or an array of @num_parents pointers otherwise. If
* @per_parent_data is true, @parent_handler_data_array cannot be
* NULL.
*/
void
*
parent_handler_data
;
union
{
void
*
parent_handler_data
;
void
**
parent_handler_data_array
;
};
/**
* @num_parents:
...
...
@@ -203,6 +210,14 @@ struct gpio_irq_chip {
*/
bool
threaded
;
/**
* @per_parent_data:
*
* True if parent_handler_data_array describes a @num_parents
* sized array to be used as parent data.
*/
bool
per_parent_data
;
/**
* @init_hw: optional routine to initialize hardware before
* an IRQ chip will be added. This is quite useful when
...
...
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