Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4663520yba; Wed, 8 May 2019 00:11:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqymcBR6d1hr6RIJ9uQvaAilYm0W7CPGlSgabF/H0pOmQRvJeK4aeDVsU7jYFIqt+vjVz6J7 X-Received: by 2002:a17:902:aa85:: with SMTP id d5mr1725481plr.245.1557299486685; Wed, 08 May 2019 00:11:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557299486; cv=none; d=google.com; s=arc-20160816; b=ifnVFT+z5+pH8tElRcE2IoLfW2IIgkADZmyXKvi7YSw2WBzg490ZetrTvkOEP3Kmy5 baVONlDIQMVWWZFBj1wzmzyTRK+p/VvuzKCZO8d/iqLx2d5CBJ3MmLt3FSpfZXVrpKqX CNULTmEb1PAfjLVOTBOfGrlUyK+9dqilth+vCijrt9WeDj6CsvhFHSqyhE0JCqXpvsGS hqwjPVbIigFAlXUvmbrSL4+jOqnS9AM2dAVYvlR23wvvhUcSqA+oSu/FucmBXS5yingJ t1NuYYorKO0YKULNtoYDtVn9YBBd/tJ90xejM6UETugn87pMzqF3fBWDOvlD7RpPiehU s7gA== 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=b7lc8MdkCqyR2PsiTxcZvlpTg1WA4A/43JRqN8UJdR8=; b=kokvBGBrLY0/ZdkGr4ALS6pMLaeqPdQuLVqKYF+qi1XbnpQAZISL7/JIqUX+9jrvDy fde4rQI1NuD8SRYhaM7woh5NmnsleUPGZ1Duu1bqRHZ8NByBD42PN62NIWvgbOsXzitJ mJ1qPfIR6GL0p8/bHAwQ4aidmYItQ5w57YHmErv7WSasltsGAEsNdW4pgi+UxTZtKocD 0UOl1IsOurQjcjpbfOCU0AG1VH3l2E6xHlp4PRMCAjwDrH+e3tF3JcMbKEcYiK90Hmke i76/7hKHcZkqAGqE7yTTBQJELzSpYQlIX432LUFaMjaLKKIxsFZku3A8RR6JYyYN44j3 JWeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZWvJMfVQ; 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 a1si23342329pln.75.2019.05.08.00.11.10; Wed, 08 May 2019 00:11:26 -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=ZWvJMfVQ; 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 S1726821AbfEHHKP (ORCPT + 99 others); Wed, 8 May 2019 03:10:15 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:50839 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725884AbfEHHKP (ORCPT ); Wed, 8 May 2019 03:10:15 -0400 Received: by mail-wm1-f66.google.com with SMTP id p21so1802297wmc.0 for ; Wed, 08 May 2019 00:10:14 -0700 (PDT) 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=b7lc8MdkCqyR2PsiTxcZvlpTg1WA4A/43JRqN8UJdR8=; b=ZWvJMfVQgx0dnDMtn7xAHVlSAYjSe+t9RBXxC+OECxkFhg2aiQ0ZtQcT3xyNrOw142 btC4TPoMtNFVyeoPwvOrla2kHmSVHzXSV7e3C0+0ExNTwjsa+qHSKxe2ZT3aZIGkB/ev 6Dte5xpI+cJnxXajqlXrwfCJpCsk07nHGC1HzR7easCoKgHFBe65gBo0p+rD27Bzl1R+ NWSh0zyTFF358mbyyKmSogIu1uO82kbKkI1/NUmQNlH3ZqWQ3NOe1tLWgzWHpS5h29Wc KNTfBVoCxZfhEKiIIU7IwZcgGdXgYx7z9q/b/T3D7ES9Lh+H1IT871agPnxNaNSshh7f XFxg== 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=b7lc8MdkCqyR2PsiTxcZvlpTg1WA4A/43JRqN8UJdR8=; b=KPEN+/YVVhTTPJI8N80Mv2TaKH6hkFvf4QSsaYicOnGoBezz3mT7kprvLL0eVSxauU dWLTKq4iKQm0AubZEIohdKiJHK5K0rzHYc8AB8n8RLkjaLePegV4R/kgb6D8UWgkspKM 2ih6ZqTIYAoKJBUC2OEkclplXwrhzQX/jqitxTgewwyk5h/sYESVUNxRIXySu3F/TP/w CPk3Oog8QsbzuZt77P7BAWokVZzuFQLnn0pFEXh1Sv5VPUUOVpS5PpSM478lljY546ZO W2SL9ZblLYSmB7areP3k1nBtr7BppEnamZGecua0aesjNNsQQfwx6WZgkXuMwpaBw4zX AcFA== X-Gm-Message-State: APjAAAUO0CBmxjhOCGlANO2xZTASYUlDd++SsBQlcRDWb3FV3VRVt1a6 61GRaezj046OF/E2AcNttbQ/UQ== X-Received: by 2002:a1c:2104:: with SMTP id h4mr1725641wmh.146.1557299413205; Wed, 08 May 2019 00:10:13 -0700 (PDT) Received: from dell ([2.27.167.43]) by smtp.gmail.com with ESMTPSA id o4sm1330264wmo.20.2019.05.08.00.10.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 00:10:12 -0700 (PDT) Date: Wed, 8 May 2019 08:10:10 +0100 From: Lee Jones To: Evan Green Cc: Benson Leung , Enric Balletbo i Serra , Furquan Shaikh , Rajat Jain , linux-kernel@vger.kernel.org, Guenter Roeck Subject: Re: [PATCH v3 2/2] platform/chrome: Add support for v1 of host sleep event Message-ID: <20190508071010.GH7627@dell> References: <20190403213428.89920-1-evgreen@chromium.org> <20190403213428.89920-3-evgreen@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190403213428.89920-3-evgreen@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 Wed, 03 Apr 2019, Evan Green wrote: > Add support in code for the new forms of the host sleep event. > Detects the presence of this version of the command at runtime, > and use whichever form the EC supports. At this time, always > request the default timeout, and only report the failing response > via a WARN_ONCE(). Future versions could accept the sleep parameter > from outside the driver, and return the response information to > usermode or elsewhere. > > Signed-off-by: Evan Green > > --- > > Changes in v3: > - Consolidated boolean logic for host_sleep_v1 (Guenter) > > Changes in v2: > - Removed unnecessary version assignment (Guenter) > - Changed WARN to WARN_ONCE (Guenter) > - Fixed C code to use anonymous unions > - insize is only bigger for resume events. > > drivers/mfd/cros_ec.c | 39 +++++++++++++++++++++---- > drivers/platform/chrome/cros_ec_proto.c | 6 ++++ > include/linux/mfd/cros_ec.h | 2 ++ > 3 files changed, 42 insertions(+), 5 deletions(-) Applied, thanks. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog