Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1189704

Re: [PATCH 1/5] genirq: irqdomain: Use an accessor for the of_node field

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Hanjun Guo <hanjun.guo@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH 1/5] genirq: irqdomain: Use an accessor for the of_node field
Date Wed, 22 Jul 2015 09:40:02 +0200
Message-ID <pOWNc-d3-13@gated-at.bofh.it> (permalink)
References <pOCEN-5bW-7@gated-at.bofh.it> <pOCEN-5bW-5@gated-at.bofh.it>
X-Original-To Marc Zyngier <marc.zyngier@arm.com>, Thomas Gleixner <tglx@linutronix.de>, Jiang Liu <jiang.liu@linux.intel.com>, Jason Cooper <jason@lakedaemon.net>
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=y1KVYP8N9NsvvnUFso2ZOHMLRswlVRqyxEc8LMyyHQ0=; b=dCmLP7TIV8meSbF+QH6kHMhzHmyru9Sjrvm6LUI2YClW/mQNpu4LJ1TUC6/JWrUlg4 P3C/PJBiMdZBCM8PiqiNT++w2pSETOALo7Fs8QzFIJJVux82xHjmzwhXQYw68crpLSzq Cg1oVrkKP2+gLSII+P2J3yKEH+xzmx0lPqAFipij3um0ES+1ObOI9g4jp39ZYJzjjozc Sx7AAe3BLQiPmdnr1ndtR3mTEwErIj60CnDq5kDP3ZhNuVjKux/VsqB0jx4aN53N49kU VzFFG5jl+CTkCHb5+tlH5du68o1FvodrAKYfvOoNH1dYanIZv4LfFKQccHlCC78VYuUW p4QA==
X-Gm-Message-State ALoCoQnCyZ7GxZ1sL2/wcAJWqH86xWMrrKbRDhqgN4h02FZiEDtm6r5mSw0tnT5aFlmyebylBXri
X-Received by 10.70.1.102 with SMTP id 6mr3042888pdl.32.1437550558642; Wed, 22 Jul 2015 00:35:58 -0700 (PDT)
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0
MIME-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 55
Organization linux.* mail to news gateway
X-Original-Cc linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>, Tomasz Nowicki <tomasz.nowicki@linaro.org>, "Rafael J. Wysocki" <rjw@rjwysocki.net>, Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
X-Original-Date Wed, 22 Jul 2015 15:35:51 +0800
X-Original-Message-ID <55AF47D7.8010304@linaro.org>
X-Original-References <1437473280-11431-1-git-send-email-marc.zyngier@arm.com> <1437473280-11431-2-git-send-email-marc.zyngier@arm.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref aioe.org linux.kernel:1189704

Show key headers only | View raw


On 07/21/2015 06:07 PM, Marc Zyngier wrote:
> The struct irq_domain contains a "struct device_node *" field
> (of_node) that is almost the only link between the irqdomain
> and the device tree infrastructure.
>
> In order to prepare for the removal of that field, convert all
> users outside of kernel/irq/irqdomain.c to use an accessor.
>
> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
> ---
>   arch/mips/cavium-octeon/octeon-irq.c          | 4 ++--
>   arch/powerpc/platforms/cell/axon_msi.c        | 2 +-
>   arch/powerpc/platforms/cell/spider-pic.c      | 9 ++++++---
>   arch/powerpc/platforms/powernv/opal-irqchip.c | 2 +-
>   arch/powerpc/sysdev/ehv_pic.c                 | 3 ++-
>   arch/powerpc/sysdev/fsl_msi.c                 | 2 +-
>   arch/powerpc/sysdev/i8259.c                   | 3 ++-
>   arch/powerpc/sysdev/ipic.c                    | 3 ++-
>   arch/powerpc/sysdev/mpic.c                    | 3 ++-
>   arch/powerpc/sysdev/mpic_msi.c                | 2 +-
>   arch/powerpc/sysdev/qe_lib/qe_ic.c            | 3 ++-
>   drivers/gpio/gpio-sodaville.c                 | 2 +-
>   drivers/irqchip/exynos-combiner.c             | 2 +-
>   drivers/irqchip/irq-atmel-aic-common.c        | 2 +-
>   drivers/irqchip/irq-crossbar.c                | 4 ++--
>   drivers/irqchip/irq-gic-v2m.c                 | 2 +-
>   drivers/irqchip/irq-gic-v3-its.c              | 2 +-
>   drivers/irqchip/irq-gic-v3.c                  | 2 +-
>   drivers/irqchip/irq-gic.c                     | 2 +-
>   drivers/irqchip/irq-hip04.c                   | 2 +-
>   drivers/irqchip/irq-mtk-sysirq.c              | 2 +-
>   drivers/irqchip/irq-s3c24xx.c                 | 4 ++--
>   drivers/irqchip/irq-tegra.c                   | 4 ++--
>   drivers/irqchip/irq-vf610-mscm-ir.c           | 5 +++--
>   drivers/spmi/spmi-pmic-arb.c                  | 2 +-
>   include/linux/irqdomain.h                     | 5 +++++
>   26 files changed, 46 insertions(+), 32 deletions(-)

It seems to me that some other files missed,
in arch/powerpc/platforms/pasemi/msi.c:

         if (!mpic->irqhost->of_node ||
             !of_device_is_compatible(mpic->irqhost->of_node,
                                      "pasemi,pwrficient-openpic"))
                 return -ENODEV;

If you need more eyes to find all of them, please count me in :)

Thanks
Hanjun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: [PATCH 1/5] genirq: irqdomain: Use an accessor for the of_node  field Hanjun Guo <hanjun.guo@linaro.org> - 2015-07-22 09:40 +0200
  Re: [PATCH 1/5] genirq: irqdomain: Use an accessor for the of_node  field Thomas Gleixner <tglx@linutronix.de> - 2015-07-22 10:00 +0200
  Re: [PATCH 1/5] genirq: irqdomain: Use an accessor for the of_node  field Thomas Gleixner <tglx@linutronix.de> - 2015-07-22 10:00 +0200
    Re: [PATCH 1/5] genirq: irqdomain: Use an accessor for the of_node  field Marc Zyngier <marc.zyngier@arm.com> - 2015-07-22 14:50 +0200
  Re: [PATCH 1/5] genirq: irqdomain: Use an accessor for the of_node  field Marc Zyngier <marc.zyngier@arm.com> - 2015-07-22 10:00 +0200

csiph-web