Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp933948ybh; Wed, 22 Jul 2020 17:44:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWIHmItp3y/hEJ2MRPl5cDtm3S1sMQoIr/F2SwQ+nyKDDoAUqQXf/8b7GRw6oHrT4hBRqj X-Received: by 2002:a17:906:19c9:: with SMTP id h9mr1982266ejd.526.1595465075427; Wed, 22 Jul 2020 17:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595465075; cv=none; d=google.com; s=arc-20160816; b=PWrWXqG49bDsGveD8hB8jfEztg1sWj9jryzSiTbh8eS0fKcbahyvBgZMrQBp6iBujJ EUX+9Xt7J8Em+9O0ayE8SN9rkO4yIdvSVHlSL+FukGnHkc3EQjkz83SE5xjlPL+vCtMY qatscHquOSnKt1xFt90CwP6gpufsq5pwoEPSpiJtdFD2udSybcvqS1EGDBTymuFA3X9G PEkcF+6KPStVerCNw5R9JNHLoiDfQSPwtLBc4eKfJ6C3ieWcV3CNKZCL1Hj+hj1jCsyo 9NCY5LcQumPjpLwVG64g90uN2BmHVtLL2vfp/FzQDJrEEqJPGj8iRD926APsQ3RLx8Gv olKg== 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=RjJ2f6Qn24zyVoutya2+PlbgSuUbJceLpmUp9TpO5dk=; b=LmuJcXX1VDHR7maH9PnqPQ74TEoHCiESHUzorPbb/uZtOnssBfVWb6zwdDH6YTayBU aCgULi8bTiXF8DtPRTFni4uCeH+vesXXZzSgliG98gacAvfZ1/WkCIQvimkdXjF+q6K/ d7/YAfKnsreSL4ySd2gj3nVyvah/+RdC2z07A33CvgFB6A6evBkK1xpPP3GcHV1FLMPq llGpRyEVT+mGWCXCLJc6NjNT/5tq4Rhe5DKNU/Hut5vujcuY8yLT1QrlbF7Mxp1+gqlX n024fC5KG8YK01/ozaKpKCcoBua9+ywIY5eb1WWa+F37YErhMeLq+WLsBYhJGGY8RZrq m09w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=R+cxs13m; 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 r23si1013033edy.317.2020.07.22.17.44.11; Wed, 22 Jul 2020 17:44:35 -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=@chromium.org header.s=google header.b=R+cxs13m; 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 S1733075AbgGWAnW (ORCPT + 99 others); Wed, 22 Jul 2020 20:43:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726685AbgGWAnW (ORCPT ); Wed, 22 Jul 2020 20:43:22 -0400 Received: from mail-qv1-xf43.google.com (mail-qv1-xf43.google.com [IPv6:2607:f8b0:4864:20::f43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00FB7C0619DC for ; Wed, 22 Jul 2020 17:43:21 -0700 (PDT) Received: by mail-qv1-xf43.google.com with SMTP id o2so1891399qvk.6 for ; Wed, 22 Jul 2020 17:43:21 -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; bh=RjJ2f6Qn24zyVoutya2+PlbgSuUbJceLpmUp9TpO5dk=; b=R+cxs13maEWIhcBKfoNOhIoFtm5sFSWI1/PSMH0bpzJAhOsSxz/9fIZmlyN/YWaTTi ok/0JxjDa0tpriCFoFXLS5cwKHvHsoGtBvU0s4+0Rl3LTOXQl764+x3bgx8YyHQgZ2Vq 3PyKVFt23VU7BYm2zPE3UXbPAPXr9itJZPl+k= 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=RjJ2f6Qn24zyVoutya2+PlbgSuUbJceLpmUp9TpO5dk=; b=QK3qX0x8Socz3jytO3vxsJEk5/Sk30K9mbr+Rim4BVLk22gFbd/T/hKTZB+QYL2QqL PokMMro9WLEToGsVadkeJATCbuIRfigAEZvEhpEzboidFv8AylEfytyG/37ApIW++35l 2gqAMdiC0uQt56/WV4EYGYwKdSPnYxUeP3B0bGJviiUB6cYEMZFQzFJFXjqO15ffuXmq ciUZP6G+Y+RqDn5DHholrLJqFPiS0h9sPXxMg4ZqxIT6tMSZrjwuHGg6p5Mm969i/pUz orbrVXmqX/DgujWP5RdjyUBG++U5TJXarlPJktkw+oOVt+GUaVDDriQoBWEfiiWnT/KH AZ4A== X-Gm-Message-State: AOAM532sL5TSbaOd+mGLmAfFOkAlqug4inLey5c1Mm0fbZ9akE6BgKoW rxdKVTuJK4DvhN9p8nXHYQrGYNoVa/c= X-Received: by 2002:a0c:f887:: with SMTP id u7mr2516886qvn.132.1595465000210; Wed, 22 Jul 2020 17:43:20 -0700 (PDT) Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com. [209.85.222.172]) by smtp.gmail.com with ESMTPSA id e23sm1217511qkl.55.2020.07.22.17.43.18 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Jul 2020 17:43:18 -0700 (PDT) Received: by mail-qk1-f172.google.com with SMTP id h7so3878926qkk.7 for ; Wed, 22 Jul 2020 17:43:18 -0700 (PDT) X-Received: by 2002:a05:620a:15ab:: with SMTP id f11mr2660524qkk.199.1595464997468; Wed, 22 Jul 2020 17:43:17 -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: Brian Norris Date: Wed, 22 Jul 2020 17:43:05 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] platform/chrome: cros_ec_proto: check for missing EC_CMD_HOST_EVENT_GET_WAKE_MASK To: Guenter Roeck 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 2:13 PM Guenter Roeck wrote: > On Wed, Jul 22, 2020 at 1:50 PM Brian Norris wrote: > > Other than perhaps taking a lesson not to propagate -ENOTSUPP, I don't > > think this series should block on that, as this is a bugfix IMO. > > My patch will return -EOPNOTSUPP for EC_RES_INVALID_COMMAND, so maybe > you could do the same. In my latest version (not yet submitted) I > extracted the conversion into a separate function, so if your patch is > accepted now I can just add another patch on top of it to start using > that function. Sure, I can use EOPNOTSUPP in v2. BTW, the error code is completely internal to cros_ec_proto.c in my patch, so it seems even less-related to your series, 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... So WDYT? Should I rebase on your eventual v3 and refactor to cros_ec_cmd_xfer_status()? Or (re)submit this first, and add one more cros_ec_cmd_xfer_status() usage for you to tweak in your series? I don't mind a lot either way, except that I would like to port this to older kernels soon. Brian