Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5546315rdb; Wed, 13 Dec 2023 11:44:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IH3cgRRm7QxZagaFFxA46nfbO1JrxII3fWphRK0i+MRzqyNrlHZ2QYjddPXYjry13CdfpAS X-Received: by 2002:a05:6a21:1a3:b0:190:21e:f1c6 with SMTP id le35-20020a056a2101a300b00190021ef1c6mr5241322pzb.55.1702496679326; Wed, 13 Dec 2023 11:44:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702496679; cv=none; d=google.com; s=arc-20160816; b=CPLGO9Xl888YBfIaZo0mSs5iXEjQd91KLvcxsvTniCHcP5uGuUuvtqp6BCylBW0BLt yV7ZDNQ701wrQmv8DMvNHXsBUWJwuEBwdA+suHYPL5qNT0cmrtV7MfOujShKDeCtEFPh UZGuaZ2J3IVuRMAAdpXXVor9nuipGpkNFPk0WdNKugHK2wb2CUjb3sczq+Igb3RsdofQ gKtNqVKYZ28fLrrV2/qAvNICnfY+C6k8XBPQ2kDiXjKXLk0zpi6+JoLTHEIght2Jq/ix r/sISbyUFKRJ33i+quZg1JZKrmWwEIvfyFrIwP8Pe0WNSoIt2/Yjmz5QEEJ/jLVURSxJ gAWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=iPl4EndTbjyEjJDGTahnoL8pUq5+mKzds7lqRjXNhDs=; fh=wYNpw20RJfjtHmh2BR1r0AKV2z70iSSaS3jNFHnIH1M=; b=h6vKzX0/nTHB0Quw7RXb5C1lWJ4rhLpxHQ+dmabOOcDicRAmm6Q7PGznyGP7p6SamV pjKE5x5PBSmbXR7Qcro7+CaKUnBr/D3ul4d9rC49VEqczewVDA4lClrXKrjYeMoZf0Gc z2Hqt8tmId/Mt6L1gMnP6V5lXDNE0bnfB2SUk57gr6Ddlim84q2ODnBowiPcxK0sJiT7 f4XCzgEq78b4YXHtLgEWwLHQHlnNmaTYDWT3Ptzd2Sl+iyp+bic/5QR1Gh1C3ChYElkM XAIS46BilKukpDBIoFYRb+jTlLkM3ufhMX0SzBUVfMFcEbwsADVA7Imekft7iMqfUucW Ysxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=I8Kt4IT7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id a2-20020a056a000c8200b006ce010d03d3si10146237pfv.303.2023.12.13.11.44.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 11:44:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=I8Kt4IT7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id A77CA803236A; Wed, 13 Dec 2023 11:44:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233689AbjLMToU (ORCPT + 99 others); Wed, 13 Dec 2023 14:44:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233437AbjLMToT (ORCPT ); Wed, 13 Dec 2023 14:44:19 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 919CFCF; Wed, 13 Dec 2023 11:44:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702496665; x=1734032665; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=sZ2QHsotcq+naDN2JImNNc3Oi1OQAQBgp6GO1Q4bhcU=; b=I8Kt4IT7epu2TWuc972AUo76+MD3TTiVtDTZyHvnwQd5nM9zClEIXx1Z m2IpYj1y54jv1yrxQlZjpMUhRh4YedKUZajeFpI716rNcQDKeE7dR47f6 HrikYRJBhx0Ge4GTvuEyUoNQ4qdMOGlJX0ALhoeNsQYIKqsRWJWWRPiIR oyA5bCYoVhKx3CiCUCkYNlUiB/rot8p9xQP9vJOE5kOw8olKZl/JRdqN5 mmWt5sKLVDr98hU7Sz/ECWleUZ6FF2fq3787bk4aKMCSw8odePH0nR/39 KEMdLQxYAtHAWHFrTnSJMu/zrAL2uwTulroGeTO43WUO90tH3CAuSQUNN g==; X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="461488260" X-IronPort-AV: E=Sophos;i="6.04,273,1695711600"; d="scan'208";a="461488260" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2023 11:44:25 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10923"; a="840010290" X-IronPort-AV: E=Sophos;i="6.04,273,1695711600"; d="scan'208";a="840010290" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga008.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Dec 2023 11:44:22 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rDV9X-00000005d07-14u7; Wed, 13 Dec 2023 21:44:19 +0200 Date: Wed, 13 Dec 2023 21:44:19 +0200 From: Andy Shevchenko To: Mark Hasemeyer Cc: LKML , Raul Rangel , Frank Rowand , Rob Herring , devicetree@vger.kernel.org Subject: Re: [PATCH v1 3/6] of: irq: add wake capable bit to of_irq_resource() Message-ID: References: <20231213110009.v1.1.Ifd0903f1c351e84376d71dbdadbd43931197f5ea@changeid> <20231213110009.v1.3.I29b26a7f3b80fac0a618707446a10b6cc974fdaf@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231213110009.v1.3.I29b26a7f3b80fac0a618707446a10b6cc974fdaf@changeid> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 13 Dec 2023 11:44:36 -0800 (PST) On Wed, Dec 13, 2023 at 11:00:21AM -0700, Mark Hasemeyer wrote: > Add wake capability information to the irq resource. Wake capability is IRQ > 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. No dedicated irq is defined, or the irq is marked as dedicated by IRQ > 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 API > willing to conform to the above conventions. > > The ACPI subsystems already provides similar apis that allow one to APIs > query the wake capability of an irq. This brings feature parity to the > devicetree. ... > +/** > + * __of_irq_wake_capable - Determine whether a given irq index is wake capable IRQ > + * The irq is considered wake capable if the following are true: IRQ > + * 1. wakeup-source property exists > + * 2. no dedicated wakeirq exists OR provided irq index is a dedicated wakeirq IRQ > + * This logic assumes the provided irq index is valid. IRQ > + * @dev: pointer to device tree node > + * @index: zero-based index of the irq IRQ > + * Return: True if provided irq index for #dev is wake capable. False otherwise. IRQ @dev > + */ ... > /** > * of_irq_to_resource - Decode a node's IRQ and return it as a resource > * @dev: pointer to device tree node > * @index: zero-based index of the irq > * @r: pointer to resource structure to return result into. > + * > + * Return: Linux IRQ number on success, or 0 on the IRQ mapping failure, or > + * -EPROBE_DEFER if the IRQ domain is not yet created, or error code in case > + * of any other failure. > */ You see, your new text is even inconsistent with the existing one... -- With Best Regards, Andy Shevchenko