From mboxrd@z Thu Jan 1 00:00:00 1970 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 61F3A760B8; Thu, 21 Dec 2023 20:44:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ThAR0Zp2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1B51C433C8; Thu, 21 Dec 2023 20:44:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1703191483; bh=C4ND45O9VtPdCGNJbKtbMUJR3Ewk4KrDe0AszFJgI1g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ThAR0Zp2s0BlXasxoqe33EdMx7uI1VwY7bMLPoQWjvgdLlZLx6FC7vKTSQ36Oweg7 FwHF1Egu0a+Sbchnw8lN6yK1zN3YTNdreVvWzLygo8ZSP9iJL4T1E0Kz1xi+mlXgxq 3ydHgZM6fQhaWXwO4leH2bLvTcjbv1s1F1mRFqNWP/mceguB7ZPUvrNiCDfuHI8uR0 IVbjUjlXGqG0GtvJfQwMn04i+djj0nxNNpfyzG1mOYa7y05GCjOfjplLrKrelHqF8j amA3kEgvreefhUeG/sEBnHg0sUqp2cufG8hZZBBY5Jrn6iM56koQtUpr+k/O9McPfZ Yjqx5JudQPJ/A== Received: (nullmailer pid 62496 invoked by uid 1000); Thu, 21 Dec 2023 20:44:41 -0000 Date: Thu, 21 Dec 2023 14:44:41 -0600 From: Rob Herring To: Mark Hasemeyer Cc: Krzysztof Kozlowski , Raul Rangel , Frank Rowand , devicetree@vger.kernel.org, Rob Herring , AngeloGioacchino Del Regno , Andy Shevchenko , Tzung-Bi Shih , Sudeep Holla , Konrad Dybcio , LKML Subject: Re: [PATCH v2 17/22] of: irq: add wake capable bit to of_irq_resource() Message-ID: <170319148087.62439.16254774276035197827.robh@kernel.org> References: <20231220235459.2965548-1-markhas@chromium.org> <20231220165423.v2.17.I29b26a7f3b80fac0a618707446a10b6cc974fdaf@changeid> 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: <20231220165423.v2.17.I29b26a7f3b80fac0a618707446a10b6cc974fdaf@changeid> On Wed, 20 Dec 2023 16:54:31 -0700, Mark Hasemeyer wrote: > Add wake capability information to the IRQ resource. Wake capability is > assumed based on conventions provided in the devicetree wakeup-source > binding documentation. An interrupt is considered wake capable if the > following are true: > 1. A wakeup-source property exits in the same device node as the > interrupt. > 2. The IRQ is marked as dedicated by setting its interrupt-name to > "wakeup". > > The wakeup-source documentation states that dedicated interrupts can use > device specific interrupt names and device drivers are still welcome to > use their own naming schemes. This API is provided as a helper if one is > willing to conform to the above conventions. > > The ACPI subsystems already provides similar APIs that allow one to > query the wake capability of an IRQ. This brings closer feature parity > to the devicetree. > > Signed-off-by: Mark Hasemeyer > --- > > Changes in v2: > -Update logic to return true only if wakeup-source property and > "wakeup" interrupt-name are defined > -irq->IRQ, api->API > > drivers/of/irq.c | 32 +++++++++++++++++++++++++++++++- > 1 file changed, 31 insertions(+), 1 deletion(-) > Reviewed-by: Rob Herring