Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp200807rdb; Thu, 21 Dec 2023 07:00:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IGSOXF7s+7FjN6hTvVuzubYbE6MzH2lRHq4VlUTVMkw75Al9cUGBacNXmrDMZr2ycxY1bjB X-Received: by 2002:a05:6a20:4f93:b0:194:f5e8:199a with SMTP id gh19-20020a056a204f9300b00194f5e8199amr899339pzb.27.1703170807686; Thu, 21 Dec 2023 07:00:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703170807; cv=none; d=google.com; s=arc-20160816; b=rOTomvDCrGVqR0QavsAw7uUrRCIK8Kg6nvYD40swkfKmX3H9IfOszXAINoRsheoq6K ipxTzlp0ujWEkcUMADKVdxtdSg06u26ri1qCWaFC1t0XP1LvAao/rW/g2k5jSIy/JlZf a5pDk7jgDF+XoVR22PrbUNczFK+Pw/NG991wdp1YD58xhfbxS0R1oLHpSpWsPW+rsBLW P3f2nFIjtVpDBm2fQR+LvFcifySnts8S455CJGtC54Q5aU3tr+9tJgrnmxQVCSM0QSOd QHExUBPJGQvWiy0nZzkP3kYHQMRxxh2lxRZHLUf/M+pMJ+NgxyNfNVsJm9tLNrTniCEG PBmg== 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=4BuhUavgcEs+udOFWkWaoPyTPd8smyZW8+wI7egabtI=; fh=UMZpetpNwpy5frBwEZR5viEZMD8SSuImltP1sBiwzxs=; b=CqU+jGDF6dJwuAF0Hhbf5YxNcfUrPKuCOn6ldxR8QfeTTO56K1qdpuUwa3BRIengHY SjJawIDUvs4rrOwVfISNXpayyKFp9hfK1KiLOD0CggA9pOj+npTwc3PEbwBcB6U4PxDb o/gfvtBcB5v0JMsKyd+u4kOHpLmJiaxnM6G1VP2mStONvO8q94NbwM8tS1DqxTL3Z165 QY9zQ0fKAz3g0+idl5jlULTQn+3XScOpBtuflhykUf/e1dEJA3MzLT3AX9C3GomWOWka idjhToPLLmg2PL4+mqOnpaEFw0RSQp/4xYwUp96olBCmG0ZSTP6oa7ndD9Ip5X+cuKZv trAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CVERI9Cz; spf=pass (google.com: domain of linux-kernel+bounces-8604-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8604-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id jo4-20020a056a00908400b006d97c867eb5si530091pfb.94.2023.12.21.07.00.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 07:00:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8604-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=@intel.com header.s=Intel header.b=CVERI9Cz; spf=pass (google.com: domain of linux-kernel+bounces-8604-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8604-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 52710282143 for ; Thu, 21 Dec 2023 15:00:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3DCE405CA; Thu, 21 Dec 2023 14:59:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="CVERI9Cz" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.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 684B4539E4; Thu, 21 Dec 2023 14:59:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1703170797; x=1734706797; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=OoapTPukjShzEohQxJsr9nMKqKZQxWObxkyyNaa2x2o=; b=CVERI9Cz7w/UOXBmVypCObeprp4Dik3z4YE2uu/CDu25zSo+ajYIN6CQ nytYl/+NNNFY5R9GjXge6OnWy9k7EBa2kuDNGz6vVyrPcdG8ByMNa00je gp2CI8lAJLAdwkervr/4/hUCt9yEftljlJYR8+Bc+pCQ6oANjCa3KyEn7 yjtsSni0xMtzF+uGGlTeQCTF7PpIQAJhhBgUhJKteswSNGFuXzylD4Cv2 2ik3aUbpYdcibEUzhbJ35OlCQpQtD1c1ctMUQYGDcKcl1Jw+gMZg3aJYa XpYztKL3w2spkJOyYmyfdCizXgAvG65INdT8hnPFqMExcPS/1qUnUsHwD Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10930"; a="2811584" X-IronPort-AV: E=Sophos;i="6.04,293,1695711600"; d="scan'208";a="2811584" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2023 06:59:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10930"; a="900120139" X-IronPort-AV: E=Sophos;i="6.04,293,1695711600"; d="scan'208";a="900120139" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga004.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Dec 2023 06:59:49 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rGJWv-00000007rjT-2rCh; Thu, 21 Dec 2023 15:56:05 +0200 Date: Thu, 21 Dec 2023 15:56:05 +0200 From: Andy Shevchenko To: Mark Hasemeyer Cc: LKML , AngeloGioacchino Del Regno , Krzysztof Kozlowski , Tzung-Bi Shih , Raul Rangel , Konrad Dybcio , Rob Herring , Sudeep Holla , Daniel Scally , Frank Rowand , Greg Kroah-Hartman , Heikki Krogerus , Len Brown , "Rafael J. Wysocki" , Rob Herring , Sakari Ailus , devicetree@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH v2 20/22] device property: Modify fwnode irq_get() to use resource Message-ID: References: <20231220235459.2965548-1-markhas@chromium.org> <20231220165423.v2.20.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: <20231220165423.v2.20.I38ac58ab04985a404ed6551eb5813fa7841ef410@changeid> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Wed, Dec 20, 2023 at 04:54:34PM -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 Double space when other lines have a single space. > example, whether or not an IRQ is wake capable. Suggested-by? ... > -int fwnode_irq_get(const struct fwnode_handle *fwnode, unsigned int index) > +int fwnode_irq_get_resource(const struct fwnode_handle *fwnode, > + unsigned int index, struct resource *r) It's perfectly fine to replace ) by , on the previous line, no need to make it shorter. ... > +int fwnode_irq_get(const struct fwnode_handle *fwnode, unsigned int index) > +{ > + struct resource r; struct resource r = {}; ? > + return fwnode_irq_get_resource(fwnode, index, &r); > +} -- With Best Regards, Andy Shevchenko