Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp575245rdd; Tue, 9 Jan 2024 12:48:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IFUJ2lWgc5oPA+KK5gGRv6xdxf62u6Tu3a6gnaAG03Qws3O9sn3ibUC/dBBgNaQk2zd4Xrr X-Received: by 2002:a17:903:110d:b0:1d4:273c:4c2 with SMTP id n13-20020a170903110d00b001d4273c04c2mr3794096plh.61.1704833298021; Tue, 09 Jan 2024 12:48:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704833298; cv=none; d=google.com; s=arc-20160816; b=LIiDDFY0jKAbw1feXJcWjTdnfmAp2MG4MwzJfuchheqzAqacYWrDBhlAHXyZEoxqzt CXt3hKDES/rZasP4Id8wiDnJtJRd6eHv5xcD9G/ftTMOd+5lcVv01XPDWoq7MxSQvu4N 98KNradomtYlleezcaPmovDQYSIBMj6Xy9bpTboqIBuRMkay1paLaorYVKiCDXFtNcX2 l6PXfpWcu0I6zSBXxMO6WINCWFBqgn0hAENl1fK+08ljtDPwyW9loUOEbYtZRuoZSc1W a/w1kW2NtadDyCcfWFAA2BUkxIJ4VtgInAw6YZP9x9qdt2NIhDWswNWsSWaytlLOeZaV jv0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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=NSHVLp0uJ7wIGrIpRfl7jRxK9FhB7gPMMcRhhOKgmpI=; fh=3hW/v3ZaQwWF/yAFY4e91O951XIFFYulaYldI3CfmOI=; b=j+npezgRrMnYOQxi9YuSotdirMdjrZmcagHg8dmwdRxOX5sgb5Mu9/fDo6n9sfqb1F 09RhaK3YP18/qIFWifk+00L/yo1waJhzLUpBVyll5Z+X+pRwVUHeQogj4N62lKIhq5on W21lceE90pCxVpci2bGiRe8xW+A/9l9+84aMTpYkrzzLz3qTwHggeABmE6f1k5OxuYJF jbw7PTcoNLq58zLRIVDeZ7fPIV473D45JqdDvkPX6a9LKK6sNK2sA3ERe9+cqBEDaaCB woA8tKgOOYUGQcx0TUqPhkGuOPQMlSkljjfk0cTPAJvB06w5w3L0RDuXMwG3oLW95Tnq o9rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Bmin4gO1; spf=pass (google.com: domain of linux-kernel+bounces-21399-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21399-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id jv3-20020a170903058300b001d495d738f0si2044066plb.20.2024.01.09.12.48.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 12:48:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-21399-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Bmin4gO1; spf=pass (google.com: domain of linux-kernel+bounces-21399-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-21399-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4CDD5B248BD for ; Tue, 9 Jan 2024 20:48:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D20E23D991; Tue, 9 Jan 2024 20:47:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Bmin4gO1" 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 0A1C23D978; Tue, 9 Jan 2024 20:47:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A443DC433C7; Tue, 9 Jan 2024 20:47:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1704833278; bh=QteKBQGsANCi2lfyGrXPvlyFVGCr0qwIbw45fnPbvqw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Bmin4gO1ml/3fuxC5x1qnS0URvLIYr2G6veI8G49N+D8xVrYnn0D8u7qUYIXqyvBc PFVL2fWoTiNkIaxWfCOckz9oTs+VuF5X/nVO7lAJsxTx0PZ/0rCX/8tYblCvfP+p09 vMcIxwK6Yf/ntv7LlKo3t3/k+ebm11i5WrupmbF9Q6UviIL5YpU2hmq/LwkjVzQ3AL IejDYl49avcaMPrXcO/7N3ERTsObBiEqMriFHFlX/K/Q1M/Sb3ZwL19xbx+efNfR+y EbQXg2MiL3Mo+0oHRMFuYGiBPoilld5KodlfCYkBuciI0U8SbAFt7f3v9imliIhQn2 pF+bFmymv61Vw== Received: (nullmailer pid 3193485 invoked by uid 1000); Tue, 09 Jan 2024 20:47:48 -0000 Date: Tue, 9 Jan 2024 14:47:48 -0600 From: Rob Herring To: Mark Hasemeyer Cc: Sakari Ailus , AngeloGioacchino Del Regno , Daniel Scally , Raul Rangel , Greg Kroah-Hartman , Heikki Krogerus , linux-acpi@vger.kernel.org, Andy Shevchenko , "Rafael J. Wysocki" , Andy Shevchenko , Len Brown , devicetree@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski , Tzung-Bi Shih , LKML , Frank Rowand , Sudeep Holla , Rob Herring Subject: Re: [PATCH v4 21/24] device property: Modify fwnode irq_get() to use resource Message-ID: <170483326744.3193407.6920780554098441341.robh@kernel.org> References: <20240102210820.2604667-1-markhas@chromium.org> <20240102140734.v4.21.I38ac58ab04985a404ed6551eb5813fa7841ef410@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: <20240102140734.v4.21.I38ac58ab04985a404ed6551eb5813fa7841ef410@changeid> On Tue, 02 Jan 2024 14:07:45 -0700, Mark Hasemeyer wrote: > The underlying ACPI and OF subsystems provide their own APIs which > provide IRQ information as a struct resource. This allows callers to get > more information about the IRQ by looking at the resource flags. For > example, whether or not an IRQ is wake capable. > > Suggested-by: Andy Shevchenko > Reviewed-by: Sakari Ailus > Signed-off-by: Mark Hasemeyer > --- > > Changes in v4: > -Add Sakari's Reviewed-by tag from v2 > -Remove ioport.h dependency in fwnode.h > -Use Andy's @linux.intel.com email > > Changes in v3: > -Add Suggested-by tag > -Initialize struct resource to 0 on stack > -EXPORT_SYMBOL()->EXPORT_SYMBOL_GPL() > -Remove extra space in commit message > -Reformat fwnode_irq_get_resource() declaration > > Changes in v2: > -New patch > > drivers/acpi/property.c | 11 +++++------ > drivers/base/property.c | 32 +++++++++++++++++++++++++------- > drivers/of/property.c | 8 ++++---- > include/linux/fwnode.h | 8 +++++--- > include/linux/property.h | 2 ++ > 5 files changed, 41 insertions(+), 20 deletions(-) > Reviewed-by: Rob Herring