From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brendan Higgins Subject: Re: [PATCH v9 2/5] irqchip/aspeed-i2c-ic: Add I2C IRQ controller for Aspeed Date: Fri, 2 Jun 2017 11:29:07 -0700 Message-ID: References: <20170602084603.30811-1-brendanhiggins@google.com> <20170602084603.30811-3-brendanhiggins@google.com> <0db6df3c-013b-1d57-5c69-edfc53ef26c0@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: <0db6df3c-013b-1d57-5c69-edfc53ef26c0@arm.com> Sender: linux-i2c-owner@vger.kernel.org To: Marc Zyngier Cc: Wolfram Sang , Rob Herring , Mark Rutland , Thomas Gleixner , Jason Cooper , Joel Stanley , Vladimir Zapolskiy , Kachalov Anton , =?UTF-8?Q?C=C3=A9dric_Le_Goater?= , Benjamin Herrenschmidt , Ryan Chen , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, Linux Kernel Mailing List , OpenBMC Maillist List-Id: devicetree@vger.kernel.org >> + i2c_ic->irq_domain = irq_domain_add_linear( >> + node, ASPEED_I2C_IC_NUM_BUS, >> + &aspeed_i2c_ic_irq_domain_ops, NULL); > > nit: can you have at least one argument following the function name? > Even if checkpatch shouts out you? Makes no difference to me. > >> + if (!i2c_ic->irq_domain) >> + return -ENOMEM; > > All these error paths are leaking the initial memory allocation. Whoops, forgot I am not using devm_*. > >> + >> + i2c_ic->irq_domain->name = "aspeed-i2c-domain"; >> + >> + irq_set_chained_handler_and_data(i2c_ic->parent_irq, >> + aspeed_i2c_ic_irq_handler, i2c_ic); >> + >> + pr_info("i2c controller registered, irq %d\n", i2c_ic->parent_irq); >> + >> + return 0; >> +} >> + >> +IRQCHIP_DECLARE(ast2400_i2c_ic, "aspeed,ast2400-i2c-ic", aspeed_i2c_ic_of_init); >> +IRQCHIP_DECLARE(ast2500_i2c_ic, "aspeed,ast2500-i2c-ic", aspeed_i2c_ic_of_init); >> > > Once you've fixed the trivial bug above, this should be good to go. > What's the merging strategy? Can I take the initial two patches, and let > someone else deal with the rest? Or do you want the whole series to be > kept together? I think it makes most sense to keep it together and let Wolfram merge the whole thing since the I2C patches won't work without this and I would not want to make the merging process unnecessarily complicated.