Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752429AbdFUNaw (ORCPT ); Wed, 21 Jun 2017 09:30:52 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:33630 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752390AbdFUNat (ORCPT ); Wed, 21 Jun 2017 09:30:49 -0400 Date: Wed, 21 Jun 2017 15:30:42 +0200 From: Thomas Petazzoni To: Marc Zyngier Cc: Thomas Gleixner , Jason Cooper , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Ian Campbell , Pawel Moll , Mark Rutland , Kumar Gala , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , linux-arm-kernel@lists.infradead.org, Nadav Haklai , Hanna Hawa , Yehuda Yitschak , Antoine Tenart , =?UTF-8?B?TWlxdcOobA==?= Raynal Subject: Re: [PATCH v4 4/6] irqchip: irq-mvebu-icu: new driver for Marvell ICU Message-ID: <20170621153042.05237000@windsurf.home> In-Reply-To: <8c085bb8-9bfa-90f7-1dd1-f4f5eb852402@arm.com> References: <20170620140722.31646-1-thomas.petazzoni@free-electrons.com> <20170620140722.31646-5-thomas.petazzoni@free-electrons.com> <8c085bb8-9bfa-90f7-1dd1-f4f5eb852402@arm.com> Organization: Free Electrons X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1532 Lines: 55 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 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