Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp170027ybn; Thu, 3 Oct 2019 03:22:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcNf6azTA5dUCcXB4hEXTedokAB497MSet8+Rh1Ydj3i4MmbUhSf2pcjfNGH5VJsl5D2ab X-Received: by 2002:a17:906:ecf6:: with SMTP id qt22mr7014055ejb.212.1570098145207; Thu, 03 Oct 2019 03:22:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570098145; cv=none; d=google.com; s=arc-20160816; b=TzQDvdRokYKXqwimD3Jcm3EQ8HBFaItTf5n0dVBxJ6KxYHuVhyGkgytbc2sFTWc8CJ 6+vUfUomVtK0ZuhYjzdF7yuoqMzUUH2cvA3iyVcrYx+ikOfIlPxEvYBQskBhvcc6PAw5 G27EEzf7/JmVpX9HXbWTiiZctzJXt3PGbx10wh/FXWVDVyBxd/p/zuuUF86JB+BLrcXt T2oulo10pba+izFlhLTSI+Gc17BNK/E9DdhVhBxz9nj65uJGkMEoFuOZeRRR96S7NzHA TnRaR9FdRmw/Jd2diHD1v8QbLo1FoHPHUGkFKi4Ax6gcEY+jwyGli7J+JfxSGxDan2Q/ csnA== 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=Mx2mVdBYrakYmKxbPV66SmuQcwBPBGOoE53tUIGHR+A=; b=zPCxUbJggEQCjEW7G0ei61HOE/ANuJ/6U9hEFoQD5Uqu7EXEO5uAHmP6gOBRcU7PUQ 08RGH0fnTtXkYI8GCsaGVJXOTbLDf3msxbbaeU5X8vwnifBoYRgmDqJPprieEKqHFHJO GR7+zzTsa2gWJKi/42ytVMmfJDLDJXkv5qNJBKaIlbi/sVVhtxsgkj8fwNv7owNxww3q EmVGgPRppZkwonbXSIlOEMa8DKiFzMn1HKYiKqpcmzAthHGkI3bq5WTzYvDwrP+hBmma /kM5gpBEsXSgyqFbxHSxEbjzkLlzDcAp/h4lXvzxQ02cscVjMlWcRLnaqRnpZdrBIZ/v TVrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BiohckBc; 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 b20si1088656edc.359.2019.10.03.03.22.00; Thu, 03 Oct 2019 03:22:25 -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=@linaro.org header.s=google header.b=BiohckBc; 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 S1728618AbfJCKT5 (ORCPT + 99 others); Thu, 3 Oct 2019 06:19:57 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:41563 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727242AbfJCKT5 (ORCPT ); Thu, 3 Oct 2019 06:19:57 -0400 Received: by mail-lj1-f193.google.com with SMTP id f5so2058463ljg.8 for ; Thu, 03 Oct 2019 03:19:55 -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=Mx2mVdBYrakYmKxbPV66SmuQcwBPBGOoE53tUIGHR+A=; b=BiohckBckv+eDTVkHIyBC8N7T6XQTXFT0oc1lxYcBVidzoZVAV7lN2qPws75YjQJom 1CmWc86k3OXNMIg+KGYFkKk6WH1jJwJc3SKei1E2Yu4AzBDEcm4ZJXgtKbt6RVaUVznD CdfVW6NE3SjiWU+htl7iwmSSKUfC2xcuX9HoxBnoxGakn5KIslygdNV1woIbSjwhXpmv 91FSZG18vyp7hlyJqI11V2Tq/w5eEMXw+EWwG8DfaGipdHvG4Rwibr4fPOk7D9XW71ox zmuEvTjefK87JRBKNAkHvnOPRBXGTu0uuHxeMbPjuuH67AfuFHpc7T0oayvOk58CB8C0 L8IA== 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=Mx2mVdBYrakYmKxbPV66SmuQcwBPBGOoE53tUIGHR+A=; b=bBDUD2QYUWjqk8EHlOLLL7SZmG59Bus/evTqIN/pxyn3H0K3J5Jhlw05lLdH+QLJRA jtDf/3nFOjernJQefoOQbxkFoDMmfqzxi79oPgt55RNddZElmJY+kjuT8yhy/1rRK1PX y+qxyvJXmt1sZR6ozl9aqw5kvOovqSNE2AeqZuxUnFg/CjY2dklMGVIlzs1dZW5+LMok I62EaenCABAWeMvvhiubohjWn2ahCh84lsOAgP9BzzSCzR2p1gpU2jNunN3iYXa+/jBH gwMtpfyUihjj8MmNX7/8nflkGMJPsZY+BrgJaRSqI7gb5r6x+ZsNjqvOwr3J2PYnrUun 0tSQ== X-Gm-Message-State: APjAAAVIDQVknfD1c1/0FADeQMdAzuKdtQZQAmWZE+aiWVedHbGlnRDG +5M65ZxJJXS6+iMcgRxMk4N/wCsfEwVG8RWGqdQYcQ== X-Received: by 2002:a2e:63da:: with SMTP id s87mr5494745lje.79.1570097994932; Thu, 03 Oct 2019 03:19:54 -0700 (PDT) MIME-Version: 1.0 References: <20190927031551.20074-1-hui.song_1@nxp.com> In-Reply-To: <20190927031551.20074-1-hui.song_1@nxp.com> From: Linus Walleij Date: Thu, 3 Oct 2019 12:19:42 +0200 Message-ID: Subject: Re: [PATCH v6] gpio/mpc8xxx: change irq handler from chained to normal To: Hui Song Cc: Shawn Guo , Li Yang , Rob Herring , Mark Rutland , Bartosz Golaszewski , Linux ARM , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "linux-kernel@vger.kernel.org" , "open list:GPIO SUBSYSTEM" 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, Sep 27, 2019 at 5:26 AM Hui Song wrote: > From: Song Hui > > More than one gpio controllers can share one interrupt, change the > driver to request shared irq. > > While this will work, it will mess up userspace accounting of the number > of interrupts per second in tools such as vmstat. The reason is that > for every GPIO interrupt, /proc/interrupts records the count against GIC > interrupt 68 or 69, as well as the GPIO itself. So, for every GPIO > interrupt, the total number of interrupts that the system has seen > increments by two > > Signed-off-by: Laurentiu Tudor > Signed-off-by: Alex Marginean > Signed-off-by: Song Hui > --- > Changes in v6: > - change request_irq to devm_request_irq and add commit message There is some build error on the patch, can you look into it? Yours, Linus Walleij