diff options
| author | Sergio Paracuellos <[email protected]> | 2018-06-18 11:36:10 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-06-28 21:50:58 +0900 |
| commit | 7bf3d70e6e2c5ab724214a234a8755c03acb39a8 (patch) | |
| tree | 77f4f5856c834c66fb9a040d133910f56fd13b83 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 368d97d69dabc7d1a3d444436381ac62ba195818 (diff) | |
staging: mt7621-gpio: avoid custom irq_domain for gpio
Instead of create a custom irq_domain for this chip, use
'gpiochip_set_chained_irqchip' from GPIOLIB_IRQCHIP. It
is ok to call this function several times. We have to
manually mark the line with 'IRQF_SHARED' and then loop
over the three banks until you find a hit. There were
some problems with removing an irqchip like that but this
driver is a bool so it might work just fine. After this
changes the functions 'mediatek_gpio_to_irq' is not needed
anymore and also the 'gpio_irq_domain' field from the state
container. Instead of use the custom irq domain in the irq
handler use the associated domain from the gpio_chip in
'irq_find_mapping' function. Function 'mediatek_gpio_bank_probe'
has been moved a it to the botton to have all the irq related
functions together and avoid some forward declarations to resolve
some symbols along the code.
Signed-off-by: Sergio Paracuellos <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions