Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3502968rdb; Wed, 27 Dec 2023 09:20:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IHqUzhgmcMstboSu4xf4ugpwSJsaB77NlppMeK8+Uf4JmrXDGxhMVSnT4k0AzUjNZXpMHxP X-Received: by 2002:a17:90a:da02:b0:28c:8d6b:2efb with SMTP id e2-20020a17090ada0200b0028c8d6b2efbmr1856092pjv.30.1703697613085; Wed, 27 Dec 2023 09:20:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703697613; cv=none; d=google.com; s=arc-20160816; b=1Fy6vEWbdyHtBE4FkIvlctflZqBBw5Mup8pR6I3uSVIAeddc9lkfVo72QZCN67Bh5a ULDiCYtO2fhRyQjktOEF09DEP+31QceQxjPKdoLYwKcoMq/nfgCsUaLnhOyTr9zMd3Vs 9A/A/sc5mTh5bi93rOrSubvw4PrpPM9beh8SDwVSXFzJWwT+qxx+c0Ba0Hk0snGQyT8i QhlwF3Ucd8vml+7edXokHdju++L8J44mALDMuNhJv+QeZ/JA/yrzCpgBzfcBm3fIGB/e 2ZXzBfSDIwUkmjW1o1ONiHWff+IU/PK6O5qTJ2LEw58x3UVkeT2f/p3XeRPcDrDA/9P4 ej0g== 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=77yjxSuZnqsWvJJZtIHiAv0DGtAsJPrHSP3nw0TKJw0=; fh=xddC2CMLeCeDpIgcQVY4BsK7Fmj/9bs7cAazaYoHxQw=; b=l5ifGL/DTTTgI6ct9SarCPgF2OYSdZpAyNQNlCWGBek/CiwmLJklz8UzJKymyIfMbu 2iGA5wFF/1ChXLptaTWWSsLYi4baE+FunSgN5TWg4NLqwIKHnFXJ0OyUfFV6gjs52xMB fNuSbhaz6mpLiHslAzW2ibU0TTnsfMir561XyWRNzQzqtDsRoI2MIg/9qF0RGQXbB83q piWtJThYnL2T1wb3tYFCX/2zT7M3tBCU9H2RUi6452QCpmYNGzx4rT8rMKhkVyBWcH27 4rB9T5LYXjEfvckmRy/C2UJNNDMnouldhUd/w+paBaBDdcZiv7Wwf0sftINSov33gjw8 IcVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EqUeSMdZ; spf=pass (google.com: domain of linux-kernel+bounces-12168-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12168-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id x4-20020a17090aca0400b0028bf1c4a1e5si11009412pjt.113.2023.12.27.09.20.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 09:20:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12168-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EqUeSMdZ; spf=pass (google.com: domain of linux-kernel+bounces-12168-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12168-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 135EB282BC6 for ; Wed, 27 Dec 2023 17:20:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB65046459; Wed, 27 Dec 2023 17:20:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="EqUeSMdZ" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 DDE504644B; Wed, 27 Dec 2023 17:20:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703697606; x=1735233606; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=uh4fAirC7kTManarC9UXX0TN/caPGLtg+xbkuzBlZf0=; b=EqUeSMdZE1Nb4wQMY8Qpc/8dwkdN7x/SK0IC45NdtJsm/ou4slutndj5 dJdygIZ4Rbi8zWRmPIoqlL6nzD9wGolJ7jCCo9FEuaiajlFt0Rut9MUJU FmgqTTwFiuF35GADLlyhMteM1FH//FIL0v8MQA3J4Fqi6aFlyKKkbjzYd hTBlKgRbAchUDYrnkncMFfIS1WH165bHU8qO85q8xOqYJkzAr3B9UVy6R xImq95EoVqiTFXaX3Oe/qyE2O9IuJa/PidWfUm3DDr1vhnMgwREd5177W CIxvXCRoO6c99W/aHZVwgHVinqA8h/b4l4N6qrDpuVBANygu4ctkHwyHa Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="3273404" X-IronPort-AV: E=Sophos;i="6.04,309,1695711600"; d="scan'208";a="3273404" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2023 09:20:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="951551797" X-IronPort-AV: E=Sophos;i="6.04,309,1695711600"; d="scan'208";a="951551797" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga005.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2023 09:20:00 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rIXZV-00000009TPY-2Wuc; Wed, 27 Dec 2023 19:19:57 +0200 Date: Wed, 27 Dec 2023 19:19:57 +0200 From: Andy Shevchenko To: Mark Hasemeyer Cc: LKML , AngeloGioacchino Del Regno , Krzysztof Kozlowski , Rob Herring , Konrad Dybcio , Sudeep Holla , Raul Rangel , Tzung-Bi Shih , Frank Rowand , Rob Herring , devicetree@vger.kernel.org Subject: Re: [PATCH v3 18/24] of: irq: add wake capable bit to of_irq_resource() Message-ID: References: <20231226192149.1830592-1-markhas@chromium.org> <20231226122113.v3.18.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: <20231226122113.v3.18.I29b26a7f3b80fac0a618707446a10b6cc974fdaf@changeid> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Tue, Dec 26, 2023 at 12:21:22PM -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. ... > + u32 irq_flags; > const char *name = NULL; Don't know if OF style requires reversed xmas tree order. If so, this should be const char *name = NULL; u32 irq_flags; Otherwise looks good to me, FWIW, Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko