Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp157810lqp; Mon, 10 Jun 2024 23:35:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUSPp4rZjTtD2FCZi4f6B18lgwIuntb2hLd/mx4glxMmUBWxfwwlmCa/EmtIWSj3vBEvQdkglIKisiRNBhXziYY2AJmLTbUOSMUeHsHrw== X-Google-Smtp-Source: AGHT+IE89EdQMp5yK+nDSoXR6fTsoQcG0AQJX/eWCpUnUay1X8tLxY6yGcQXmZ1zgVVpu2QeuZ6E X-Received: by 2002:a17:90a:d30f:b0:2c3:2df:ea36 with SMTP id 98e67ed59e1d1-2c302dfedbbmr4645975a91.48.1718087704324; Mon, 10 Jun 2024 23:35:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718087704; cv=pass; d=google.com; s=arc-20160816; b=wk3NU4PV2AJhH8kdnxglPkZyx1u6hg1aF9NR11dx4yvYNTKZgzGiOIDuXh9Ye/PP0P 4CdF3C2o4HqZodLnjOInv1i0luvijiwWvzdACJ6KhtVKLj2VLfI0DxfzKdAdbUucoU8/ LKFcgdmvwumLNYkOzlm1ElUNm/vEBh9qzWx9kD19ZrxXyDdXBBgfJyEqhnuGhOF/XMYs cZyPTrOIyKGcHod8qpDPLS2UcNcwHnweA0mqLRehCiMC/kXAyu0u6ecHp5wa5X038fZS PLvUsjnB2i2se3hLkmr1YsNAnIy2a56D+ZzLCCKKvHZAkLkYoNHr77KCejZy5sv5xf7W K8xA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mz4ipz33403mvPVSkhYI1gfMQoO0ONVid1wXfvHA+UY=; fh=peWqeJXZLp/mOVG4U3hKXPfBS4ktLRHiZTGhBH00Fbw=; b=ijJlCD72wGnTwYbJLr7/sK8dVzCUv/p/hET/NYMi2Uzttp72fhEH8F4/+Usx6zWy8D R8pan5aP+t9f2ZPj1a5r/lkOaBgj/Ol9j/78k0a/5e4u23ww0rsD/nmmNAkgwsb0G/cN Xp9GqvEpXKvj+h8RrFe+ffoxxgQWh9UcjgGLeOeVyLf7qReeyDxxOXj5/W5Mw2YSU+1F YzyQnGkps7U7muMsehAum813vabSK7TMh0AWlEv1GFgmjGMzzD69e9MKUFZDYjYVIztd z8y/MnQTD88ufDlW0xbv3OnBXmOnNbdS5kgzAxOFp95ygWXtKKsr/r3AroFTRUuhRbE8 nuHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OT+LPql6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-209329-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209329-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c31ed9b847si1673854a91.111.2024.06.10.23.35.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 23:35:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209329-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OT+LPql6; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-209329-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209329-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 57AAF28921E for ; Tue, 11 Jun 2024 06:33:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 69DD5171E5D; Tue, 11 Jun 2024 06:32:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OT+LPql6" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B23B171647; Tue, 11 Jun 2024 06:32:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718087563; cv=none; b=SCLos/GoGx1uufKcWmlqNC9pl+cLnP0K92HJugBxJdyF/KZgSc74pU0j3NP8tvReYbwr4HCYpv4MqvqghiL2g1h4ypyxfCm2w1NkOGC+YjyGIOfTZ1FhFrxYSaiXhEAm5ECh5FLpLRC/dglRWOB0jBqRcISu8dOv8FwP5pdMDzM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718087563; c=relaxed/simple; bh=27itxGlfcgEv3PcvLTnBGYHx7ycnbMROORcs9t+26e8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ONoOcPqVy/KRxlenX+wcIzyaKtzJ9L9DwGeujdJd9sAS9TSZOqzmSdZ03kV63EkmJoKFYDiQ/ORaqVAGlV3jLwGK5EBFeFBVNX8xaV3FC8M/OpWo4T/NS0NB+IH0jl5t9OgnekBxcBViO3FJrqojTWTY/nbB6gFpywzCHHqnSAY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OT+LPql6; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5AC46C2BD10; Tue, 11 Jun 2024 06:32:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718087563; bh=27itxGlfcgEv3PcvLTnBGYHx7ycnbMROORcs9t+26e8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OT+LPql6ztvY/rQD/i6nhXnOBYdJBmRK1RgXYIRal1yV4AJA1fyxVQ3f9iqqu8JI+ Ffsl1ygNdFWNixrIwhRLVe1exWzu9bW8A2L/BK8vjdnnw20E5C6Etl0LybemHp+9dF RIh3/4SnTbBuThPc5M6PsI0jOJQsyNRqgHMyE+eqrw6kiZINZ9aGu4g8/awUHKMBn1 mCxMMA5mtC0+P6kfWKJkQt/NaaA+CQHhUkavWU0TvsL/QcjJefbH/NhYqCkWdeJe/I Ho7l9OIwaGPpm3PaV87BtbfVTTYMK0Z8mJiQhISOCU4K7kAlGBGTWvZ3D3WF1rGifR 44n1MHb6l1qtQ== Date: Tue, 11 Jun 2024 06:32:38 +0000 From: Tzung-Bi Shih To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Benson Leung , Guenter Roeck , Sebastian Reichel , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , "Rafael J. Wysocki" , Len Brown , Robert Moore , chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Mario Limonciello , Dustin Howett , Stephen Horvath , Rajas Paranjpe , linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev, Matt Hartley Subject: Re: [PATCH v3 3/5] platform/chrome: cros_ec_proto: Introduce cros_ec_cmd_versions() Message-ID: References: <20240610-cros_ec-charge-control-v3-0-135e37252094@weissschuh.net> <20240610-cros_ec-charge-control-v3-3-135e37252094@weissschuh.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240610-cros_ec-charge-control-v3-3-135e37252094@weissschuh.net> On Mon, Jun 10, 2024 at 05:51:08PM +0200, Thomas Wei?schuh wrote: > If the command is not supported at all the EC returns > -EINVAL/EC_RES_INVALID_PARAMS. > > This error is translated into an empty version mask as that is easier to > handle for callers and they don't need to know about the error details. I'm not sure whether the behavior is what we want or not as existing EC_CMD_GET_CMD_VERSIONS usages don't have it.