Thomas Gleixner
8b8149df9c
sh/irq: Use access helper irq_data_get_affinity_mask()
...
This is a preparatory patch for moving irq_data struct members.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com >
Cc: Simon Horman <horms@verge.net.au >
Cc: Magnus Damm <magnus.damm@gmail.com >
Link: http://lkml.kernel.org/r/20150713151626.713278346@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2015-07-29 10:08:08 +02:00
Jiang Liu
d0abe2f3a9
sh/irq: Use irq accessor functions instead of open coded access
...
This is a preparatory patch for refactoring the internals if irq_data.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com >
Cc: Simon Horman <horms@verge.net.au >
Cc: Magnus Damm <magnus.damm@gmail.com >
Link: http://lkml.kernel.org/r/20150713151626.616384365@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2015-07-29 10:08:07 +02:00
Jiang Liu
cde5c27568
sh/irq: Use accessor irq_data_get_node()
...
Use accessor irq_data_get_node() to hide struct irq_data
implementation detail, so we can move irq_data->node to
irq_data_common once all usage sites are fixed.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com >
Cc: Simon Horman <horms@verge.net.au >
Cc: Magnus Damm <magnus.damm@gmail.com >
Link: http://lkml.kernel.org/r/20150713151626.519112900@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Signed-off-by: Ingo Molnar <mingo@kernel.org >
2015-07-29 10:08:06 +02:00
Thomas Gleixner
59fb3d58c5
ia64/iosapic: Use irq_set_chip_handler_name_locked()
...
__irq_set_chip_handler_name_locked() is about to be replaced. Use
irq_set_chip_handler_name_locked() instead.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Cc: Jiang Liu <jiang.liu@linux.intel.com >
Cc: Tony Luck <tony.luck@intel.com >
Cc: Fenghua Yu <fenghua.yu@intel.com >
Link: http://lkml.kernel.org/r/20150713131034.723024979@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-27 13:36:37 +02:00
Jiang Liu
c42574edc0
ia64/irq: Use access helper irq_data_get_affinity_mask()
...
This is a preparatory patch for moving irq_data struct members.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com >
Cc: Cc: Tony Luck <tony.luck@intel.com >
Cc: Fenghua Yu <fenghua.yu@intel.com >
Link: http://lkml.kernel.org/r/20150713131034.630273860@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-27 13:36:37 +02:00
Thomas Gleixner
bdf76e3676
C6X/meagmod-pic: Consolidate chained IRQ handler install/remove
...
Chained irq handlers usually set up handler data as well. We now have
a function to set both under irq_desc->lock. Replace the two calls
with one.
Search and conversion was done with coccinelle.
Reported-by: Russell King <rmk+kernel@arm.linux.org.uk >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Cc: Mark Salter <msalter@redhat.com >
Cc: Aurelien Jacquiot <a-jacquiot@ti.com >
Cc: linux-c6x-dev@linux-c6x.org
Cc: Julia Lawall <Julia.Lawall@lip6.fr >
Link: http://lkml.kernel.org/r/20150713130429.697731509@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-27 13:36:37 +02:00
Thomas Gleixner
284384442f
blackfin/irq: Use irq_set_handler_locked()
...
Use irq_set_handler_locked() as it avoids a redundant lookup of the
irq descriptor.
Search and update was done with coccinelle.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Cc: Steven Miao <realmz6@gmail.com >
Cc: Jiang Liu <jiang.liu@linux.intel.com >
Cc: Julia Lawall <julia.lawall@lip6.fr >
Cc: adi-buildroot-devel@lists.sourceforge.net
Link: http://lkml.kernel.org/r/20150713125611.731615902@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-27 13:36:37 +02:00
Jiang Liu
247bd4f1f1
blackfin/irq: Use access helper irq_data_get_affinity_mask()
...
This is a preparatory patch for moving irq_data struct members.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com >
Cc: Steven Miao <realmz6@gmail.com >
Cc: adi-buildroot-devel@lists.sourceforge.net
Link: http://lkml.kernel.org/r/20150713125611.652550580@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-27 13:36:37 +02:00
Jiang Liu
95e432b910
alpha/irq: Use access helper irq_data_get_affinity_mask()
...
This is a preparatory patch for moving irq_data struct members.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com >
Cc: Matt Turner <mattst88@gmail.com >
Link: http://lkml.kernel.org/r/20150713075508.821878421@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-27 13:36:37 +02:00
Florian Fainelli
0aef3997e1
irqchip/bcm7120-l2: Fix interrupt status for multiple parent IRQs
...
Our irq-bcm7120-l2 interrupt controller driver utilizes the same handler
function for the different parent interrupts it services: UPG_MAIN, UPG_BSC for
instance.
The problem is that function reads the IRQSTAT register which can combine
interrupt causes for different parent interrupts, such that we can end-up in
the following situation:
- CPU takes an interrupt
- bcm7120_l2_intc_irq_handle() reads IRQSTAT
- generic_handle_irq() is invoked
- there are still pending interrupts flagged in IRQSTAT from a different parent
- handle_bad_irq() is invoked for these since they come from a different irq_desc/irq
In order to fix this, make sure that we always mask IRQSTAT with the
appropriate bits that correspond go the parent interrupt source this is coming
from. To simplify things, associate an unique structure per parent interrupt
handler to avoid multiplying the number of lookups.
Fixes: a5042de268 ("irqchip: bcm7120-l2: Add Broadcom BCM7120-style Level 2 interrupt controller")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com >
Cc: linux-mips@linux-mips.org
Cc: cernekee@gmail.com
Cc: jason@lakedaemon.net
Cc: bcm-kernel-feedback-list@broadcom.com
Cc: gregory.0xf0@gmail.com
Cc: computersforpeace@gmail.com
Link: http://lkml.kernel.org/r/1437691941-3100-1-git-send-email-f.fainelli@gmail.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-27 08:09:38 +02:00
Brian Norris
fd53776671
irqchip/bcm7120-l2: Perform suspend/resume even without installed child IRQs
...
Make use of the new irq_chip_generic suspend/resume callbacks.
This is required because if there are no installed child IRQs for this
chip, the irq_chip::irq_{suspend,resume} functions will not be called.
However, we still need to save/restore the forwarding mask, to enable
the top-level GIC interrupt; otherwise, we lose UART output after S3
resume.
In addition to refactoring the callbacks, we have to self-initialize the
mask cache, since the genirq core also doesn't initialize this until the
first child IRQ is installed.
The original problem report is described in extra detail here:
http://lkml.kernel.org/g/20150619224123.GL4917@ld-irv-0074
Signed-off-by: Brian Norris <computersforpeace@gmail.com >
Tested-by: Florian Fainelli <f.fainelli@gmail.com >
Cc: Gregory Fong <gregory.0xf0@gmail.com >
Cc: bcm-kernel-feedback-list@broadcom.com
Cc: linux-mips@linux-mips.org
Cc: Kevin Cernekee <cernekee@chromium.org >
Cc: Jason Cooper <jason@lakedaemon.net >
Link: http://lkml.kernel.org/r/1437607300-40858-2-git-send-email-computersforpeace@gmail.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-27 08:09:38 +02:00
Brian Norris
be9b22b6a7
genirq: Add chip_[suspend|resume] PM support to irq_chip
...
Some (admittedly odd) irqchips perform functions that are not directly
related to any of their child IRQ lines, and therefore need to perform
some tasks during suspend/resume regardless of whether there are
any "installed" interrupts for the irqchip. However, the current
generic-chip framework does not call the chip's irq_{suspend,resume}
when there are no interrupts installed (this makes sense, because there
are no irq_data objects for such a call to be made).
More specifically, irq-bcm7120-l2 configures both a forwarding mask
(which affects other top-level GIC IRQs) and a second-level interrupt
mask (for managing its own child interrupts). The former must be
saved/restored on suspend/resume, even when there's nothing to do for
the latter.
This patch adds a new set of suspend/resume hooks to irq_chip_generic,
to help represent *chip* suspend/resume, rather than IRQ suspend/resume.
These callbacks will always be called for an IRQ chip (regardless of the
installed interrupts) and are based on the per-chip irq_chip_generic
struct, rather than the per-IRQ irq_data struct.
The original problem report is described in extra detail here:
http://lkml.kernel.org/g/20150619224123.GL4917@ld-irv-0074
Signed-off-by: Brian Norris <computersforpeace@gmail.com >
Tested-by: Florian Fainelli <f.fainelli@gmail.com >
Cc: Gregory Fong <gregory.0xf0@gmail.com >
Cc: bcm-kernel-feedback-list@broadcom.com
Cc: linux-mips@linux-mips.org
Cc: Kevin Cernekee <cernekee@chromium.org >
Cc: Jason Cooper <jason@lakedaemon.net >
Link: http://lkml.kernel.org/r/1437607300-40858-1-git-send-email-computersforpeace@gmail.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-27 08:09:38 +02:00
Nicolas Pitre
c376023b70
irqchip: Appropriate __init annotation for const data
...
Init data marked const should be annotated with __initconst for
correctness and not __initdata. And for those already __initconst,
they should be qualified as const at the compiler level too.
This also fixes LTO builds that otherwise fail with section mismatch
errors.
Signed-off-by: Nicolas Pitre <nico@linaro.org >
Cc: Jason Cooper <jason@lakedaemon.net >
Link: http://lkml.kernel.org/r/alpine.LFD.2.20.1507241511551.1806@knanqh.ubzr
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-27 08:09:38 +02:00
Bjorn Andersson
1ee4fb3ee1
genirq: Export irq_[get|set]_irqchip_state()
...
Export these functions to be able to build the Qualcomm family A PMIC
gpio and mpp drivers as modules.
[ tglx: Made them GPL exports ]
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com >
Reviewed-by: Mark Brown <broonie@kernel.org >
Cc: Marc Zyngier <marc.zyngier@arm.com >
Cc: <kernel-build-reports@lists.linaro.org >
Cc: <linaro-kernel@lists.linaro.org >
Cc: Srinivas Kandagatla <srinivas.kandagatla@linaro.org >
Cc: Linus Walleij <linus.walleij@linaro.org >
Link: http://lkml.kernel.org/r/1437594184-22966-1-git-send-email-bjorn.andersson@sonymobile.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-27 08:09:38 +02:00
Sudeep Holla
0d3f2c92e0
irqchip/gic: Remove redundant gic_set_irqchip_flags
...
Now that the GIC chip implementation enables IRQCHIP_SKIP_SET_WAKE and
IRQCHIP_MASK_ON_SUSPEND by default, the platforms requiring them need
not override the irqchip flags as before.
This patch removes all the users of gic_set_irqchip_flags and the
function itself.
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com >
Acked-by: Linus Walleij <linus.walleij@linaro.org >
Cc: Marc Zyngier <marc.zyngier@arm.com >
Cc: Simon Horman <horms@verge.net.au >
Cc: Jason Cooper <jason@lakedaemon.net >
Cc: Michal Simek <michal.simek@xilinx.com >
Cc: Magnus Damm <magnus.damm@gmail.com >
Cc: Gregory CLEMENT <gregory.clement@free-electrons.com >
Cc: Geert Uytterhoeven <geert@linux-m68k.org >
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com >
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/1436971109-20189-2-git-send-email-sudeep.holla@arm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-27 08:09:38 +02:00
Sudeep Holla
aec89ef72b
irqchip/gic: Enable SKIP_SET_WAKE and MASK_ON_SUSPEND
...
The GIC controller doesn't provides any facility to configure the wakeup
sources. For the same reason, GIC chip implementation can't provide
irq_set_wake functionality, but that results in the irqchip core
preventing the systems from entering sleep states like "suspend to RAM".
The GICv1/v2 controllers support wakeup events. They signal these wakeup
events even when CPU interface is disabled which means the wakeup
outputs are always enabled with the required logic in always-on domain.
An implementation can powerdown the GIC completely, but then the wake-up
must be relayed to some control logic within the power controller that
acts as wake-up interrupt controller.
Setting the IRQCHIP_SKIP_SET_WAKE flags will ensure that the interrupts
from GIC can work as wakeup interrupts and resume from suspend-to-{idle,
ram}. The wakeup interrupt sources need to use enable_irq_wake() and the
irqchip core will then set the IRQD_WAKEUP_STATE flag.
Also it's always safer to mask all the non wakeup interrupts are masked
at the chip level when suspending. The irqchip infrastructure can handle
masking of those interrupts at the chip level. The chip implementation
just have to indicate that with IRQCHIP_MASK_ON_SUSPEND.
This patch enables IRQCHIP_SKIP_SET_WAKE and IRQCHIP_MASK_ON_SUSPEND so
that the irqchip core allows and handles the power managemant wake up
modes.
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com >
Cc: Marc Zyngier <marc.zyngier@arm.com >
Cc: Simon Horman <horms@verge.net.au >
Cc: Jason Cooper <jason@lakedaemon.net >
Cc: Michal Simek <michal.simek@xilinx.com >
Cc: Linus Walleij <linus.walleij@linaro.org >
Cc: Magnus Damm <magnus.damm@gmail.com >
Cc: Gregory CLEMENT <gregory.clement@free-electrons.com >
Cc: Geert Uytterhoeven <geert@linux-m68k.org >
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com >
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/1436971109-20189-1-git-send-email-sudeep.holla@arm.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-27 08:09:37 +02:00
Jiang Liu
df6e23ae62
avr32/irq: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc
...
Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc while we
already have a pointer to corresponding irq_desc.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com >
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no >
Cc: Haavard Skinnemoen <hskinnemoen@gmail.com >
Link: http://lkml.kernel.org/r/20150713100606.527106283@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-26 11:47:25 +02:00
Thomas Gleixner
4f31dd63e0
avr32/at32ap: Use irq_set_handler_locked()
...
Use irq_set_handler_locked() as it avoids a redundant lookup of the
irq descriptor.
Search and replacement was done with coccinelle.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no >
Cc: Haavard Skinnemoen <hskinnemoen@gmail.com >
Cc: Jiang Liu <jiang.liu@linux.intel.com >
Cc: Julia Lawall <julia.lawall@lip6.fr >
Link: http://lkml.kernel.org/r/20150713100606.448031045@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-26 11:47:25 +02:00
Thomas Gleixner
4365160def
avr32/at32ap: Consolidate chained IRQ handler install/remove
...
Chained irq handlers usually set up handler data as well. We now have
a function to set both under irq_desc->lock. Replace the two calls
with one.
Search and conversion was done with coccinelle.
Reported-by: Russell King <rmk+kernel@arm.linux.org.uk >
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no >
Cc: Haavard Skinnemoen <hskinnemoen@gmail.com >
Cc: Jiang Liu <jiang.liu@linux.intel.com >
Cc: Julia Lawall <Julia.Lawall@lip6.fr >
Link: http://lkml.kernel.org/r/20150713100606.351640193@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-26 11:47:25 +02:00
Jiang Liu
aa48b6f708
genirq/MSI: Move alloc_msi_entry() from PCI into generic MSI code
...
Move alloc_msi_entry() from PCI MSI code into generic MSI code, so it
can be reused by other generic MSI drivers. Also introduce
free_msi_entry() for completeness.
Suggested-by: Stuart Yoder <stuart.yoder@freescale.com >.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com >
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com >
Reviewed-by: Yijing Wang <wangyijing@huawei.com >
Acked-by: Bjorn Helgaas <bhelgaas@google.com >
Cc: Tony Luck <tony.luck@intel.com >
Cc: linux-arm-kernel@lists.infradead.org
Cc: Grant Likely <grant.likely@linaro.org >
Cc: Borislav Petkov <bp@alien8.de >
Cc: Alexander Gordeev <agordeev@redhat.com >
Link: http://lkml.kernel.org/r/1436428847-8886-13-git-send-email-jiang.liu@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-22 18:37:44 +02:00
Jiang Liu
fc88419cfa
genirq/MSI: Reorginize struct msi_desc to prepare for support of generic MSI
...
Reorganize struct msi_desc so it could be reused by other MSI
drivers. We have the following layout now:
struct msi_desc {
/* Shared device/bus independent data */
...
union {
/* PCI specific data */
struct {
...
};
};
};
We need to have anonymous union and a anonymous structure for the PCI
fields, otherwise we would have to change all instances using these
fields.
For non PCI devices we will enforce a proper namespace and a non
anonymous structure.
[ tglx: Added proper comments to the structure and massaged changelog ]
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com >
Reviewed-by: Yijing Wang <wangyijing@huawei.com >
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com >
Cc: Tony Luck <tony.luck@intel.com >
Cc: linux-arm-kernel@lists.infradead.org
Cc: Bjorn Helgaas <bhelgaas@google.com >
Cc: Grant Likely <grant.likely@linaro.org >
Cc: Stuart Yoder <stuart.yoder@freescale.com >
Cc: Borislav Petkov <bp@alien8.de >
Cc: Alexander Gordeev <agordeev@redhat.com >
Link: http://lkml.kernel.org/r/1436428847-8886-12-git-send-email-jiang.liu@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-22 18:37:44 +02:00
Jiang Liu
25a98bd4ff
genirq/MSI: Store 'struct device' instead of 'struct pci_dev' in struct msi_desc
...
Store 'struct device *' instead of 'struct pci_dev *' in struct msi_desc,
so struct msi_desc can be reused by non PCI based MSI drivers.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com >
Reviewed-by: Yijing Wang <wangyijing@huawei.com >
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com >
Cc: Tony Luck <tony.luck@intel.com >
Cc: linux-arm-kernel@lists.infradead.org
Cc: Bjorn Helgaas <bhelgaas@google.com >
Cc: Grant Likely <grant.likely@linaro.org >
Cc: Stuart Yoder <stuart.yoder@freescale.com >
Cc: Borislav Petkov <bp@alien8.de >
Cc: Alexander Gordeev <agordeev@redhat.com >
Link: http://lkml.kernel.org/r/1436428847-8886-11-git-send-email-jiang.liu@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-22 18:37:43 +02:00
Jiang Liu
4a7cc83167
genirq/MSI: Move msi_list from struct pci_dev to struct device
...
Move msi_list from struct pci_dev into struct device, so we can
support non-PCI-device based generic MSI interrupts.
msi_list is now conditional under CONFIG_GENERIC_MSI_IRQ, which is
selected from CONFIG_PCI_MSI, so no functional change for PCI MSI
users.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com >
Reviewed-by: Yijing Wang <wangyijing@huawei.com >
Acked-by: Bjorn Helgaas <bhelgaas@google.com >
Cc: Tony Luck <tony.luck@intel.com >
Cc: linux-arm-kernel@lists.infradead.org
Cc: Grant Likely <grant.likely@linaro.org >
Cc: Marc Zyngier <marc.zyngier@arm.com >
Cc: Stuart Yoder <stuart.yoder@freescale.com >
Cc: Borislav Petkov <bp@alien8.de >
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
Cc: Joe Perches <joe@perches.com >
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com >
Cc: Paul Gortmaker <paul.gortmaker@windriver.com >
Cc: Luis R. Rodriguez <mcgrof@suse.com >
Cc: Rafael J. Wysocki <rafael.j.wysocki@intel.com >
Cc: Joerg Roedel <jroedel@suse.de >
Cc: Alexander Gordeev <agordeev@redhat.com >
Link: http://lkml.kernel.org/r/1436428847-8886-10-git-send-email-jiang.liu@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-22 18:37:43 +02:00
Jiang Liu
e39758e0ea
PCI: Use helper functions to access fields in struct msi_desc
...
Use helper functions to access fields in struct msi_desc, so we could
easily refine msi_desc later.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com >
Reviewed-by: Yijing Wang <wangyijing@huawei.com >
Cc: Tony Luck <tony.luck@intel.com >
Cc: linux-arm-kernel@lists.infradead.org
Cc: Bjorn Helgaas <bhelgaas@google.com >
Cc: Grant Likely <grant.likely@linaro.org >
Cc: Marc Zyngier <marc.zyngier@arm.com >
Cc: Stuart Yoder <stuart.yoder@freescale.com >
Cc: Borislav Petkov <bp@alien8.de >
Cc: Murali Karicheri <m-karicheri2@ti.com >
Cc: Jingoo Han <jingoohan1@gmail.com >
Cc: Pratyush Anand <pratyush.anand@gmail.com >
Cc: Michal Simek <michal.simek@xilinx.com >
Cc: Soeren Brinkmann <soren.brinkmann@xilinx.com >
Cc: Srikanth Thokala <sthokal@xilinx.com >
Cc: Rob Herring <robh@kernel.org >
Link: http://lkml.kernel.org/r/1436428847-8886-9-git-send-email-jiang.liu@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-22 18:37:43 +02:00
Jiang Liu
3bf15f53c9
sparc/PCI: Use helper functions to access fields in struct msi_desc
...
Use helper functions to access fields in struct msi_desc, so we could
easily refine struct msi_desc later.
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com >
Acked-by: David S. Miller <davem@davemloft.net >
Cc: Tony Luck <tony.luck@intel.com >
Cc: linux-arm-kernel@lists.infradead.org
Cc: Bjorn Helgaas <bhelgaas@google.com >
Cc: Grant Likely <grant.likely@linaro.org >
Cc: Marc Zyngier <marc.zyngier@arm.com >
Cc: Stuart Yoder <stuart.yoder@freescale.com >
Cc: Yijing Wang <wangyijing@huawei.com >
Cc: Borislav Petkov <bp@alien8.de >
Cc: Eric Snowberg <eric.snowberg@oracle.com >
Link: http://lkml.kernel.org/r/1436428847-8886-8-git-send-email-jiang.liu@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de >
2015-07-22 18:37:43 +02:00