Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp848589lqj; Mon, 3 Jun 2024 02:41:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0YaCRfK72Gvd/bu1yQz1MFWmDuTJjeFCvlivkzva0QZher5qAPDOAMIoAfKVYr/o3x23xjGIOrC+0QZ2uKONSQGhfgpzvilFsuJQjjQ== X-Google-Smtp-Source: AGHT+IGyIQrJ9NWx96Q8LJp1DrR2daePE6OJwgJSIk1cw2qFn34ZOFN9tE7DzVwnVCmVajEVcOY6 X-Received: by 2002:a17:906:c046:b0:a68:fcc9:6c1c with SMTP id a640c23a62f3a-a68fcc96cd3mr271488766b.0.1717407667587; Mon, 03 Jun 2024 02:41:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717407667; cv=pass; d=google.com; s=arc-20160816; b=kdCs4J2Xb6d4GfJ1T3E/ZBmGx+as51DyXtj6aEU0DBMv4r8zdRFA2DMwhW9BDFJLbZ xvSPPmdlBr58ZXY/aUjQ3QW3wp2pJUKO6Od2aczt0uXk++VKxF4YaOczvksW+smSaOaf GZFgdCqV1hFTXTVGNWBPDFtlYF2XKr9fXTaKQrCb43MBtf+U9oo8ZXBKfie1QnoTiN7i KNsj6uH41pkDdLlxftS2HsqEWFicX7MwexRetaPej9uqBwaIT57gZUP4sh0MrvpviuxX vudXMHlNYwLJHGRmbw3aVxRE9hw5jZjSVdIf8gZhhSxNiQiqiZ0/Rr9n4VcClCP7rwqy XX2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=8MmQtDlYcbF9hBd17ITLbFBdqy4f10P6oFBwNUIEJd8=; fh=O7W32hzrxLioy2lU7cq0myUffGADZNPHRUPmOpshY3A=; b=TML1z9OdFys1fmCzsVh12aGa9r3mVOc2GaBUAkHzXxBXp9W8/bORWyOV1kA70oX0O3 jthtZXOEOErnkyunopMJjB05q/ouyRBSUOC9fnhlI5m0UMXUZwDX4vGJgfV278Vf3vGg 0MxE48PtWGQbLjyjMp0B8jsUXiWvDQOIKawvALU9zogp2IVzijoW6cUk4Tv0zrUaCaYS QoV5+B9AWSTNGd0m70TbK2aqreeVouuBODQr/26vOkPjH/QvKHkI8pJpXoyhKOWRJVRY JqiOi3qBWGat+pLz2XvGAGBblgkf80dtg6SSuKLn/MGym2IpUd7VuL6vAmixnMKYUdMK NofA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LxZX9nYT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-198902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198902-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a68e4d72eaesi176809366b.658.2024.06.03.02.41.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 02:41:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LxZX9nYT; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-198902-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198902-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 am.mirrors.kernel.org (Postfix) with ESMTPS id E69131F24D03 for ; Mon, 3 Jun 2024 09:38:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E873412D754; Mon, 3 Jun 2024 09:31:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LxZX9nYT" 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 1B0A612D1F1; Mon, 3 Jun 2024 09:31:16 +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=1717407077; cv=none; b=oVnm1kiz2U77EZE4nbeUF1JOBOcix/jcN/MOWgplIfx/sByU3tTndUqA2jhCc1UT1l0cSwY6tDdmrS7uJJDqX6mcKRQ9/Xcrh8STq6vfLTmF7uJm9/rWhg3jtz5klPKIeemRkKMb47JBKXFMLjuQAcj9HEzkzaysqHnby7WsYIE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717407077; c=relaxed/simple; bh=BsLJdnlkFFhzy+R+5F1gs9LZdADpHVjySvSC8PzkZDs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VDXhy98iihwlFr5Kz6nrNLIN6liQDdnQVOZoYa0whyRQGr2ZjE4/GuggJdiZJeH4qDba9OKA4gxgtluj7gfbEuD+FmWzOTboUZ+FZ63dsLIOSUW7mDnaXw4Mjgmolj/hvKPXjE7+eqZI66ASIqjDqDlQz1a/U4f/ft3onpG0nCw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LxZX9nYT; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49A01C2BD10; Mon, 3 Jun 2024 09:31:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717407076; bh=BsLJdnlkFFhzy+R+5F1gs9LZdADpHVjySvSC8PzkZDs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=LxZX9nYT6geBpzdM+OfBR8qWuwkyx+LAtSLqmb1P/t00ELAgLRK7f7YImDOj9gtok ujTqKjxtSZ6t/z44BjM/llo62qWUsH8P2b/RFn9b5oGxSEGDWyG6yNwkcZQvejLdku rdxi4uYBJX0RnUz+OX2h6fV0Ngpr/sqnC32nreBToxITpOYsmoXuXIJgrfbFROaCVP UeS6rIwLMOXKtE1er918iA5gHEG24H5MekUqdwBPXeEJs6MBm/qSgwJAclCaIxsf1K xhmT1r5xyQjHc9mKbmZC3SwWdEk0jlgO1YbK4iXUkLmMzg0h/0qNwlJO2/No+GyyGt 2B8hqbFDmrUDw== Date: Mon, 3 Jun 2024 09:31:13 +0000 From: Tzung-Bi Shih To: Ben Walsh Cc: Benson Leung , Guenter Roeck , "Dustin L. Howett" , Kieran Levin , Thomas =?iso-8859-1?Q?Wei=DFschuh?= , Mario Limonciello , chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 4/5] platform/chrome: cros_ec_lpc: Add a new quirk for AML mutex Message-ID: References: <20240603063834.5580-1-ben@jubnut.com> <20240603063834.5580-5-ben@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; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240603063834.5580-5-ben@jubnut.com> On Mon, Jun 03, 2024 at 07:38:33AM +0100, Ben Walsh wrote: > @@ -484,6 +492,18 @@ static int cros_ec_lpc_probe(struct platform_device *pdev) > } > ACPI_COMPANION_SET(dev, adev); > } > + > + if (quirks & CROS_EC_LPC_QUIRK_AML_MUTEX) { > + const char *name > + = driver_data->quirk_aml_mutex_name; > + ret = cros_ec_lpc_mec_acpi_mutex(adev, name); * Assuming the `adev = ACPI_COMPANION(dev);` didn't move in previous patch, `adev` here could be uninitialized. * Also, it shouldn't rely on CROS_EC_LPC_QUIRK_ACPI_ID to set the `adev`. To keep it simple, I would suggest to use ACPI_COMPANION() instead.