Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4499499pxb; Sun, 14 Feb 2021 12:44:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/e7XWczCG94tA2pQt9Fi3+RzcwaJmpstEy2chhZISOBeL7OSs5SyfsnfDKE3F67mf/e1S X-Received: by 2002:a50:9ecf:: with SMTP id a73mr12496467edf.181.1613335489543; Sun, 14 Feb 2021 12:44:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613335489; cv=none; d=google.com; s=arc-20160816; b=oDFy3ZZ2Uyd6bww/zHKE+nT7sNTDVVP/HeWggOm18oucVsOM2p9+VJuwjN060tCkTM m4C8nrgAbYjzWFZxCRLto/h+kq2WHRe+QKc+f3kjz83X9To3Q9Bse+zzWTEyuAOIFRTF gVRCx6RGSzNGPi3/jC4gkxgFlpDmBrqvlLysIVAZNosufojD8tsvTYCQiXSz7syQXjKG Tbusl4U+jCyaBkUJlK5EUcpdaNKTGbdOUFdWyG8IZX4a3Qdo+bZPRqxtLHscwDj7kgH9 iVjaIFQKSTeesgBwvzB1G6c4KU7v6YH46Yi55IfbUYWq6NcSyUoM3tg72x3rpYt7fygE 5CqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:message-id:date:to:cc:from:subject :references:in-reply-to:content-transfer-encoding:mime-version :dkim-signature; bh=NDIl2OndUREy22Wbgiw8a/mTsfQYG+EKytPcmVJqjjc=; b=oUxlhna53yTzGx0u2jTOpLDHnXHncoLAGQSEGnplIGVD7Zhd/GMbcWHuEwTQzmA+Rn ei+UPax6d/TVilYQMDRAsuTSjo/46n5sLmfJmSDIkFKq5yKgoEMxPK/IE8qG2RfeRNiC PU2tRY6U1zHayl4dwsQYIgGOhbJlsP8eUO7kVHqOHC08n9bT0g+hmNxW1dX9TyYM94OE ATUBuHkJqrNUeRwwU5VPq9pDw5BOVvBCDZkmMGVuuVeCPf8fkWQC2McqGDjUyBmkhYIe fCeh0wUvBk6vYllhqAaa2MX6UGUMCm4bylWdIJVaeLPT0rDkTgnN34czlwuxwBSqdUuG XCdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JZSGopE2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a25si11284551edv.435.2021.02.14.12.44.26; Sun, 14 Feb 2021 12:44:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=JZSGopE2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229934AbhBNUly (ORCPT + 99 others); Sun, 14 Feb 2021 15:41:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229881AbhBNUlF (ORCPT ); Sun, 14 Feb 2021 15:41:05 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93B41C061756 for ; Sun, 14 Feb 2021 12:40:00 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id d2so2673320pjs.4 for ; Sun, 14 Feb 2021 12:40:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=NDIl2OndUREy22Wbgiw8a/mTsfQYG+EKytPcmVJqjjc=; b=JZSGopE2UJ1LFRWuaC4z1UCCWBwv8c2w33WbQxz7Ttsr4g5EPDnc68fRkZZuILyJHU Ic5oGgv804zPt/yd1HalaY0mxztc0mEpcmMiASK8xpI004K0mZlkfhQBWiLZzMVN+yiN sjNTTA7S8UNeXMHJHYDVxIO8hkh7mMO5fbFhs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=NDIl2OndUREy22Wbgiw8a/mTsfQYG+EKytPcmVJqjjc=; b=YoexcWDbKMY0pASUvUXxEsYKjpc5YONXk5EYa4RTBLqTPMnuE9XM5tk4wdOl1Z2JsR u4ZXJ6T/WIM6CuXXLelbCXf+VlM8HD/VGzL7Adu0mDpeq1KftAuHUwHO54Y9EWTwfPLJ To1NciIfUMGhFbxmtfwkgfpF9CvMRdRPun8RcmaFSt4AuoJWjIqBa1veOAOXj304Fob3 RGhpgsufhwMl9tKS+fBtEeKJ52S5lsIxCx/UBWh+JIDdrb9XxKdTpbqoURGRkoQTdIZu odWG0T3y4rbD0dv7R6TBLTBV0PSTWv5+4Xg1s3lbdT9mnRAOYoPQ5I0SIG/YB1VMn2Cd CmPQ== X-Gm-Message-State: AOAM5333sDXgcfDpbfXlfD6+pwdupaynH4cDr0LOq6tHyow0BgDPhWeJ ktdWoeF/5+tT+KfxAZQmfcqZFL3x+kAh/w== X-Received: by 2002:a17:90a:bc98:: with SMTP id x24mr4379433pjr.5.1613335200004; Sun, 14 Feb 2021 12:40:00 -0800 (PST) Received: from chromium.org ([2620:15c:202:201:5849:e2a:a78c:51ce]) by smtp.gmail.com with ESMTPSA id z15sm15297704pjz.41.2021.02.14.12.39.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Feb 2021 12:39:59 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20210214124809.4abfa363@archlinux> References: <20210211024601.1963379-1-swboyd@chromium.org> <20210211024601.1963379-4-swboyd@chromium.org> <20210214124809.4abfa363@archlinux> Subject: Re: [PATCH v6 3/3] iio: proximity: Add a ChromeOS EC MKBP proximity driver From: Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, Dmitry Torokhov , Benson Leung , Guenter Roeck , Douglas Anderson , Gwendal Grignou , Enric Balletbo i Serra To: Jonathan Cameron Date: Sun, 14 Feb 2021 12:39:58 -0800 Message-ID: <161333519805.1254594.18000613822693540497@swboyd.mtv.corp.google.com> User-Agent: alot/0.9.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Jonathan Cameron (2021-02-14 04:48:09) > On Wed, 10 Feb 2021 18:46:01 -0800 > Stephen Boyd wrote: >=20 > > Add support for a ChromeOS EC proximity driver that exposes a "front" > > proximity sensor via the IIO subsystem. The EC decides when front > > proximity is near and sets an MKBP switch 'EC_MKBP_FRONT_PROXIMITY' to > > notify the kernel of proximity. Similarly, when proximity detects > > something far away it sets the switch bit to 0. For now this driver > > exposes a single sensor, but it could be expanded in the future via more > > MKBP bits if desired. > >=20 > > Cc: Dmitry Torokhov > > Cc: Benson Leung > > Cc: Guenter Roeck > > Cc: Douglas Anderson > > Cc: Gwendal Grignou > > Reviewed-by: Enric Balletbo i Serra > > Signed-off-by: Stephen Boyd >=20 > I'm fine with this, but want to leave a little time for others to take > one last look. We've missed the coming merge window now anyway. >=20 > If I seem to have forgotten this in a couple of weeks, feel free to > give me a bump. >=20 Ok no problem. Gwendal had some comments on v5 that may be applicable here too but I think they mostly mean that the resume handler may not be needed if cros ec is fixed. Having the resume handler shouldn't hurt though unless I missed something. Gwendal?