Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1141426ybh; Thu, 23 Jul 2020 01:11:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtE9ahDL20qsJM3w+BUohMoYz1zF+x9RcHEuHFaZCNttvIBw0WwB/IQLQQX64I/EKRU0B0 X-Received: by 2002:a05:6402:b57:: with SMTP id bx23mr2963045edb.304.1595491907159; Thu, 23 Jul 2020 01:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595491907; cv=none; d=google.com; s=arc-20160816; b=GLBBuj9LGVdzc5IgzbhsOv3qOmsj5uou2fz0rAH4M4aGuhPwoOweI76LsVlGlmEmmm diTTaHMHs6yOngnzQQYKI+9/WBs4hWELRaZ/1FiJlqraYnBRFdzkoYih+qa2MbV+Z1G2 VvcNA2qYj7oERhewchcTm8PMVDvAOcx0grbfnJd7ey4HvrXrKcg8mC2VAwQ8HCex6AXB ymeKET+oohPfTVcJ/IXA3fY0WvVsBN8rlNx9T1kynG6F7I8xPayWxexbXfHzwGhH89nf VlBJgtBmot1OLlxc5xnyCbw+5CPl7d+7ZHlAXVL2baBK1XXibVz7Mjwc/0bUeeylykFx gVgQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=eDZXoY8/NgZRmm1NxzeqPADRSBQxRCYyvdjgfRX4ISs=; b=eFYR5mQylHgh/YLVOqfzqLV54Q+TI0eMttmizvb96VMRyp8JYtp4FNpZEo7sLFTWin +5xkNTJQJWC9Lr5Tg9wdXTr/Vrkf0AHgwZXZvrtjqzZaXII7kwoX+GYqCBvlxpN3Ilor pogPq577ZEv9IL5LWgVklb2s9J1j6fisozaqwaaBfkhtKbpJklm54rX6RL5Oq5/ihdEh vVqyj73BpLbp1cXEwlfZuXq67Po944w17Y5GI8LqEZmqarlJRM9ykdjkoaGNnO74IRkG KQYMxHAe6hMIzuaBma3g79csh+HqAgFRDq57GOmKCIJ9Sw8+J2E8aG1McVBuejR4rX6l pFSA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g22si1592841edr.336.2020.07.23.01.11.24; Thu, 23 Jul 2020 01:11:47 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726597AbgGWII0 (ORCPT + 99 others); Thu, 23 Jul 2020 04:08:26 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:44684 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725911AbgGWII0 (ORCPT ); Thu, 23 Jul 2020 04:08:26 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 64C40296B62 Subject: Re: [PATCH 2/2] platform/chrome: cros_ec_proto: check for missing EC_CMD_HOST_EVENT_GET_WAKE_MASK To: Brian Norris , Guenter Roeck Cc: Benson Leung , Guenter Roeck , Linux Kernel References: <20200722015732.1720840-1-briannorris@chromium.org> <20200722015732.1720840-2-briannorris@chromium.org> <5ebf1534-8045-9894-9c1c-b92b9c6d8479@collabora.com> From: Enric Balletbo i Serra Message-ID: Date: Thu, 23 Jul 2020 10:08:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Brian, On 23/7/20 2:43, Brian Norris wrote: > 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. > Yes, please, can you send a v2 using EOPNOTSUPP > 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? > No need to rebase on top of Guenter patches, as I plan to pick your patches first. Regards, Enric > I don't mind a lot either way, except that I would like to port this > to older kernels soon. > > Brian >