Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp169228rdb; Thu, 21 Dec 2023 06:06:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IF9PLiNz7GBBy46HJkjv7So7wdoBTk4XKuL2b1iGgzaCHHB+zzs1TNDEfGFB86kLrJV0yGw X-Received: by 2002:a05:6a20:7f93:b0:190:50ec:e2d5 with SMTP id d19-20020a056a207f9300b0019050ece2d5mr844164pzj.97.1703167605629; Thu, 21 Dec 2023 06:06:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703167605; cv=none; d=google.com; s=arc-20160816; b=qimCOEFUZ6H8QrSJeyjgow10rKDIA8GCnM08ygZiXb+DpNYZhZ7kAZjKh3OqKJt+7W JutOPFj/ZeF51N9+myBoVkp/Q9gO4FnEQhsaY16Atq3Oz7d9Jo79PQXudxIBsFv8SzDl 77fM13sURHosFWi9O1urT2C2hPzweyUeDvODybM5I5K1T9y5/rraJpO89TvNRgorqaak twRYcCSM+RxhYv2oLcfb8onk6NVJT6jrt+I/pbONRvfHUnR0jqZ80XNxrdYMLJXh01Ci n6DEBX5rMwl2jKpC/CAhHmXIAGhayjxmvGs95M9faLIVyC1nAFiRkkr1y3r0hMAW7zx2 sGlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=organization: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=FFQdCE5wy1vk7xsNVo027n1K1IDU6V0694pXF0JvkQA=; fh=Cs1XDF9NnEI6WyNr/3psaWYqq5/uKRLupLYC7B5e4nA=; b=j5SviyMrmkz1m7g3/Vz58gYtHIbhk5xQQcmrOd26B1ta1+ZnTL5hV7zwjZ2r1hhcCD 6CicBrhpB8D8uLOFOA7tan+nqBhDcDs8OYXYdfAfAk36D2IDkr+DFOVhXKmW1riMgsX9 P4FoXhd6w9r7G3botXsTvRGRbxH23kWZc/nctog4uxWKQP1UerBm+JWJbHZmXgt85kzi 6H85rL178hN2O2PG/Aa0Jce2BA/Ju02paBJXg0X+6/5AzuNSKP4y4fQeFL21uQ7Adlbk ekUjPSbthNOpkrWb3JmU9kA/DzYRj/kxgS+IAVEMU8s2feuY5IMtRiaYowEav/pNn1qN fyxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=JrbMBzzc; spf=pass (google.com: domain of linux-kernel+bounces-8511-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8511-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id a71-20020a63904a000000b005b91536981csi1672725pge.11.2023.12.21.06.06.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 06:06:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8511-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=@intel.com header.s=Intel header.b=JrbMBzzc; spf=pass (google.com: domain of linux-kernel+bounces-8511-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8511-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.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 2CFD7B22859 for ; Thu, 21 Dec 2023 13:54:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE0E37E78B; Thu, 21 Dec 2023 13:42:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="JrbMBzzc" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) (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 3BA9D7763F; Thu, 21 Dec 2023 13:42:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703166145; x=1734702145; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=R6miQeV/VuHmO5eVyMe/230bW5y4XCSTO7Hh0DdH/iE=; b=JrbMBzzc/E5CHeIzx3cD96HPDfSc1DQ80FRltqNSJqd+X03HHFokZnU4 R64hilneFtKx2EyHIBCPZGlVTSBVfH4FgxJZNiKInmIFbsDYShj04Bp6G jxeecy/v08PLK1iHS/FjXDh0YIYfOxPsfQK79B7UdflmYDLbz4xjTvnNh rQGZT48BpqM3bp1eTFqrud7LRxyDXGl2Smt/KUj7S3C09x4c/azUuuZI0 R+s1IU2olMsP6ImxWj8syY3ameFaJgMs03QmWfMDIbZJU6bRV60E13gQT ugeRY2gJgUwLWv59Pnre1C69yEsz8l/vCamvcNg6XOSZ7Yl/Yc5tXpLJC Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10930"; a="393141727" X-IronPort-AV: E=Sophos;i="6.04,293,1695711600"; d="scan'208";a="393141727" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2023 05:42:24 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10930"; a="776707125" X-IronPort-AV: E=Sophos;i="6.04,293,1695711600"; d="scan'208";a="776707125" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga002.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2023 05:42:20 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rGJJa-00000007rYy-0CnL; Thu, 21 Dec 2023 15:42:18 +0200 Date: Thu, 21 Dec 2023 15:42:17 +0200 From: Andy Shevchenko To: Mark Hasemeyer Cc: LKML , chrome-platform@lists.linux.dev, cros-qcom-dts-watchers@chromium.org, devicetree@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-i2c@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH v2 00/22] Improve IRQ wake capability reporting and update the cros_ec driver to use it Message-ID: References: <20231220235459.2965548-1-markhas@chromium.org> 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: <20231220235459.2965548-1-markhas@chromium.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Wed, Dec 20, 2023 at 04:54:14PM -0700, Mark Hasemeyer wrote: > Currently the cros_ec driver assumes that its associated interrupt is > wake capable. This is an incorrect assumption as some Chromebooks use a > separate wake pin, while others overload the interrupt for wake and IO. > This patch train updates the driver to query the underlying ACPI/DT data > to determine whether or not the IRQ should be enabled for wake. > > Both the device tree and ACPI systems have methods for reporting IRQ > wake capability. In device tree based systems, a node can advertise > itself as a 'wakeup-source'. In ACPI based systems, GpioInt and > Interrupt resource descriptors can use the 'SharedAndWake' or > 'ExclusiveAndWake' share types. > > Some logic is added to the platform, ACPI, and DT subsystems to more > easily pipe wakeirq information up to the driver. Just wondering if you used --histogram diff algo when preparing patches. -- With Best Regards, Andy Shevchenko