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


Groups > linux.kernel > #1671670

Re: [PATCH v4 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU

From Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Newsgroups linux.kernel
Subject Re: [PATCH v4 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU
Date 2017-06-21 15:40 +0200
Message-ID <tUO1s-6FS-19@gated-at.bofh.it> (permalink)
References <tUs0V-1bG-3@gated-at.bofh.it> <tUs0X-1bG-37@gated-at.bofh.it> <tUIIq-3hT-25@gated-at.bofh.it>
Organization Free Electrons

Show all headers | View raw


Hello,

On Wed, 21 Jun 2017 08:56:24 +0100, Marc Zyngier wrote:

> > +static void mvebu_icu_write_msg(struct msi_desc *desc, struct msi_msg *msg)
> > +{
> > +	struct irq_data *d = irq_get_irq_data(desc->irq);
> > +	struct mvebu_icu_irq_data *icu_irqd = d->chip_data;
> > +	struct mvebu_icu *icu = icu_irqd->icu;
> > +	unsigned int icu_int;
> > +
> > +	if (msg->address_lo) {  
> 
> As mention in the previous thread, this needs to check address_hi as well.

Fixed in v5.

> > +	gicp_dn = of_parse_phandle(node, "msi-parent", 0);
> > +	if (!gicp_dn) {
> > +		dev_err(&pdev->dev, "Missing marvell,gicp property.\n");  
> 
> The property name doesn't match here. But overall, there is little point
> in reparsing the msi-parent, since that's what of_msi_get_domain does.
> Instead, consider using:
> 
> 	gicp_dn = irq_domain_get_of_node(pdev->dev.msi_domain);
> 
> which will do the right thing.

Fixed in v5.


> With the two minor changes above, and for patch #3 as well:
> 
> Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>

Thanks! Tags added in v5.

> I can either perform the changes when applying the patches, or let you
> do it so that you can test it first (and solve the issue with the DT
> include fine with Gregory).

I've sent a v5 that fixes the different issues you pointed out, and
also fixes the DT include problem. Tested on HW, it still works as
expected.

Thanks again for the review!

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

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


Thread

[PATCH v4 0/6] Add support for the ICU unit in Marvell Armada 7K/8K Thomas Petazzoni <thomas.petazzoni@free-electrons.com> - 2017-06-20 16:10 +0200
  [PATCH v4 6/6] arm64: dts: marvell: enable GICP and ICU on Armada 7K/8K Thomas Petazzoni <thomas.petazzoni@free-electrons.com> - 2017-06-20 16:10 +0200
    Re: [PATCH v4 6/6] arm64: dts: marvell: enable GICP and ICU on Armada 7K/8K Gregory CLEMENT <gregory.clement@free-electrons.com> - 2017-06-20 17:00 +0200
      Re: [PATCH v4 6/6] arm64: dts: marvell: enable GICP and ICU on  Armada 7K/8K Thomas Petazzoni <thomas.petazzoni@free-electrons.com> - 2017-06-20 17:40 +0200
        Re: [PATCH v4 6/6] arm64: dts: marvell: enable GICP and ICU on Armada 7K/8K Gregory CLEMENT <gregory.clement@free-electrons.com> - 2017-06-20 17:50 +0200
  [PATCH v4 5/6] arm64: marvell: enable ICU and GICP drivers Thomas Petazzoni <thomas.petazzoni@free-electrons.com> - 2017-06-20 16:10 +0200
    Re: [PATCH v4 5/6] arm64: marvell: enable ICU and GICP drivers Marc Zyngier <marc.zyngier@arm.com> - 2017-06-21 10:00 +0200
  [PATCH v4 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Thomas Petazzoni <thomas.petazzoni@free-electrons.com> - 2017-06-20 16:10 +0200
    Re: [PATCH v4 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Marc Zyngier <marc.zyngier@arm.com> - 2017-06-21 10:00 +0200
      Re: [PATCH v4 4/6] irqchip: irq-mvebu-icu: new driver for Marvell  ICU Thomas Petazzoni <thomas.petazzoni@free-electrons.com> - 2017-06-21 15:40 +0200

csiph-web