Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3962808ybp; Mon, 7 Oct 2019 00:31:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqw6xhVOtWbRNxonXLStxkTXEVkQxz7LoohzG10RmAYgkkM+Uf2Ap/l+6yax7TOdEgfMFrvH X-Received: by 2002:a17:906:b30b:: with SMTP id n11mr22927388ejz.35.1570433516991; Mon, 07 Oct 2019 00:31:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570433516; cv=none; d=google.com; s=arc-20160816; b=yqHTp1o9T2nkYd0DkZSCGSOO2vnZJvEbXZtrUfv9fcJSD2totX1b3akmOktrE+E1iM lrH17HI7AXVI1OBOEadkvaYE1S2utePpfoGkUvGDjflgX/PoBlmN5Hf6uOU8lI/nxboe T/Y46HHOv55skzj58SlQuVm6NUzP7MNGuN+bOtMwVod08WtzMyHCSc3UAz9bQbvaBW+D w0Bcdrtt0Lqi8mqSoOxZvdJkZ/mKLmF+IqXjIKV6AJ7A5KPul8xinuRfcleDCVdITloe viD0Cbynp1Qj0pZ9z9BLllE7qUQxTwmzrsENUj2XwNYAthFxvgtzuWaTeuoInn9sQhh4 F1Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=TB5Y9SznZoLk3Cl9+KE4TTX9dqxZSiY5fm75Asj4Mjs=; b=VpuO2SmyXcAhjyZR1aEg9zOakckBvHksaaxBd0OVnqT1JvTzRSWdCGFYhGX2k+KBYQ 3mSix/aiuNi8qDZaBVR12BqP9jk4UeY2uTyd2QPJREq2+Hq99mzmnc5kMUrTjswALrvP kRiEbyDbCdA3TneYFUYxRTxj9EthiwrlbU0xz+9bKG2FuvcaXCsaIvJrAtWk/hyiBUFF XH5VQtOEDWJY52DMZ7Uvtf3TjImQH2P1vWFbA25gulCnFvYilXMR+IKJQ/gI1AEeFac+ 0xyZ3jgW+9mEfwL3wcxg3etNIs/0eROuelAy0pLOLfbRSSlPbRIbn7j50YNfV9U53CMj tI/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k6si8401431edb.235.2019.10.07.00.31.32; Mon, 07 Oct 2019 00:31:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727307AbfJGHbE (ORCPT + 99 others); Mon, 7 Oct 2019 03:31:04 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:42701 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726960AbfJGHbE (ORCPT ); Mon, 7 Oct 2019 03:31:04 -0400 Received: by mail-ot1-f67.google.com with SMTP id c10so10116501otd.9; Mon, 07 Oct 2019 00:31:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TB5Y9SznZoLk3Cl9+KE4TTX9dqxZSiY5fm75Asj4Mjs=; b=P4gta6P4DiTi0D3ddufBT0vxKFwMcR0dfH9IXh+Gb4ytZeKNCD3QUKe2LrNubYvIJ8 CKDafQ/8cEdrzwvqTt/eZoX7JKwBf+/n9ZjD3tBdBqQt/MN1VeKqzJ+rw3smwt7k5glI vf/zr6n1D1ho3qG54XMYyVg9spdC581UE1k3GcuxcHHtgF1669HzmM3+k3HLzORR7TBw 5C1FYOwaYtFn3GDQ2dH2X6nSHwSNNovZoOh0m1wNRwe2Hg1TZMWK+2ielrek3aXgNGwh RZKztPePYPY4PhGt2xGkC3CBK/sc3AVbeQI9tiQOcFHQ/l/vJnFWFf4Z8XA+4MxqDrSA /G4w== X-Gm-Message-State: APjAAAX3n6PJhHFSAUkwxuT/wp9StqIkKIdBtPUF8X112CC2YOCSIiyj 2GWwr03PVrAPjA77RU2PfPtanUTzsOltHaDAh6k= X-Received: by 2002:a9d:6642:: with SMTP id q2mr19868047otm.250.1570433462183; Mon, 07 Oct 2019 00:31:02 -0700 (PDT) MIME-Version: 1.0 References: <20191003000310.17099-1-chris.packham@alliedtelesis.co.nz> <20191003000310.17099-3-chris.packham@alliedtelesis.co.nz> In-Reply-To: <20191003000310.17099-3-chris.packham@alliedtelesis.co.nz> From: Geert Uytterhoeven Date: Mon, 7 Oct 2019 09:30:50 +0200 Message-ID: Subject: Re: [PATCH v2 2/2] pinctrl: iproc: use unique name for irq chip To: Chris Packham Cc: Linus Walleij , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, rayagonda.kokatanur@broadcom.com, li.jin@broadcom.com, "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Linux ARM , Marc Zyngier Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Chris, CC MarcZ On Thu, Oct 3, 2019 at 2:03 AM Chris Packham wrote: > Use the dev_name(dev) for the irqc->name so that we get unique names > when we have multiple instances of this driver. > > Signed-off-by: Chris Packham A while ago, Marc Zyngier pointed out that the irq_chip .name field should contain the device's class name, not the instance's name. Hence the current code is correct? See also "[PATCH 0/4] irqchip: renesas: Use proper irq_chip name and parent" (https://lore.kernel.org/lkml/20190607095858.10028-1-geert+renesas@glider.be/) Note that the irqchip patches in that series have been applied; the gpio patches haven't been applied yet. > --- a/drivers/pinctrl/bcm/pinctrl-iproc-gpio.c > +++ b/drivers/pinctrl/bcm/pinctrl-iproc-gpio.c > @@ -858,7 +858,7 @@ static int iproc_gpio_probe(struct platform_device *pdev) > struct gpio_irq_chip *girq; > > irqc = &chip->irqchip; > - irqc->name = "bcm-iproc-gpio"; > + irqc->name = dev_name(dev); > irqc->irq_ack = iproc_gpio_irq_ack; > irqc->irq_mask = iproc_gpio_irq_mask; > irqc->irq_unmask = iproc_gpio_irq_unmask; Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds