kernel_optimize_test/drivers/of
Grant Likely 2361613206 of/irq: Refactor interrupt-map parsing
All the users of of_irq_parse_raw pass in a raw interrupt specifier from
the device tree and expect it to be returned (possibly modified) in an
of_phandle_args structure. However, the primary function of
of_irq_parse_raw() is to check for translations due to the presence of
one or more interrupt-map properties. The actual placing of the data
into an of_phandle_args structure is trivial. If it is refactored to
accept an of_phandle_args structure directly, then it becomes possible
to consume of_phandle_args from other sources. This is important for an
upcoming patch that allows a device to be connected to more than one
interrupt parent. It also simplifies the code a bit.

The biggest complication with this patch is that the old version works
on the interrupt specifiers in __be32 form, but the of_phandle_args
structure is intended to carry it in the cpu-native version. A bit of
churn was required to make this work. In the end it results in tighter
code, so the churn is worth it.

Signed-off-by: Grant Likely <grant.likely@linaro.org>
Acked-by: Tony Lindgren <tony@atomide.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-10-24 11:43:04 +01:00
..
address.c of/irq: Rename of_irq_map_* functions to of_irq_parse_* 2013-10-24 11:40:59 +01:00
base.c of: Fix iteration bug over CPU reg properties 2013-10-15 20:09:18 +01:00
device.c of: Output devicetree alias names in uevent 2013-02-06 11:06:35 +00:00
fdt.c Device tree core updates for v3.12 2013-09-10 13:53:52 -07:00
irq.c of/irq: Refactor interrupt-map parsing 2013-10-24 11:43:04 +01:00
Kconfig Merge branch 'for-v3.12' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping 2013-09-09 10:26:33 -07:00
Makefile Merge branch 'for-v3.12' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping 2013-09-09 10:26:33 -07:00
of_mdio.c net: of_mdio: fix behavior on missing phy device 2013-05-08 13:13:29 -07:00
of_mtd.c of: mtd: nuke useless const qualifier 2012-07-10 10:32:06 -05:00
of_net.c of: Make of_get_phy_mode() return int i.s.o. const int 2013-08-28 20:50:19 +01:00
of_pci_irq.c of/irq: Refactor interrupt-map parsing 2013-10-24 11:43:04 +01:00
of_pci.c of: pci: add registry of MSI chips 2013-08-12 15:27:01 +00:00
of_private.h of: Output devicetree alias names in uevent 2013-02-06 11:06:35 +00:00
of_reserved_mem.c drivers: of: fix build break if asm/dma-contiguous.h is missing 2013-09-10 15:43:40 +02:00
pdt.c open firmware: "/aliasas" -> "/aliases" 2013-06-18 13:46:26 +02:00
platform.c Device tree core updates for v3.12 2013-09-10 13:53:52 -07:00
selftest.c of: Create function for counting number of phandles in a property 2013-02-13 10:09:31 +00:00