Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp196567lqt; Thu, 6 Jun 2024 00:17:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXoZFNhQpHwi87EnhrO4LuT/MNfkUTkNJ2NlTMOdAMvNMNSAI8crWG9E6IkPhUAzeCQf8i8fXI8aHaql5dJfqJpjo0xrpvx8d/mHGaF2A== X-Google-Smtp-Source: AGHT+IEy/LUfnMkp17xxwQrwCtT7OpLsB6ppM0ElBO3jzPGyJqipfN0r7l5MDcop8PGyV5R+YE4b X-Received: by 2002:a17:90a:f187:b0:2bf:c6fb:ec34 with SMTP id 98e67ed59e1d1-2c27daf662emr4888962a91.8.1717658235692; Thu, 06 Jun 2024 00:17:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717658235; cv=pass; d=google.com; s=arc-20160816; b=O8cxKs7eCM1B3Gy+XNv/iFPQWAUg6v8igmbb3WaCbV3hiYUE2JKjNSRdLDg7bYanRL 7oawfJHU9wdESwWSA8HdYMayNstJGp61xIIBpKSOWsy2xdlA55oWtPV3mYkF75a3FN5b 4VCAwAG5ZOlDHUeksjFD8FtBZdGxi4KCxetuDBRR5Fo/28ae15//o6jppgW96KcaJ05S AFqi0Gq6bgairNSm+c6dotZdy5cfdg5eivWzXsTdVwBwpplBfvDgIY3ode87MozFgtTR ALEAC5aJCUAfjAj+kJV93jN/uO/ypQOVlSyEBrcllkB+h43D4/K2b31wS5dVFfAGLIWO ekWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=mCj8Hc+utnURtnGsh5wR4++fe9jJCCDRahhFYEREKbQ=; fh=rz0JTVdBJ3Pn6g1C60m/r9OPpmK5LlEZ6Q6qH6dmUkk=; b=euWyORN5GoIoFv98NE/FU3ac1w4pczGwyu1bGo0pSihAa1Eu96NEbo5VrlNR34UDzc 8+eb2fBiUIc3AIVxyEJTrF0SowvwGxfsZhG3HR53W32breDfaeN36H9ZZFr4qpwVhTYE EmIfxhW0kOC6+HHXjvdkM4+KQJmF1y7i5n05x07odogTIY5No7Aye4s3k41M0QiSEw7A PAlOpqRcU8/q57n+zgozImdQynwMyZvEfsCixpDPtPJFxNPEZh/KI54XMhjANiBdtRGG Ghku5YCSiVpZ1hamrisSHQ1HZlu63wKq4EhZrCJmTGap9xTEv/aac+jajbNpSy5hLOJW /94Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@jubnut.com header.s=MBO0001 header.b=WefO5hWc; arc=pass (i=1 spf=pass spfdomain=jubnut.com dkim=pass dkdomain=jubnut.com dmarc=pass fromdomain=jubnut.com); spf=pass (google.com: domain of linux-kernel+bounces-203617-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203617-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=jubnut.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c2806d1a7esi2515268a91.138.2024.06.06.00.17.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jun 2024 00:17:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203617-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@jubnut.com header.s=MBO0001 header.b=WefO5hWc; arc=pass (i=1 spf=pass spfdomain=jubnut.com dkim=pass dkdomain=jubnut.com dmarc=pass fromdomain=jubnut.com); spf=pass (google.com: domain of linux-kernel+bounces-203617-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203617-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=jubnut.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B38B0B233D9 for ; Thu, 6 Jun 2024 05:23:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3EF638F9C; Thu, 6 Jun 2024 05:23:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jubnut.com header.i=@jubnut.com header.b="WefO5hWc" Received: from mout-p-103.mailbox.org (mout-p-103.mailbox.org [80.241.56.161]) (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 9B7A71754B for ; Thu, 6 Jun 2024 05:23:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.161 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717651419; cv=none; b=cjI2VmaX0ML1RNXHjXvK8Zo+XLBf2dJhpwnUBxBKrZT0Yipt2ecAUHybtJoFZC8qHt7U33yEeafsDXVaeG4oPanOqBiqcZcwGCj8VzGEArpVROucAYtkpBwRuELM0fLRbcoFE2wOzXo3jvA13VoKgAgHeKcGuKRnv58qHiOh+/w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717651419; c=relaxed/simple; bh=jGFDFpw4UEL1HxMSWQ2cgc4Ox2CApc3r211koRhoItA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=pU7KKDXO9+st4XJypfDq51M4WQhlgIQaxLSj8iYKQKqOs8S+RZW07sAT5CNWhbZ6BHGRokciSSVHwrtAknlKRHfHDCOwTreRjTDA62CmuyUEZ4sMNaKzat6mL0YczRC/+Y2/jb4gzNqnnNBr+ncUrtkPu3ug9Wz83/Dai+fAUns= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jubnut.com; spf=pass smtp.mailfrom=jubnut.com; dkim=pass (2048-bit key) header.d=jubnut.com header.i=@jubnut.com header.b=WefO5hWc; arc=none smtp.client-ip=80.241.56.161 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jubnut.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jubnut.com Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4Vvt5x5rcsz9sqF; Thu, 6 Jun 2024 07:23:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jubnut.com; s=MBO0001; t=1717651413; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=mCj8Hc+utnURtnGsh5wR4++fe9jJCCDRahhFYEREKbQ=; b=WefO5hWccRD6DW0SD4+kDwmLugeeSHcmH8p5bOjscZ5C9NG6IsrdB9YY/HtU/8pUO+fjM2 FIDnxY8krkH9nLMzvHEWyfiyqlWdynIetuBvCJ1O5OAGPIxD2rB2aeOKsenVoo5BRQDwQ0 hqzAPWMVLHDNKjQHq3SYtoUCqgfKh+65U/Ryhk9L4Cava3mEGTRL7Us09lKrBnfF/TTSiX AZH5jTfnU6EERNyaRdIMQvULKEYjUWlvdAiDFxIy2h24CGS1flahzMiHnZ283UnoGS/C1+ dDCfhkVQNHtxteEpKwUf5AX6TMF/7pqjRZa901/2LEO3jCNAiRklWtnFa1RFFw== From: Ben Walsh To: Tzung-Bi Shih Cc: Benson Leung , Guenter Roeck , "Dustin L. Howett" , Kieran Levin , Thomas =?utf-8?Q?Wei=C3=9Fschuh?= , Mario Limonciello , chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/5] platform/chrome: cros_ec_lpc: MEC access can use an AML mutex In-Reply-To: References: <20240605063351.14836-1-ben@jubnut.com> <20240605063351.14836-3-ben@jubnut.com> Date: Thu, 06 Jun 2024 06:23:30 +0100 Message-ID: <8734pqskz1.fsf@jubnut.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4Vvt5x5rcsz9sqF Tzung-Bi Shih writes: > A nit haven't caught in previous round review: > > - `if (ret)` for cros_ec_lpc_mec_lock(). > - `if (ret < 0)` for cros_ec_lpc_mec_unlock(). > > If I see the inconsistency when reading the code, it would take me further > cycles for seeking why. We should fix it. > > No need to resend for this; I will fix it for you. Oh yes. Thanks very much for fixing, and for reviewing!