Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6805005imu; Mon, 3 Dec 2018 03:10:18 -0800 (PST) X-Google-Smtp-Source: AFSGD/W7caeZtT3kW6kNn9RKQvTTdNi6UnDP5g0q9tZXYn9vlWEZ3VwoLNjq4FBZVH/hwz1ZAS/H X-Received: by 2002:a17:902:4a0c:: with SMTP id w12mr15583322pld.8.1543835418487; Mon, 03 Dec 2018 03:10:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543835418; cv=none; d=google.com; s=arc-20160816; b=YtUwImguYfXmBcgJ/zfH5b7Wxq6hpp/Hra11MBjM3xSKFp9PdYGPY0cbXoVHZuxoZD nGSX1CDnxgCXLrRLPMUesIQl0TX88i2yZRPjx4dipZvnMDw69pVRbCB7f0CK3mqf83MD zkFw9oxZIfW1ZVO5keZRgldFNyJQsowdec8djD9SATAXajoSS9ADpP93nwGyTEHbghc7 TCvi1vavfl1/zCgONFhUNe8CpMEOw5Mrvz7zlFp97MJ5t/AnG2qRvzDXOpPKadZneo12 y4hIGKXAz3x5sx4ylsFhA9tBl/I4tKbeYpduQBsgWh+BW+GTOjCPHYGH/b79d38AdA6K 1Gyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KMZBDmMTrpSwjZTAF35NCj3pLd4zaPc19uNelerRsnw=; b=Rjum0gszMzQlUUgUmbGnpn/PXZqduFbR0bMZuXI4K3nrH4NgLNM3ZQCuVbcYa/eIgF GXaLh91Y5DTZUcn5snp/1pPAIYmrc/61w2FsyXlYFRiEu3AF3SJqGrDg0yuN/EMRKxfO tGp1TokobJBLvAPzwvLqMHFAZPGjBbPKtNdt9lv7XYxgZpu+TS9q2D0WN7RekYoPy/d2 1lG4kDTcETBIRXc7Nkx/Z344pQ1+T9DIRORq/H+L71M1wlufPkgAFVXW/l1BfjNp8rdT tuQB4LEU7Idb79vwu319NM2QPXeCbbjECciK7JkFQ42JdjQnqezgEtugaIqIKdJl9Ldi zzPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YKDlzuMy; 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 m1-v6si13828443plb.303.2018.12.03.03.10.03; Mon, 03 Dec 2018 03:10:18 -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=YKDlzuMy; 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 S1726332AbeLCLIs (ORCPT + 99 others); Mon, 3 Dec 2018 06:08:48 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43713 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725888AbeLCLIs (ORCPT ); Mon, 3 Dec 2018 06:08:48 -0500 Received: by mail-wr1-f65.google.com with SMTP id r10so11651256wrs.10 for ; Mon, 03 Dec 2018 03:08:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=KMZBDmMTrpSwjZTAF35NCj3pLd4zaPc19uNelerRsnw=; b=YKDlzuMyJDlVtsRRrb0Mmf70iu2RX75GOX/3Bcgk6FGmtSM6JW3oEAl4ycLSKn09ra x3vks01/dtzckaNTs06ch6a5/M9LacKzKt3e7e+MSS9PpR30vXtOU9Wp+1NW0nqIRDiy 07+Cn2Fp3+7s47fpZYYUstKrrRLL2AX/Q0BP8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=KMZBDmMTrpSwjZTAF35NCj3pLd4zaPc19uNelerRsnw=; b=CgQniTBYm/CEJL9bhkps8gkKzcsOUkNpH7279q01KzVwEiD2TE1D5reQEymQIAkqtT 3Y7x7QKCg1me1fisuQe6u4MIYKoT/mJ9jYMGdx2ZoeKhPCT+TOexTaaA35tUjenf7G3Z 5OrHnQVpeBoiRSDVKLLyu8lBr5nxcCNuYbhz8k6Q4y/2+CI39vS7mSTwlESVTrM7rOLG Os1qLA8IZBstvcrRSCyFPWmWib97vOue9Gf8svh/CxsTwOuF0tuSUVXEpPjLycn9GLdA ILeMo2L7ELVhn6r98mkhmBhkNxC3T9ApOyhOjCvBGOh76K3vgZUaRBMGuGlYLVi+dGi3 ZGMg== X-Gm-Message-State: AA+aEWaBRsnjwjuX+66FT9YOPhvc3iSINi7mti8eeXubKKwB9zlyrzca dL4YtZ/adgHKMKUCU6bsRDByow== X-Received: by 2002:adf:f449:: with SMTP id f9mr13998747wrp.40.1543835292510; Mon, 03 Dec 2018 03:08:12 -0800 (PST) Received: from dell ([2.31.167.218]) by smtp.gmail.com with ESMTPSA id l15sm11214066wrw.4.2018.12.03.03.08.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Dec 2018 03:08:11 -0800 (PST) Date: Mon, 3 Dec 2018 11:08:10 +0000 From: Lee Jones To: egranata@google.com Cc: Benson Leung , Olof Johansson , linux-kernel@vger.kernel.org, Gwendal Grignou , Brian Norris , Enrico Granata Subject: Re: [PATCH] mfd: cros_ec: Add support for MKBP more event flags Message-ID: <20181203110810.GI26661@dell> References: <20181129195548.204153-1-egranata@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20181129195548.204153-1-egranata@chromium.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Nov 2018, egranata@google.com wrote: > From: Enrico Granata > > The ChromeOS EC has support for signaling to the host that > a single IRQ can serve multiple MKBP events. > > Doing this serves an optimization purpose, as it minimizes the > number of round-trips into the interrupt handling machinery, and > it proves beneficial to sensor timestamping as it keeps the desired > synchronization of event times between the two processors. > > This patch adds kernel support for this EC feature, allowing the > ec_irq to loop until all events have been served. > > Signed-off-by: Enrico Granata > --- > drivers/mfd/cros_ec.c | 20 +++++++++++++-- Looks fine, in principle: For my own reference: Acked-for-MFD-by: Lee Jones -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog