Received: by 2002:a05:7412:2a91:b0:fc:a2b0:25d7 with SMTP id u17csp754863rdh; Wed, 14 Feb 2024 10:16:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX3FHBtoaHqf1RkuTLc404sF5Qf+6S6uJyBWB0DnFJ2abSenEaqUSRs0vs0bUJoyZ8rN0LkmQ8Ec+Og1u3dkEHRjrIBj9yDql8ybsB6Jw== X-Google-Smtp-Source: AGHT+IHwtW3lfM9Es2wRfRMfEySoETOhS4AbOX6UprGA4X1v+c+PKRmiRHCbch47FPCS9TKBcK17 X-Received: by 2002:a05:6a20:6297:b0:19e:48e7:e664 with SMTP id o23-20020a056a20629700b0019e48e7e664mr2532485pze.31.1707934598117; Wed, 14 Feb 2024 10:16:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707934598; cv=pass; d=google.com; s=arc-20160816; b=rrL3wXifbJfkpAD7xf4p5ESSk2ncUtLvYQBo5PFztbJOhQUJQVjTh8JN5PTzuxyP1p zSK+XwNKCMFoIQ+gJr75E2f6iAjAzbbJJmOtlOWmXzG03O8uctWO1O2HmQqP2NDvWw1w GzFBkt5IeCVry4N0pmluki+63a0XPqiZWz3u6Nar9SgSb/cVIqYaQ8OTmIJzA5nqLpJO sg7pxI1pxnPFpR8IpOWF0vrQUT+LMSrInijLuBns6Hakw8nzQlATU/awRlSN8g4/gMX5 OCtZSC4YI8/4aVpaLtT4VkqC9pUpa+xE9P59+0aoKH5Jtxabxr9ZHwK+244v/FyMcoIn Pn9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=V4h1fux6xfjrxOkdhpb48pXabVzlawmwc0RlDhxYiGk=; fh=zXrxf1Jl5rRmQ7xaX9qW6ISL8dB4M7cYoT9iD1pwxXQ=; b=u0hV0zDkyPyIqkcv1WEUq08kSpuTPDESHRfENh+M+npMi2orKl7eF+aCK7KHkI4AxA cuDFM130FwuzHn860fN1+zXuuusNBfAowHQ0ljEOozjt1wIEjlqujXvTHs1xc0ir31y6 3NEawpgBpU63PB2k+TZm2/mZxmVHRf3laozhWQEyIm73tN77NDxLHpW0sMxNfn1pcARf 7kP2ZvZXGjpJIdQf+mzk6doE5NET4sdJFxbjXJGHOh/h9YnJOXnxj6GY26FeMyVrMMq0 OCs+irANxnBRRaAXm83YwRl8B5uARXnztU2+afvEHenVQKpq/OAp5w4jUc9/OkGOXvIC bYuQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=C1odWszC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-65753-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65753-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCUv7103GjL3dKx2jQaV7FI+wTEV9hV50X6o5KlNoGZVo/0eKMYS0SGzdTM7o9NQwxnX6OpV3qj1LnRZQRgxwUDpULi5rbNrtyQRr11q4w== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p25-20020a637f59000000b005dbd9c28c62si4043640pgn.539.2024.02.14.10.16.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 10:16:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65753-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=C1odWszC; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-65753-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65753-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 9B85B292D78 for ; Wed, 14 Feb 2024 18:02:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D2B4312DDB8; Wed, 14 Feb 2024 17:58:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="C1odWszC" 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 DCA0112DD84; Wed, 14 Feb 2024 17:58:06 +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=1707933487; cv=none; b=ZtO95AjOv+Nhr/qDrPuJwetnGPUA5xcNqtx+Uooc2Xwe/V39VJFfmXoOul4KLy0YGL+CkksjeLx6KRP/wQ8BG8X0Q77f5BryUV8WckNC6MJYDfibBocnGTTn4/p3oabHSqgiXJeajAWIIZncY49FueTnL0gf1chcfCSjzaWxcAk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707933487; c=relaxed/simple; bh=O6pRZuRL+P52lLJRfk2VJAJRJdaaIOt/DzPXTAga/fo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=YZurkhtL9w6G2jRAd62cKWgf+DAxB9DYdGa96bxVvQNLlxsISihLLLqv2yer7zSBKYz4adOaVQFjNvXKcWbrVNVXFtT7o3o8/rvxqHwldQpyLNfNUljrVm77x7PfHMI8RFnLuDzMLVhxqzacvtY1hprQ1JXCnUw/Qu+ZglgT53E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=C1odWszC; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id B8B0BC43142; Wed, 14 Feb 2024 17:58:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707933486; bh=O6pRZuRL+P52lLJRfk2VJAJRJdaaIOt/DzPXTAga/fo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C1odWszCRzcHQNPJoWdBZCz4vsARycHIxJSZYbMEzn/dQVOlrZDiihzitCWjht4I6 RltR25Y4se3uxyDWa8TQyPv/15diajOSK3DJk9YvgisQZ0tgJ8bAVi3kdDDNKhzfOp wKnHjfx2GQLzFm3QUEdVaxvauJgJbijuwtDW2GvC+DNlKT0UqSS2by/RJksOtBLB7K uZALUjCDMGmyQ0TTeb2X92j1A9whF/QakfZan/K1jUn8AT+C9MZZYPm1LSLTbDBCWE dFd3vHCrZ5ThbPpKQdqU+RpIZcmaLY3cE88p7wGVbukAgO3W1Qp73F1RtUQcMNNFmt VgtYR9rd2Dkqw== From: Bjorn Andersson To: LKML , Mark Hasemeyer Cc: Sudeep Holla , AngeloGioacchino Del Regno , Rob Herring , Andy Shevchenko , Krzysztof Kozlowski , Konrad Dybcio , Raul Rangel , Tzung-Bi Shih , AKASHI Takahiro , Alexandre TORGUE , Alim Akhtar , Andre Przywara , Andrew Morton , Andy Shevchenko , Baoquan He , Bartosz Golaszewski , Benson Leung , Bhanu Prakash Maiya , Chen-Yu Tsai , Conor Dooley , Daniel Scally , David Gow , Frank Rowand , Greg Kroah-Hartman , Guenter Roeck , Heikki Krogerus , Heiko Stuebner , Jonathan Hunter , Krzysztof Kozlowski , Len Brown , Linus Walleij , Mark Brown , Matthias Brugger , Mika Westerberg , Nick Hawkins , Paul Barker , Prashant Malani , "Rafael J. Wysocki" , Rob Barnes , Rob Herring , Romain Perier , Sakari Ailus , Stephen Boyd , Takashi Iwai , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Wei Xu , Wolfram Sang , 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: (subset) [PATCH v4 00/24] Improve IRQ wake capability reporting and update the cros_ec driver to use it Date: Wed, 14 Feb 2024 11:57:34 -0600 Message-ID: <170793345819.27225.11284824552535043524.b4-ty@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240102210820.2604667-1-markhas@chromium.org> References: <20240102210820.2604667-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="utf-8" Content-Transfer-Encoding: 8bit On Tue, 02 Jan 2024 14:07:24 -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. > > [...] Applied, thanks! [14/24] arm64: dts: qcom: sc7180: Enable cros-ec-spi as wake source commit: f172a341ec1f66bac2866720931594e81f02ad4d [15/24] arm64: dts: qcom: sc7280: Enable cros-ec-spi as wake source commit: a4b28b9ecc99673da875e214b1a06f1e0f0a24fa [16/24] arm64: dts: qcom: sdm845: Enable cros-ec-spi as wake source commit: a7baa25bfbfdcd4e76414f29ab43317ded8d3e6e Best regards, -- Bjorn Andersson