Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp819020ybh; Wed, 22 Jul 2020 14:15:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzX5hR1AhaX3GeRSePK5lBUFpOsI9IpQ/qUvULhEZLFKx1F4sYWXFyciJZGfRSY5NgDAA0o X-Received: by 2002:a17:906:40d7:: with SMTP id a23mr1336220ejk.421.1595452534417; Wed, 22 Jul 2020 14:15:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595452534; cv=none; d=google.com; s=arc-20160816; b=mDFh3H+gNFRqM36BDzqoqbRY8glbcGufOHEPCuTQ3JMcxFAsNZ/kETHDg3RHpCQD8P yKKlNkipLEtyFHzhXmEdJ9xMbbmOQG5Dl82FW/zaAe8B4wGgAIRGV76CmkKlbs0Xt5WA cQMcQF7HkrNaCdW31lB3/LiC/BjCufafZgU8bkL6hhSVUQPc4/cCteBEMnZd2bDNowqS dnaeCfU845FMgitRDKScFFBzCuore5Xw4xyiHZgjzBhFLpsNKoSz5tACQODlWcrf5ubr lueELwKRdg8AGMpVD0O1k5KSWEgLR0l1Jt7U4CtaNV6LlqEol1Jr7hmPLuFYajb0g/Te sAVg== 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=4x7MXfjAHP2OqVahR16pifID3jW+ZfJYn4I2NJML5F0=; b=FPDqh7O3uMFahLRTcBhLEIpZYS1lQGzK1BjECDIWsZZe2NIrUnr1iI7HRLhyhSeOMf OPf76UlUwio6uRaCjebzZOLTaeKHUTIT0ipTfD+7ULIMiyEnKdt1JtY24oJ5qAGpcN4s dfmYACIQvtFOV9lIpYCKYNKueefrj+S6BepPgxtbxL7AYLur4a9tozRXF794P6pPFWZo dDi69znRfKoyVkQpNrm3HT4Pu8ADJ639E9ebHgaI8nG8RQbS09BVTt5ZfTdAYuXf7UCC SkYsxhGN/NnFmB44MSIk2SS9njUpha4C4JozcwPEcIudSakIZOf9wQUl3hlPLoE3ao+0 al7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Z7n28Qr2; 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 h16si675411edz.526.2020.07.22.14.15.11; Wed, 22 Jul 2020 14:15:34 -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=Z7n28Qr2; 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 S1733010AbgGVVNR (ORCPT + 99 others); Wed, 22 Jul 2020 17:13:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732896AbgGVVNQ (ORCPT ); Wed, 22 Jul 2020 17:13:16 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AABC3C0619DC for ; Wed, 22 Jul 2020 14:13:15 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id d18so2776213edv.6 for ; Wed, 22 Jul 2020 14:13:15 -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=4x7MXfjAHP2OqVahR16pifID3jW+ZfJYn4I2NJML5F0=; b=Z7n28Qr2Afeyip2TTRIaKRZ1P8PLGsK6JPk5T6J+GRX0uwMZxrAzYMqduYV0jv5ZvE Dt1tVg8CpJYw/DA8YzaqC73uF0fQ8elUDN8m0P1R+O7tg0IubBdDqPByTymhDal1DyQ4 9WxjFytxVtWK5xVS7giYWlioJi3IK9FjbR0PAK6j2uV0/ckSGFCFOO8u9I9H7veV6BYV s6PHJO4yCotlxvXj/GoEgs37U6CMOeOFfKYdi89ZQs9k7Q+rR3rDa+hsUEMvI9bYAya2 Izop23/2wAbff08VYg6UBgi2VdWzm3QiNVnzJF+5ZMqhJtM3OyXQ2pqwJOdAcOk2QhaN oIxA== 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=4x7MXfjAHP2OqVahR16pifID3jW+ZfJYn4I2NJML5F0=; b=Iipq1IGLHleyVC7y0JUb1sP7tkJJK9iPxgtcT5/WVpq13q8hwb1/TDP2Ejc9+a+3q2 MHoUuK5rLVo1M5aeZcl9rk7Bq52hmVXsGFW9kEENk7toslH+bK1mSye+5B10KwKhY0Op 7I3oRvUOGzP0iPy8ySz/FRUDajHInw0zM5FWoXisWyUszYHe/zLxNlaeCQvozm66btBP 9Bg22bFLDVgmrjkn/HFpJdhsqFGTEvu4p9NwDY1M6uSvcLMSHpfsHEr/1vu38gq2BpnI 3m3R0bpFApRLQdurxapXlV68pJQv+ixvQtLEcBfQH3l/Ek6kamz2O8Pb/9q1jwRUIBb0 qg6Q== X-Gm-Message-State: AOAM5339DPLpSmMV6zs3RNNfu9kEorsVbXYJkiQsAUx5w/M7FoQZpYaO NHBoQ6PSyiY63v7TjqNskfsMjesoaphhH/Vm8NAY8Kdw39U= X-Received: by 2002:a05:6402:22f0:: with SMTP id dn16mr1295083edb.83.1595452393987; Wed, 22 Jul 2020 14:13:13 -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 14:13:03 -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 1:50 PM Brian Norris wrote: > > On Wed, Jul 22, 2020 at 3:19 AM Enric Balletbo i Serra > wrote: > > > > Hi Brian, > > > > Thank you for your patch, I'll take a look soon but I'd like to ask if you can > > join the discussion with this patchset [1], specially this one [2]. We're trying > > to match EC errors with standard linux kernel errors because we think can be > > helpful. > > > > [1] https://lore.kernel.org/patchwork/cover/1276734/ > > [2] https://lore.kernel.org/patchwork/patch/1276738/ > > Hi Enric, > > Thanks, I'll do that. I do wonder sometimes how non-maintainers should > best support "community" around these things, for subsystems that > don't have a dedicated mailing list and are therefore sent only to > maintainers + LKML-fire-hose. I could probably subscribe to LKML and > filter it, but something tells me my mailbox will still manage to > explode somehow... Anyway, I digress. > > 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. Thanks, Guenter