Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6222502imu; Mon, 21 Jan 2019 05:21:24 -0800 (PST) X-Google-Smtp-Source: ALg8bN4YxnbtKbTjXRDulhiSYB/CxXbRUfH/gefsIGF4m9nXF5sq/R8B8HFEX+eWGtbOnDPDAVPS X-Received: by 2002:a62:15d5:: with SMTP id 204mr30208468pfv.103.1548076884136; Mon, 21 Jan 2019 05:21:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548076884; cv=none; d=google.com; s=arc-20160816; b=yrJL4/kqOpHEgC0u4o5QUqzGPsMopJcdS2jLNOmbFpXD9YRfBP9JYw+ZQA+VsTrmxO v3ul5UA6uvfRnpyYoQmMnSaHyCD/VWlghO5a2FLpR7eLTabwp4WBdUDb1T6KLQ27cUwk 54QLpEVZqxjAErXNxg8ieJzx2xYVR/DKDoDGhT0j1/K3qufjN2APlHJjtc9zs3M1Gau/ ZUt24gDWAreh4yDNLouf38VRbHZpZ6ENta0QE23tyqg35nIxnKzSLasHiCAcem4XwXRe 6gxwh/l/RJXgyzTA6eW7xvgxYmtpPJhMAtOrCttdUMr6LpjEe2BM6hxEF44MWFpgFK5/ 4vgQ== 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=KlutyYu8Foj1+Lu/ha0RenldfaRM0X15+ku/9bdlSeU=; b=GsnH2TBa0JtBpy4Ys4nlhe3r4KDQwT16Fx2s+0f0eu4a9Ykm5yTY2qPUgOLxb+vx4M 2kqVyKhlo6bfUH2NThvdwm3vp/5E+RKvAM4wCLqAZOpeowD+e80+dZMgzHkho3euQItQ 6NRP1t138Kkg15V5D5s8bPl17SLb3NQrRhFqjUJFa7GKeDNHdX+nFWF6W8Cp0bdw5hza AmI1NolDfgRLOFPEmWTyn8xbJgemCQ+5MebEsmG4jw85wegXNFBLLyYLCIm2X7lWSxC3 FtjR28BKqC3CBrG+XSSmaJsZKgmPMT7GNoEWzXIg6DMtcXs7BbN9MFVw2J0Ibeo/B517 0lWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WxzoqaWo; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u4si12321164pls.34.2019.01.21.05.21.07; Mon, 21 Jan 2019 05:21:24 -0800 (PST) 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=@linaro.org header.s=google header.b=WxzoqaWo; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728754AbfAUNUD (ORCPT + 99 others); Mon, 21 Jan 2019 08:20:03 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:41470 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728314AbfAUNUD (ORCPT ); Mon, 21 Jan 2019 08:20:03 -0500 Received: by mail-lf1-f66.google.com with SMTP id c16so15463511lfj.8 for ; Mon, 21 Jan 2019 05:20:01 -0800 (PST) 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=KlutyYu8Foj1+Lu/ha0RenldfaRM0X15+ku/9bdlSeU=; b=WxzoqaWoRgiOaaVjvegzUqGuUqKr9Jwjyp3mvYkLOZcawXt2kA2VDXyh6TkTukVeyI kkn1yHFopkd8AFvyZSoscIVWL4ig7e7uQsLd67SaWFaB1yIYaLrguHLRbta5XblAruMp FyKWEp312ROXamvO4wSc+DXSQ9tD+qe1m6Zjg= 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=KlutyYu8Foj1+Lu/ha0RenldfaRM0X15+ku/9bdlSeU=; b=SFqMtkOO88Ige8oNgAcG7VYkMZnmozLdcgwGRFgxaiBfMtThq57iX5D7CObJEs20EL P3GbUl/hAV0F22SiBXPsbkfzB3Eg0RaNevsT31bUPu0+xsfH5sPVFQpJ4g8Z1NVHRbQa uJSuJ8oCwFJ3TzUSrdqEWPgSgM7YFIVOjPAgGgq1bix+mskswEn5X7U4uk35vkMuUhGE eIzWBtexl4GQPs3fhN8g9yPnGdsRFUURitv7VGTCOkazN34gOB4unXwVUOcYHyi8v24r SJXj1PJltD5p6qw0+Mt0lyZcdfyjEeoh7kf0qNqwChqgOFWbQ6dflNDHJFNu3a7jFZ24 WOQg== X-Gm-Message-State: AJcUukf2N/GrRF0rp0yEFW08yP8TATnGhCtze2MgXr+ANotgW9YO5aZx be6UorXM7madS47FWVIHzub2XyYgvq/jlvXBgaXdADY5 X-Received: by 2002:a19:41c4:: with SMTP id o187mr9657008lfa.32.1548076801005; Mon, 21 Jan 2019 05:20:01 -0800 (PST) MIME-Version: 1.0 References: <20190111162516.28197-1-poeschel@lemonage.de> In-Reply-To: <20190111162516.28197-1-poeschel@lemonage.de> From: Linus Walleij Date: Mon, 21 Jan 2019 14:19:49 +0100 Message-ID: Subject: Re: [PATCH] pinctrl: mcp23s08: Allocate irq_chip dynamic To: Lars Poeschel Cc: "open list:PIN CONTROL SUBSYSTEM" , open list 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 On Fri, Jan 11, 2019 at 4:16 PM Lars Poeschel wrote: > Keeping the irq_chip definition static shares it with multiple instances > of the mcp23s08 gpiochip in the system. This is bad and now we get this > warning from gpiolib core: > > "detected irqchip that is shared with multiple gpiochips: please fix the > driver." > > Hence, move the irq_chip definition from being driver static into the > struct mcp23s08. So a unique irq_chip is used for each gpiochip > instance. > > Signed-off-by: Lars Poeschel Patch applied. Yours, Linus Walleij