Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2459138lqb; Mon, 27 May 2024 23:39:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWPPQjeVB4gyno72vcyInlLgdHZLg0W4wNHaFTXUryWaW09Qr5sLX0O6HGOpdFEBx3GneUWMvTSGKJvY93sG1bWHVGNyyxY9fOGtpTVEg== X-Google-Smtp-Source: AGHT+IEhmF44HiJSpkux92zyA9ob9WejeyALLpuWSjoEhOY3QpmX+gRx58aLvLH9XfTxfbfUGJMm X-Received: by 2002:a05:6102:180f:b0:48a:332c:4392 with SMTP id ada2fe7eead31-48a384fad5emr11498013137.4.1716878354636; Mon, 27 May 2024 23:39:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716878354; cv=pass; d=google.com; s=arc-20160816; b=gFIpOJ60z5efyOtOEqa7LUIxFzgNkySGQtFDfdHKbC8/1ocyQXpVuOovIhciGlT8Ff UBIgarUp6U4caMRuPvHL7ddHicdkinhNa9ulQRb0RXTWk9HN5SlIwkmRrxsAkUMgYbH/ O8VGAbRfI5Mw0tT7urKbT1OAeHyTZU5zf9oKMkhJQh50utwA3U9xviUpZilUICvLwuno GunmziUr4U8rz35WjVzvv6eMOke1UWNn0ziseB+pd1SD8duODD/veuJGSHXej0hPSUT1 AWN4yUQ96A4sm7tkQrVJLN6NFT+Ds40R4D1HSctPycWK/wyHM6fPGh2EQx65ytvVVjBv rGRg== 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=2AIDEd3SAr1yllaAzVmNX0Dsviq+jNhRThHD5kRLCKs=; fh=Eso3ch2vbxa3hSh6pV0ALyvlMHUjFiXvcCPjY85bhyI=; b=SQESU9gQqmIojKZsNRohjObsnAoWLVMhQNn8yQLGopv0k9nlfDP+XeTZ9jCHpEeKrL RikzwUrEFZaspFJp/C2HYdXcxzO/2d/Jq+5cNXYkNiAmS1/XN43JsgRTHLJQTXvulleE 1Vl6bEqrU/2Y8874lZQa3p0jd9/VA1sjz+9S+0HykmxVtl4NmdoigRMaDXyA1ckQztEV xOdIz952AioRgkx/qT4pYmcTeO0+DPoNfwVJ7oTtRbDLuYtqlfW1ElNGCGoXp+WnMUG5 pFMaGAzFXzkwumBsYLeIeOBY4w7mCP+f1VQBVg2XmXdj/hz4+c84YXlxJ/BYFfBOZACe hVRA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mSeR1nlh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-191815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191815-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-794abd182fbsi931134385a.352.2024.05.27.23.39.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 23:39:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mSeR1nlh; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-191815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191815-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5A5EE1C20F05 for ; Tue, 28 May 2024 06:39:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 09A106A039; Tue, 28 May 2024 06:39:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="mSeR1nlh" 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 3052961FC5; Tue, 28 May 2024 06:39:07 +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=1716878348; cv=none; b=m/erA5/tFBe5E7GCvO0nRNqo2/xRG+7uKLcKlBDySs8UZceW9tWm5QfNKgoapBtxVq/JviLtE7Z5UAGGozqQI1JHyjFaghFsRkY4IC2Ihf1ocw+FVm1/U1XL36NnKR1ckrC0udgQ3aSkds++7ZuUixoYpPpmvE+u1F7YmRGTfdU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716878348; c=relaxed/simple; bh=VkdZMYTCXMSLhZPqLH1TyS3EUm8lbMlPJHzJkuruHMU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=SGR2iUGiJCEBQp4wlkz3kbLvMevTedfMIIFz+GXJjNYR1/n0njCWZsbLr3zVKchrrrJbXQm+01WNF5GI7gRyW3ODUhWpqGW83/kFfOL25bFII4O0l8JOqGj05fIbYS3mxja0rPzzEcCHlX/cVDJhrPAZYJl82Vjapd/7kaFmXL0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=mSeR1nlh; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A7F72C3277B; Tue, 28 May 2024 06:39:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716878347; bh=VkdZMYTCXMSLhZPqLH1TyS3EUm8lbMlPJHzJkuruHMU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mSeR1nlhvUsxjiQ/74xFH+7oZSlKzb8VPRUiZKQOO8KyCS/J0/KYByTTiPrrsrbra XLDc8Ud1VoYvXKfR9hzI11P5louQvEdV+r2mk1w/lgmuUDbS9yvICY9gAZ6k6wcnEB rx2TU+VTj7oASRxrpHn3XRMtl9JTSzeYqWepqddDlgwJQ206kBeiYl+4HFDjfrch4g RRQ9pdg7oh9tXq4NzUxSBmeCtJhW3v/r31Gj4ZHyfIa95fMUZ6dOxVNATWH1MdJJ+f qSt6+Dx0vFKZP+B1fExGgDI3M5MjrEuG3usXA1DfEnpiIuymFBPE7GJdjihrhl554F 0zZPzGQ44ZzeQ== Date: Tue, 28 May 2024 06:39:03 +0000 From: Tzung-Bi Shih To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Jean Delvare , Guenter Roeck , Benson Leung , Lee Jones , Guenter Roeck , linux-kernel@vger.kernel.org, linux-hwmon@vger.kernel.org, chrome-platform@lists.linux.dev, Dustin Howett , Mario Limonciello , Moritz Fischer , Stephen Horvath , Rajas Paranjpe Subject: Re: [PATCH v3 1/3] platform/chrome: cros_ec_proto: Introduce cros_ec_cmd_readmem() Message-ID: References: <20240527-cros_ec-hwmon-v3-0-e5cd5ab5ba37@weissschuh.net> <20240527-cros_ec-hwmon-v3-1-e5cd5ab5ba37@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: <20240527-cros_ec-hwmon-v3-1-e5cd5ab5ba37@weissschuh.net> On Mon, May 27, 2024 at 10:58:31PM +0200, Thomas Wei?schuh wrote: > +/** > + * cros_ec_cmd_readmem - Read from EC memory. > + * > + * @ec_dev: EC device > + * @offset: Is within EC_LPC_ADDR_MEMMAP region. > + * @size: Number of bytes to read. zero means "read a string" (including > + * the trailing '\0'). The behavior is cros_ec_lpc_readmem() only but not for cros_ec_cmd().