Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1682041imj; Fri, 8 Feb 2019 05:43:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IYrUoQLU/WYybZetqRLizuy0Qq5wyVRCr9PO6rbYJ+eAlbBAmmvBZcdHfiN/dRLSoB2sNnn X-Received: by 2002:a17:902:20c8:: with SMTP id v8mr23024253plg.319.1549633429948; Fri, 08 Feb 2019 05:43:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549633429; cv=none; d=google.com; s=arc-20160816; b=cLHcrWF2+QCEYR0NniTmDxF9/RcTp0wOjXRq/7h7vTy9vlzFup/GbvERVp7dxVDsoW uPKKoNA7Kpr9MdUdExipM9V86ud8T63aDhRLQAsGhyeLRzmIpne/yc1om35T51scAEGG D4Vf9iZQQPbYE2fMwPsI6PcH7dJYF3rGyJKEoMyeIsHgONb0eJDPnoo/s+YCOD3hj6ub ihD35WF6OErnKzUvFOuTNgKSqpJiygPwtsNKr0PAZm2a9rLRokd6ZNNs0prtzcxgXA2Y LPF0BumIL34GcPaaorpwN7DTD+ls6ITKNeHQknnk7NDf81wNwMU4x5pAZfhKHKy4VNSt 44jg== 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=Ak8sWzffUyrcQCU1W3k6TUN+Fn5XFQtEQCgmteCDOUs=; b=RIeTJ82jQE5WRIcDM5M/vQWq8Orss9B/dJlKYtdr18To7g9AIh9Bf+JrBLCNNW3yJ/ U4ugXw0gF7trHOKHf3U2TyH4p1fkaBBPcCdeAHCLvsHVrnxasZ2Vs9Zg8dp6wrnBbZe1 2HkIgip9zuo9DFEem/YUCkrFWU3M2vZM/p6SlHihahBkGhbJiKQHUvDmNG8Qk3RS+3dj 1RQYxiShvUhUJbK+d0SxAd17hpo5LqSyRftMIuZUdUJW8hyWuzXFEvtfqNs+Z83I9A2m cyEsQDNwgEIpiUgH3nGNyM267NxrYSPJjoMfXuHMh0kKo9M17vc2zlorLuKIJnG+n4C5 nDGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o8W97xke; 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 w23si2300439plq.198.2019.02.08.05.43.34; Fri, 08 Feb 2019 05:43:49 -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=o8W97xke; 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 S1727411AbfBHNnO (ORCPT + 99 others); Fri, 8 Feb 2019 08:43:14 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:36949 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726887AbfBHNnO (ORCPT ); Fri, 8 Feb 2019 08:43:14 -0500 Received: by mail-lf1-f68.google.com with SMTP id n23so2574283lfl.4 for ; Fri, 08 Feb 2019 05:43:13 -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=Ak8sWzffUyrcQCU1W3k6TUN+Fn5XFQtEQCgmteCDOUs=; b=o8W97xkeVhsgVy42lx21GmTl7v9inxQMSoYAS7QX9dQclJc5UtHs5FWZzEq7x3SD6f qFY4SVC6Be/EN6T/w4MSbkcpV2flHbuDvXWh0Vjw+qgro4MJnAYYEMri3ytoYp9enCAI Y/1Qlxca7PCW/o1+Uoh1pgAFjnyeN3YlUDkJ8LClEPJ/1CQEsJKYur5CySaQEZx29rHV Cw6gWgL/4il3SxDhCzai9WrPFX8cjLR79G9RYLd75xzmJprpdauD7lIrc/m+TeOW+ABt Z9E50785As1wnff6FR7+wAgTpUfEBrbV3aAfZqVYsG2uZwMxu8uOd/Pk9nTzTgEo1IGq 3s3A== 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=Ak8sWzffUyrcQCU1W3k6TUN+Fn5XFQtEQCgmteCDOUs=; b=NBMjis9LQeV8UBaQz/P0QmEeY9jZJWcGbqc5V0on8Y4EItN7TgmX8JMD4GoPMcx1DI hge38XgqCxVe5Ofgj4J+va7DZ7GG3huvaec3a661QjML9LAji35tl5IdnoCjADlPloqN v3Vd4Em+UfVo/3/B9RpnBiMmvP91tyC1MtzYJt3ZKXWyggA7rJBP+NqKZ680CyKfl3uv SEkp8KiBs9E7UUXHfFv8VsWUIT+a62u39FFnxFITt+ovMaYx42+XhN73o2OCj9ntsDfV 0oc0eIC9vYB6bLFsRvnT+LRhMp0e6meNfc4xExbpInRKja308sjBEh2vKMWJQyRus8yu wpkg== X-Gm-Message-State: AHQUAuavlWy/T1NecSD+FilLBngniBwuCpmvRbbJuCrOHgqYEmA8UGSv xtSGXvGvXH94Vodmz6t8NKqv/yRj0tsONP2YvYOwjYRa X-Received: by 2002:ac2:4343:: with SMTP id o3mr12350627lfl.129.1549633392190; Fri, 08 Feb 2019 05:43:12 -0800 (PST) MIME-Version: 1.0 References: <3230ace6f820fccadb51097ae9ba9f5ee247d79b.1549379326.git.nikolaus.voss@loewensteinmedical.de> In-Reply-To: <3230ace6f820fccadb51097ae9ba9f5ee247d79b.1549379326.git.nikolaus.voss@loewensteinmedical.de> From: Linus Walleij Date: Fri, 8 Feb 2019 14:43:00 +0100 Message-ID: Subject: Re: [PATCH 2/2] drivers/gpio/gpio-adp5588.c: switch to events system To: Nikolaus Voss Cc: Michael Hennerich , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , Nikolaus Voss 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 Tue, Feb 5, 2019 at 4:17 PM Nikolaus Voss wrote: > Interupts were generated using GPIN interrupts of > ADP5588. These interrupts have two important limitations: > 1. Interrupts can only be generated for either rising or > falling edges but not both. > 2. Interrupts are reasserted as long as the interrupt condition > persists (i.e. high or low level on that GPIN). This generates > lots of interrupts unless the event is very short. > > To overcome this, ADP5588 provides an event system which queues > up to 10 events in a buffer. GPIN events are queued whenever the > GPIN is asserted or deasserted. This makes it possible to support > generating GPIN interrupts for both edges and to generate only one > interrupt per state change. > Thus it is possible to chain the gpio-keys driver for some GPIOs. > > Signed-off-by: Nikolaus Voss Patch applied with Michael's ACK. Yours, Linus Walleij