Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp792885img; Fri, 22 Mar 2019 08:39:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtp/PL2Ji3p5/rIVZUo1gIy+0JU66734Vp/n+YRGJXKeJQayv5ll9GqGbcQ94Dqyg27HUB X-Received: by 2002:a63:490f:: with SMTP id w15mr8490414pga.247.1553269187732; Fri, 22 Mar 2019 08:39:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553269187; cv=none; d=google.com; s=arc-20160816; b=DCTCLk4su3qlBed7ld+cTFOahumhbtba7QQhfFsw6F2hTT+czsFgO+iOkilTubcYqX Za1qHz94cWBNmUne1F/j68tmRmSuPdA5RiKmvQd6s8TTsykrxluW6+/9Gge7pvu3xH0q czmzHvwBnLUmgQhqNq8kArif+F6nuSp2i1r8yUiHK9CNj/nTaWESuX1vaP5Yu72uqgPd DmKlSirDbfg2SIc1U+dJTKg3myAVVFe/5mevz3BMqSsVNmOh7DUfEmN/uw94b1apEoWy aXCXLCdp2ZfRlul0M7Bu4d6sdkk4TCp7XO02uk7EtGjVXS7/24WWljZaGq0tzhwATGTF Jkhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ldDWOmAj8jwPVsBwSQANvWclxD57ppweNrb50y+NB+8=; b=u0NyqKjKysqIQHArtdSVGimJUOOIOx2NDiFhihho7Rw4OaPkGQxEVNLBy1w44GhlD4 ur5Gx4jcwTBmMhO4YuGzY3fbb4s8KpYyq0eSG6k+VymlUPqzGFdpzoy7WHQ9PkpXgsMG 9ZQ1JjvrJB5tYtfWOldyZG60U/K3Dz4HDbJ/ry5+D/ZYnYaL+0COMNUDjsAh77ugFiZf 0cWvu5qmTsjBa3pPtekujD+x/NsNamA5N8h5fTLu0Pw6QX8A4kNDpVJneScqpE5hC9JW 7hxO49oin/sqMPRgyAAiAY4Q040oq/eMcUEvtIUi4x2jHLqo+qaiPjZsZxhQ7ymWGtw7 4XGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QScICi4c; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k71si4270569pgd.583.2019.03.22.08.39.30; Fri, 22 Mar 2019 08:39:47 -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=@chromium.org header.s=google header.b=QScICi4c; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727877AbfCVPiM (ORCPT + 99 others); Fri, 22 Mar 2019 11:38:12 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:46473 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727689AbfCVPiJ (ORCPT ); Fri, 22 Mar 2019 11:38:09 -0400 Received: by mail-lf1-f65.google.com with SMTP id r25so1674322lfn.13 for ; Fri, 22 Mar 2019 08:38:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ldDWOmAj8jwPVsBwSQANvWclxD57ppweNrb50y+NB+8=; b=QScICi4c4upBcagk1NBgGvf6uq3UGZeaKnIcn1rHH4yhT1EAMwtdU2uZuffRHUkQbX 5WBkXYBwAblCzKAGBVsAlAgsj/OmUJbmN6H2CNxMmAWLytcBMC4sKU6BqJPBxHAfuGAr 8SjTwagf3d2r/o+SUQ86t1H7mjJ9md4AjOXV4= 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:content-transfer-encoding; bh=ldDWOmAj8jwPVsBwSQANvWclxD57ppweNrb50y+NB+8=; b=Nz8ehcoHjRtmqScyf7zrdUJkIuOuKETahJTchrbmpb7MFJ1NRQHM1iOdNo9hf40RPb qsOUlveXhDbbwWKiQFSfYJ3WW3ZxJxspnjVKKV92HwN6h3XbQsjfX1jeA2BdoN851MQW mgeiRwfZachzOiCojtUIOnJYmrmDvsPWvuFVwsPCcbs3Lc1CCsmHbUfZucY+5q15hcUS B7EVq69Ff8b1o3fybyJgBk6vTZ2ltsBW4FbAy+rc0Qiz6+P8YMHuHLrMNboUwkJ61pI2 X9i8bS3FESlvlVfqtTelDgyYxJ55cfkuz/WXcULshyEuJL/rFefZsToSVrsrN1qLBYvP Wj3g== X-Gm-Message-State: APjAAAVuvfmrjlEb4laTjquAIpGzYojtHb1lH+jNxiXAqTh1ITXlgN5Y RTDoDQOk+m4KyOaf+k5PNXjUl1NUzhU= X-Received: by 2002:ac2:515b:: with SMTP id q27mr5518879lfd.110.1553269085541; Fri, 22 Mar 2019 08:38:05 -0700 (PDT) Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com. [209.85.208.182]) by smtp.gmail.com with ESMTPSA id i190sm1750260lfi.43.2019.03.22.08.38.04 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Mar 2019 08:38:04 -0700 (PDT) Received: by mail-lj1-f182.google.com with SMTP id f18so2410840lja.10 for ; Fri, 22 Mar 2019 08:38:04 -0700 (PDT) X-Received: by 2002:a2e:2ce:: with SMTP id y75mr5591640lje.126.1553269084543; Fri, 22 Mar 2019 08:38:04 -0700 (PDT) MIME-Version: 1.0 References: <20190320212030.43682-1-evgreen@chromium.org> <20190320212030.43682-2-evgreen@chromium.org> In-Reply-To: From: Evan Green Date: Fri, 22 Mar 2019 08:37:27 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] mfd: cros_ec: Add host_sleep_event_v1 command To: Enric Balletbo Serra Cc: Benson Leung , Enric Balletbo i Serra , Furquan Shaikh , Rajat Jain , linux-kernel , Guenter Roeck , Lee Jones , Gwendal Grignou Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 21, 2019 at 2:31 PM Enric Balletbo Serra wrote: > > Hi Evan,Thanks for sending this upstream, one comment below. > Missatge de Evan Green del dia dc., 20 de mar=C3= =A7 > 2019 a les 22:24: > > > > Introduce the command and response structures for the second revision > > of the host sleep event. These structures are part of a new EC change > > that enables detection of failure to enter S0ix. The EC waits a > > kernel-specified timeout (or a default amount of time) for the S0_SLP > > pin to change, and wakes the system if that change does not occur in > > time. > > > > Signed-off-by: Evan Green > > > > --- > > > > include/linux/mfd/cros_ec_commands.h | 59 ++++++++++++++++++++++++++++ > > We're trying to sync kernel cros_ec_commands.h with the EC protocol at > https://chromium.googlesource.com/chromiumos/platform/ec/+/master/include= /ec_commands.h > > Gwendal send a first patch [1] and a second version will be sent soon. > I don't see these definitions in the mentioned patch neither the > master ec_commands.h from the EC firmware repository. Is this a > feature that didn't land in the EC firmware yet? > > [1] https://lkml.org/lkml/2019/2/27/723 > > Thanks, > Enric Hi Enric, That's correct, this feature is hot off the presses. It's being reviewed here, I expect it to land soon: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1501512 It seems like it would be easier if I based this series on top of Gwendal's. I'll plan to do that for the next spin unless I hear otherwise. -Evan -Evan