From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C62C9C5ACAE for ; Wed, 11 Sep 2019 09:51:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 994B8206A1 for ; Wed, 11 Sep 2019 09:51:06 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="VOvcBtiQ"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="jcbRuqnq" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 994B8206A1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:To:Subject:Message-ID:Date:From: In-Reply-To:References:MIME-Version:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=J8a0175dt5HP5FVy1DpUvApE+CuynX57pe8dNaTTETw=; b=VOvcBtiQ3L/yVZ T4yNoPW0HUPWTdtFwc4qciTKjt/PXGdMppStDl7H0Z6FF7k/tfoYt9MHBk4fIz9NYUiVI9o9VREe/ 7epepB7smaOXrIb/zt/6lGK5UJFcoBnygmE254NsuylL4oUGVolJ6yrp9IID7RNhd0PZo5Jzkmldn iZVn49nEPLVXvwR9UWeFRts6Pewlqnovdf2e69yrLuUCz/ifxtpc1QkySnxrIc9pgL1i+EWJdbawv 7YVPsz0NhVbfyElAbyhTva0+RS7pj1/wJowXTqPLQdtI4WB1pmu+vrUWlb3CMYgBEwvTm64fgNqQE mr9rKnAh5DXP0EwmqeXw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1i7zHB-000480-1n; Wed, 11 Sep 2019 09:51:01 +0000 Received: from mail-lf1-x142.google.com ([2a00:1450:4864:20::142]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1i7z9a-0003FT-Gj for linux-arm-kernel@lists.infradead.org; Wed, 11 Sep 2019 09:43:11 +0000 Received: by mail-lf1-x142.google.com with SMTP id c195so1033237lfg.9 for ; Wed, 11 Sep 2019 02:43:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=n0eGU7EwYvV44i/yZMlYO2mgsRqBSzpFil4+yiEnP3M=; b=jcbRuqnqmVkgtZ98MPCNgpOW1Z6kmUSw8xfMYAW37/xJ62Qt3QsQ/voTaoFkiTXyDP w1Q6d7XhKj2eklW4V5AoidRHlrApe860OCk56LBhG/GrCi+4h+4CGPvYYXbc21mT2Qmb n8/oZluaIZNJqeg71T5o1EhMoB+m0tTvFGbJeLBixpk1B0OvuwGsdc44VhKJIB54ydLM +rJ1kHOtRpY3wWwCnkSYJO6TzxUPRlzQadSIu3Q0h8wveQneMW03LB1cnaSuhiyk35Up nJFTKiaBIgKKwiKSXI8tF9Js1bVU4DuCKFCf6MOBC8EWum5/LM9CClP0N5EetYarRvQn HOcA== 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=n0eGU7EwYvV44i/yZMlYO2mgsRqBSzpFil4+yiEnP3M=; b=FGE6UDzHjx23TEhpOl3v8yC8gg18H5uidkDG1TZxHYNyeinle+dFEwXhgVceLNju+S IEX6Pvx24VAGwQa3hjaEc+89gb9gKGl9BwwTEkeRsC9OzVcU2Wkj4QosLvs+5h95umyN VAm9My07PrxQMaYqwC2Qe3gHHau1LKiEDh7uHm3Ncgh9iLniHYXvuBwrZiw4sYi+EQ+D hfgX3bMRRm1SKYBdDetbtawdcTf8U/G3bUQEEGAI85NoGqtCdupAYoSlmTzyIEoXRdjW +kJJO6kZCaUqn9xBACY/e1lOrABqaHxYkNOnJsrH/0edV4ShBWZ+LxS5esP+rrmg/cDe Y+DA== X-Gm-Message-State: APjAAAVIaRnQb5HwNQE+rkvdj/irRhQ2gDR6DSovumk2RSZp3FBHpu2f 5ABlrtCH7vnzRNRh5HFDFD8x3jcurot3Jqha0Fu2+bd5vvLasQ== X-Google-Smtp-Source: APXvYqx4fsV/WTIRSXhN20GDJfDooCB6DWGgBVXCN0nS2mCnPbakVJ5rn36/YEesW30QiVEAg3CUEQ+P0NTYpRFt3xA= X-Received: by 2002:ac2:51a7:: with SMTP id f7mr1200184lfk.152.1568194988428; Wed, 11 Sep 2019 02:43:08 -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: <1567054348-19685-3-git-send-email-srinath.mannam@broadcom.com> From: Linus Walleij Date: Wed, 11 Sep 2019 10:42:57 +0100 Message-ID: Subject: Re: [PATCH 2/2] gpio: iproc-gpio: Handle interrupts for multiple instances To: Srinath Mannam X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190911_024310_684876_B7B20C34 X-CRM114-Status: GOOD ( 14.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Scott Branden , Rayagonda Kokatanur , Ray Jui , "linux-kernel@vger.kernel.org" , bcm-kernel-feedback-list , Linux ARM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel