mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-23 09:56:00 +00:00
cd99758ba3
The modern idiom is to use irq_domain to allocate interrupts. This is useful partly to allow further infrastructure to be based on the domains and partly because it makes it much easier to allocate virtual interrupts to devices as we don't need to allocate a contiguous range of interrupt numbers. Convert the wm831x driver over to this infrastructure, using a legacy IRQ mapping if an irq_base is specified in platform data and otherwise using a linear mapping, always registering the interrupts even if they won't ever be used. Only boards which need to use the GPIOs as interrupts should need to use an irq_base. This means that we can't use the MFD irq_base management since the unless we're using an explicit irq_base from platform data we can't rely on a linear mapping of interrupts. Instead we need to map things via the irq_domain - provide a conveniencem function wm831x_irq() to save a small amount of typing when doing so. Looking at this I couldn't clearly see anything the MFD core could do to make this nicer. Since we're not supporting device tree yet there's no meaningful advantage if we don't do this conversion in one, the fact that the interrupt resources are used for repeated IP blocks makes accessor functions for the irq_domain more trouble to do than they're worth. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com> |
||
---|---|---|
.. | ||
devres.c | ||
gpio-74x164.c | ||
gpio-ab8500.c | ||
gpio-adp5520.c | ||
gpio-adp5588.c | ||
gpio-bt8xx.c | ||
gpio-cs5535.c | ||
gpio-da9052.c | ||
gpio-davinci.c | ||
gpio-ep93xx.c | ||
gpio-ge.c | ||
gpio-generic.c | ||
gpio-ich.c | ||
gpio-it8761e.c | ||
gpio-janz-ttl.c | ||
gpio-ks8695.c | ||
gpio-langwell.c | ||
gpio-lpc32xx.c | ||
gpio-max730x.c | ||
gpio-max732x.c | ||
gpio-max7300.c | ||
gpio-max7301.c | ||
gpio-mc9s08dz60.c | ||
gpio-mc33880.c | ||
gpio-mcp23s08.c | ||
gpio-ml-ioh.c | ||
gpio-mpc8xxx.c | ||
gpio-mpc5200.c | ||
gpio-msm-v1.c | ||
gpio-msm-v2.c | ||
gpio-mxc.c | ||
gpio-mxs.c | ||
gpio-nomadik.c | ||
gpio-omap.c | ||
gpio-pca953x.c | ||
gpio-pcf857x.c | ||
gpio-pch.c | ||
gpio-pl061.c | ||
gpio-pxa.c | ||
gpio-rdc321x.c | ||
gpio-sa1100.c | ||
gpio-samsung.c | ||
gpio-sch.c | ||
gpio-sodaville.c | ||
gpio-sta2x11.c | ||
gpio-stmpe.c | ||
gpio-sx150x.c | ||
gpio-tc3589x.c | ||
gpio-tegra.c | ||
gpio-timberdale.c | ||
gpio-tnetv107x.c | ||
gpio-tps65910.c | ||
gpio-tps65912.c | ||
gpio-twl4030.c | ||
gpio-ucb1400.c | ||
gpio-vr41xx.c | ||
gpio-vx855.c | ||
gpio-wm831x.c | ||
gpio-wm8350.c | ||
gpio-wm8994.c | ||
gpio-xilinx.c | ||
gpiolib.c | ||
Kconfig | ||
Makefile |