Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1261847ybj; Fri, 20 Sep 2019 07:41:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7NHLXlhc8QmHAccXonJb59M2RlmsslgGAQe2ynYXppPKYbe5Sm8z5zLGEBRfbHrWf00qm X-Received: by 2002:aa7:dc55:: with SMTP id g21mr18507070edu.210.1568990503988; Fri, 20 Sep 2019 07:41:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568990503; cv=none; d=google.com; s=arc-20160816; b=HAE7JuZfZ33UAKNhkkgBnSY8NsmygYEoqDdGZEZN2Gfj2HLZjY4gIa8DAoNiHqQKub rwCGhjWRT24Guk2Pha8RaILTXLFHfuB6tt1sL3mPJjPP3lhMsFmo9hECgXUfYWUB4XM/ i2igZwgRbMX8kNtkV6DU2RyGeZgmsyB91xF7PAvEWr0EoK56dnwqjyP+W1eTop4shO4I ZwpipX18OPxtt4wB/DBHbhs1RsOx8uKtCcfdvq5DwEOJgy/C0/1CW1gKidmmQl47tpQ/ 2j1aDKc4Ueu0zs1hqAyGujWNghTT4S6eMPOs37i3ybAG7dIBhsd+Z0JnYUYtVZBCo+Ek s7Ww== 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:dkim-signature; bh=KrJRto0V1tQECL7z3O9ZKJjMZZ7EfCuDScReljEVoD0=; b=Bs253gkw7bRtcMjAp4zyUKNybteL5Uv+AoNxsNTB4xIdHVIVnReFbiwSy3nvtYkle6 2T35t5pcTFGFT+d7vUCEcWtpa6p1u6ecoY0zBaUzknYCXc6qgCZLHUdoiwoSCq2Pr63P IK9EzOEjCQgFofLJ6ImWB9V6n2VGREUqRucVe7CiYH9gwslke0qBVTR2tq3bob4IVyWd zgniLu/5QG3JhuETI9L6WcVXkQ1rTs6LMlF/BqYAJYaWzXqeu9x/4vOylqgK3KmMbtND iUueJJc/+ysbh3NZtHshLu/mlTG4LIMES1Vcb8gdwX3ouzCg1jxCxcqGvgQh/b26mOFS TDDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=Q3u2Mh8g; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bo15si1156927ejb.16.2019.09.20.07.41.20; Fri, 20 Sep 2019 07:41:43 -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; dkim=pass header.i=@broadcom.com header.s=google header.b=Q3u2Mh8g; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408100AbfITGB0 (ORCPT + 99 others); Fri, 20 Sep 2019 02:01:26 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:35518 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404716AbfITGB0 (ORCPT ); Fri, 20 Sep 2019 02:01:26 -0400 Received: by mail-wm1-f67.google.com with SMTP id y21so945838wmi.0 for ; Thu, 19 Sep 2019 23:01:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KrJRto0V1tQECL7z3O9ZKJjMZZ7EfCuDScReljEVoD0=; b=Q3u2Mh8gz2fE3BJI573A/4KXqhnj4eoXlYMoZGGughIFG6Vb5FrwRq4f2U9S4oq1Vr Hbt9FsxwAgyBIq9a+hMcsz5uxfp8u73hXd7+1A6OV9p60H1OKGviHoiZWKnWNb7g7hfF mYVifC0KgoucYeWRHf5UYbWqoMgIslcMNPW+A= 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=KrJRto0V1tQECL7z3O9ZKJjMZZ7EfCuDScReljEVoD0=; b=kmJh0dhMfY3brYmsJckhXUVWEfWb4Hm6SYhVpCJiZ/hFJVp39s2d6f1I5EOLpoDWrw EFoSVwC9EGp7krzrZHZ6qEhOg5GREKcYsrMg0pqYZxTo6S1Htk+UOv6d8oiUxKqXT5R/ 2hX6BNFN79M080dMYiZ/GIWKX5urcRZfu/xEHYP+Z/WZhf3n6La4+0kE2NjGGbepHtIe yldsrvY+c65VU+l7Bx2M3i70v5MAiPyxiexT/7L1jLj21qYmgU51e0BSx+83Sa/CTyUF kqAHH1wOQuXfC66XhJfxlxHbxC8k+mXJj2oR9Yvv2jE0PUNLDFblEXVJNi821Z1q/Q6N vxlQ== X-Gm-Message-State: APjAAAWUtEie9Q4mJmSPXWVmfyvlItiCMJWg0hBYds5qNVrCTGo2Ok9e uUODZ3342gHKwmOVeUyVlGgUktEu4pNn3wXMFpaNIg== X-Received: by 2002:a05:600c:217:: with SMTP id 23mr1913029wmi.76.1568959283898; Thu, 19 Sep 2019 23:01:23 -0700 (PDT) MIME-Version: 1.0 References: <1567054348-19685-1-git-send-email-srinath.mannam@broadcom.com> <1567054348-19685-3-git-send-email-srinath.mannam@broadcom.com> In-Reply-To: From: Srinath Mannam Date: Fri, 20 Sep 2019 11:31:12 +0530 Message-ID: Subject: Re: [PATCH 2/2] gpio: iproc-gpio: Handle interrupts for multiple instances To: Linus Walleij Cc: Ray Jui , Scott Branden , bcm-kernel-feedback-list , Linux ARM , "linux-kernel@vger.kernel.org" , Rayagonda Kokatanur 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 Linus, We have tested patch with your changes, it works fine. Thanks a lot for all the help. Regards, Srinath. On Wed, Sep 11, 2019 at 3:13 PM Linus Walleij wrote: > > On Thu, Aug 29, 2019 at 5:52 AM Srinath Mannam > wrote: > > > From: Rayagonda Kokatanur > > > > When multiple instance of iproc-gpio chips are present, a fix up > > message[1] is printed during the probe of second and later instances. > > > > This issue is because driver sharing same irq_chip data structure > > among multiple instances of driver. > > > > Fix this by allocating irq_chip data structure per instance of > > iproc-gpio. > > > > [1] fix up message addressed by this patch > > [ 7.862208] gpio gpiochip2: (689d0000.gpio): detected irqchip that > > is shared with multiple gpiochips: please fix the driver. > > > > Fixes: 616043d58a89 ("pinctrl: Rename gpio driver from cygnus to iproc") > > Signed-off-by: Rayagonda Kokatanur > > Patch applied, I had to rewrite it a bit to fit the new code that > set up the irqchip when adding the gpio_chip, please check that > the result works. > > Yours, > Linus Walleij