Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp939839ybh; Wed, 22 Jul 2020 17:57:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxv3iPUceruB39B7xmvjoppxNBjf+StLg44l4fhlyr5O3UrFSfM+UKjwZboCeFilTnJmUIe X-Received: by 2002:a50:fd07:: with SMTP id i7mr1911823eds.221.1595465849265; Wed, 22 Jul 2020 17:57:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595465849; cv=none; d=google.com; s=arc-20160816; b=mKEBUICGsLUJDMzovEID3putIIbPK8petIPtfa2JiBV2Wa6KA9wr7wofpGd0GDuYxi KgoNv/GaZS5eoUmzsF6ikd8HuArRndJ96WDBmtS2pVanIgj1HrRCcuSdg2bxwLschXeL LfKDkvknrwNyIPurO9P9T8jHf68QRaGN0WOwRzRC7gLVftmgq4SBLozBG16NYpG+CE2c qM3x5HQDTWI9f6KUbRtRIBgG+RBbLNzz65jcZ3AMS6r6r9R+hqbqULA+yaZu+PxHRIQ9 m3numtRRjage46rK3OGsms+3BpLWvxkyos3vW184DzKwt+vSiYA5VSY/1wc+ukMvGy9O ZbVw== 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=DexRFTZ526JKTDwRw2yRBmbNYYN7yzEGOYTfHkLd9mM=; b=PwGwGylf87qRkOKHl05brp6LEOSbqEzMsavUbpkbXwGlrc1pZsb7/hXs22gr9Y8GBG NyVrC8gNkxTul9Sm84UlxM/4tEEaIVpmBnhJWlLzf+F5+ufzo7H0aAZxUpfE1R2o6xDY yQOr0xN7q3DFLS6XtczmowN9fG9GsCWA3wnRLEtD4xDYlb8ipTUTFnq+XqT9eldGK8gc PNpiYMvbBLv796dZbSEGgC1J8uLJeau20wC3lVa0TmBZ4WxxUhOzklkG4QUIn11jrEAv v/L/WeB03hZ88UBshlVhf7W6PwhmlI/JBSDTreZdxCwNK230GGH/+AVPqatARimkjkrB 39RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=o77WcHHS; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s5si1012419ejx.28.2020.07.22.17.57.06; Wed, 22 Jul 2020 17:57:29 -0700 (PDT) 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=@google.com header.s=20161025 header.b=o77WcHHS; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733114AbgGWAyn (ORCPT + 99 others); Wed, 22 Jul 2020 20:54:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728607AbgGWAyn (ORCPT ); Wed, 22 Jul 2020 20:54:43 -0400 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDF05C0619DC for ; Wed, 22 Jul 2020 17:54:42 -0700 (PDT) Received: by mail-ej1-x644.google.com with SMTP id n26so4569533ejx.0 for ; Wed, 22 Jul 2020 17:54:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DexRFTZ526JKTDwRw2yRBmbNYYN7yzEGOYTfHkLd9mM=; b=o77WcHHSKrzKQBHGh+QWIWGjXb4OA+VaRiufZssaph4gUM8wrtjDbQQ6d40irNeiHP wK9ofKe+W3a0+IrloajIbysWJOvuzVFurAhIT+5lIOn+Hf9ALNywaZk8nGKzFrfe+xaw kqKy6MOmZnEn/oMzQKGQciz5lI5YLnKCqmRPzOOp2GeVqdSHwxnB5BPvR8+g9xkG/hjY p9nEh2g4mHAzssYHqVGBrmrfwaH2GVTeySQGmLJdViDOqbkkciRzxI70jJ0He8+Y+xHY uqGlX9dQoEDaUnzK7aUaPOE1hPagwItsmdaD4/mxNTkg/C5CYueAx5n5DEe/Jj/tIx9f 2xXw== 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=DexRFTZ526JKTDwRw2yRBmbNYYN7yzEGOYTfHkLd9mM=; b=QSMIHOGxiIPw8noGu7J8Bs7+oIBbxi8RNdFa9ODU+BIsJqLg3ll9Bvr1QYCkpCTF9U qfddkDEnuJaL9TjHOXbFd73VCrF1b+sOiXLjzvnArTR7j+x8Scm4XWrTE0xEe1wsuBGD bcAfHEnEK9Tk1kt1rY2M2dxFzSMHbek5JWjb899WdNVJ0CxBk11sIxACjmkIi+xWVjd0 6bhheax4dRldIYJpHa1x/h+SNAqH6DBndksLrRTmNJ5B2zIJyv53KnSvdjkW49ilX+k3 JuId1bMXyAEODgNntscon0jdVBl2pUyHCIGunPjPfCxrBG9JdEFChx/Bj1s844kmgrA/ W5bQ== X-Gm-Message-State: AOAM5331stWkjcOSX2/pB/MnvsCO48owYxvjKQjSX+kikO4qf4NDEjER 5RRufQrMCR67tvF7VwhnaPXJiRBBAJgRSvN33u4jPw== X-Received: by 2002:a17:906:3889:: with SMTP id q9mr2217431ejd.318.1595465681118; Wed, 22 Jul 2020 17:54:41 -0700 (PDT) MIME-Version: 1.0 References: <20200722015732.1720840-1-briannorris@chromium.org> <20200722015732.1720840-2-briannorris@chromium.org> <5ebf1534-8045-9894-9c1c-b92b9c6d8479@collabora.com> In-Reply-To: From: Guenter Roeck Date: Wed, 22 Jul 2020 17:54:30 -0700 Message-ID: Subject: Re: [PATCH 2/2] platform/chrome: cros_ec_proto: check for missing EC_CMD_HOST_EVENT_GET_WAKE_MASK To: Brian Norris Cc: Enric Balletbo i Serra , Benson Leung , Guenter Roeck , Linux Kernel 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 Wed, Jul 22, 2020 at 5:50 PM Brian Norris wrote: > > On Wed, Jul 22, 2020 at 5:43 PM Brian Norris wrote: > > unless I got > > refactor cros_ec_get_host_event_wake_mask() to use > > cros_ec_cmd_xfer_status() instead of send_command(). I'm actually not > > sure why we don't do that, now that I think about it... > > Ah, that would appear to be recursion (cros_ec_query_all() -> > cros_ec_get_host_event_wake_mask() -> cros_ec_cmd_xfer_status() -> ... > cros_ec_query_all()), although that could only happen if the first > cros_ec_query_all() doesn't initialize 'proto_version' to something > besides EC_PROTO_VERSION_UNKNOWN. That is only possible if the EC > reports '0' back to us. > > I might skip out on that particular refactor for the moment. > Agreed, better not touch that. As for the order of changes, I agree that they are independent. Best approach might be to submit yours, and then we can clean up things a bit more later after my series is in the tree. Thanks, Guenter > Brian