Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp7412475ybp; Wed, 16 Oct 2019 08:17:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqya11nIyLDRx2urkCeU7mCVqvfxDu1zc7PpnxxgCufUfgcLcNiwuv/8NKS/6iStu3F3BtX0 X-Received: by 2002:a50:ee92:: with SMTP id f18mr40924735edr.56.1571239039175; Wed, 16 Oct 2019 08:17:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571239039; cv=none; d=google.com; s=arc-20160816; b=BhNWJdpxz0isHizx7FluyVs/xkOY7V+5LExX/l+fmYcD1zgWzJx2jegR4R0qFPm48B QaKVZiI0b/YyNEghYxgh7Epngk3TMfkJvoVo/3nsKBQMWEze2qmzUJIx/kdwz0aH4rtv YHrsBQ0pVPdoJFZqLnqF9cxlfZYUoVAWg//s9of2i9qDOPrH0/MWJxRu6s+s8Wwt/DnH 2TCdTNCHkh1Uar5xt5NZ3zDwKa3OcdE/c46RcsjkOgDdMDtfo/rwydagVBaNJtKCw86t elAbRUZvlac9Wq8ezT+cAN8ibk6wLzQEuYOGAeZLW1kI89n68Socjhqz9+8r86OKJM+z z/Pw== 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=zAcMglJ0sMZP7+r5P2KE/QX2T7ue0jf4q4Bd1DSk2+o=; b=IZoaceo/KSBWi2z7wrV2flHgLtjg5JyzkrMPTTHR7rqXzQZlcA9bTaz/A4z65Q/HWT ibJrFySQIVjjwfBoQqpnjE19x6O/NDgl2lwBYCRNyNHZFnYxS8bDboU27TE8aApcGJ2Q cOqqvbf5uV2bMZHr5c9Uo6Lcgj3N9ANxgW60AfOKrFTO+v4GuuuH1ZiRc2GjMM/GABKm nkZi2oIBJ2u6L3XHKFXjvcsqIKSrZsB13sfSdkINmT7LTYZv66qDmnPhdRCCyDqB1LeC VeW6sZbKtvj1uICy5WsQQN50a3h8yLozbEuHp0TMCCd3jB6/kDtGqhXS9OEi0cH/IWHO /pDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kPp2Lbyy; 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 l21si17775759edc.112.2019.10.16.08.16.55; Wed, 16 Oct 2019 08:17:19 -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=kPp2Lbyy; 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 S2392901AbfJPMLG (ORCPT + 99 others); Wed, 16 Oct 2019 08:11:06 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:36225 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392877AbfJPMLG (ORCPT ); Wed, 16 Oct 2019 08:11:06 -0400 Received: by mail-lf1-f68.google.com with SMTP id u16so4691128lfq.3 for ; Wed, 16 Oct 2019 05:11:03 -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=zAcMglJ0sMZP7+r5P2KE/QX2T7ue0jf4q4Bd1DSk2+o=; b=kPp2LbyytXuiszE7XqY4dsXBc5wTYwqSTDkG2glMbJy8Pzs+bcaA9exT6sjDt6XIxI zbDgBJPyZkMVp/13P/6/lt/Am7sHZmwIQXCDGs9gNOmVqkTKc0ASGOUrz1Tkxf1vOdUG 3+hgdaFZVjnoJgKTORduGR9Px142SvukOwkjnhZ4d/pZsRSWfTcFrMzxMkiLgF3hLe3K Csr2B0hlXr5Td3UaKF3awDZKfKY9cC+CvK4bTh/rFyvf7V3iRGlJ4QDYS8RZ6m3014HP um/NzdbRHbtwz3zKwxhUh1JOv7s0RkC9B3V8DxhSywbPSF9Nz4ktSeYRwZ9gBWRlA9fA ee0A== 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=zAcMglJ0sMZP7+r5P2KE/QX2T7ue0jf4q4Bd1DSk2+o=; b=TBt4puxCVNbyiCuD2QJdZbO12C0LGPwy5UbX1VocjXO4vgUC7TL5a8cKsfYj4B1FVA WeditN6TA93HuFfjaLLbUlH9vCVpvydBys4Ot38Ejh4l9+75hCAprdSeo7VceyiHIPv6 SBFpDbzJ4mRCA6ytPosKdS4yWsfcsHrGzZx/mSGq4EUvvPzIn6TmF5Bnd+EQpPvOwrU8 nNh2gMX8qxnfHrx0tz6yKZvkFtmYQZmLUIO7JInHN7h2K5o0cpavuUkdQ0f4YrXMO91t WXo8H8FMCIpPF5ZcEY5Tm01ztsqvpXJlR/mo2Z/IqUcucZmL1OjtQC3nAHnarMJbLiFv LNJw== X-Gm-Message-State: APjAAAUxcUBCLn3+iQFbLtmldHY2vw/nTO/0XKPWDN42XVE5gOvFPNYd Sfb3gldBv4L/TmDw1SC8tUF5okqMt11ahZWujqWUZg== X-Received: by 2002:ac2:43c2:: with SMTP id u2mr2022223lfl.61.1571227863019; Wed, 16 Oct 2019 05:11:03 -0700 (PDT) MIME-Version: 1.0 References: <20191011005643.41007-1-hui.song_1@nxp.com> In-Reply-To: <20191011005643.41007-1-hui.song_1@nxp.com> From: Linus Walleij Date: Wed, 16 Oct 2019 14:10:51 +0200 Message-ID: Subject: Re: [PATCH v8] 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, Oct 11, 2019 at 3:07 AM Hui Song wrote: > 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 v8: > - merge two lines as one line to fit 80 characters. Patch applied. Yours, Linus Walleij