Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3508761rdb; Wed, 27 Dec 2023 09:30:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IHRt2WylvRVvcad0JWAIyZZEwG1RenrEypynS5oMZZrgJmU11niNbafG+ITftNbxAsSWbeY X-Received: by 2002:a05:6102:3d26:b0:466:f1ca:90e8 with SMTP id i38-20020a0561023d2600b00466f1ca90e8mr2555656vsv.28.1703698255864; Wed, 27 Dec 2023 09:30:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703698255; cv=none; d=google.com; s=arc-20160816; b=vX6xMYMZ090ZP+YwrYvzb/JPdt+ZaWRN8mhy5EvEPQ4MQRPhzhQ+O6jLLqKHO+TfRY d2TviyVK5aJBP+0oJOGTr2rf/rF2pwl66pJVq8xHe71VmuFf5qtjhkiNS9R41GRIklmX hYi02ZlmyaO9gx/PyEvxH/Ew+tz7J1aBjEJGm2eWh7K66ENV3Zezdrf+HonPMeGNlSaq JlowHbaCXRCupiZPFMCVYAeSbUVH77dRLG4uyO4igoIYIGAqvFpNy9sLxGY2B7uoHtUy b7xzb0VNRKExQoGb3LlluxKH7rHxEHU/qdnOnSquP765AipbLQMznbDhytlQ1e0UytX8 w7Fg== 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=lVierslKlDHsvB5kaDPIfdW5hkKMSQTuS68e8+MLFe8=; fh=UljOOW8jqjjIMcNqO/f0KRglyfwpgFftb69WcNodl3A=; b=OhKjDd0CpOMTRrK4NqX6afeaOjZG2eT8qj46WLufKDhHjfFj2cWPByEjCqxwHW1xS+ fDeDcHu6dW8YEUkbngJlPPy04vj2wkufGA9KtBOxDX8ZbbBYsSKDfyhrFaoOICJ0DSGX l91+86Owa4BD1dTOumpOAR3QlZnthfsYjwTJtm6DtnmLD1RB2uwJy/rMZ3WqIKwdnhAb X2K/0A3Xv6WZZCbIuXiNqZatkcN2hczFVY09N0jKMofIXB0HQTnnLqudHw6+bgsvQj18 bVw0oY/9mZ+GXbQCSxZH5jyI3mdVfcv+IDthPpt1fszW5SYYA7KOIc4hIBpW5vgqhsoq ijUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ShnHw3GT; spf=pass (google.com: domain of linux-kernel+bounces-12173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12173-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m8-20020a0561020ac800b00464a258327csi1891809vsh.603.2023.12.27.09.30.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Dec 2023 09:30:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ShnHw3GT; spf=pass (google.com: domain of linux-kernel+bounces-12173-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12173-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 90EEA1C22412 for ; Wed, 27 Dec 2023 17:30:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 296A646529; Wed, 27 Dec 2023 17:30:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ShnHw3GT" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) (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 CB8DE46459 for ; Wed, 27 Dec 2023 17:30:47 +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=1703698247; x=1735234247; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Wy1NLuZqdOXqhCmFW7iRCfp2r7W8SPwyReyYcr2ms80=; b=ShnHw3GTZ0YksRj4uRquwwyLlntG31nJmbQ9PUaTjIpI/ialQGGDwH94 iwMmMqy1cx56zW5ND7G/rf7b8Q4WDB3VSLEp5QVGyP0aPPclrb22cPJ3v R/ZLQIn+MyeEa5D7nzkkRvmHfkC6JDphRKqc40N18df296nAez+YIleRK U41wqrEz9dmS3IzIxJPET2UNLRAeclrzvUEbRytqtvxVQqiFfeeQHHhaG Tw9BPEaODy/qYmwrs47HUQachexZuScJ9QYlpuVx60YqG+tThShAvENvg AUP0HHu4s98NiJMf19Soo4EPe/1gKu6hOr+5nqhTM8FpGRlkLe9e9yOmQ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="393618408" X-IronPort-AV: E=Sophos;i="6.04,309,1695711600"; d="scan'208";a="393618408" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2023 09:30:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10936"; a="1109690141" X-IronPort-AV: E=Sophos;i="6.04,309,1695711600"; d="scan'208";a="1109690141" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga005.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Dec 2023 09:30:26 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rIXjb-00000009TYB-0ZHy; Wed, 27 Dec 2023 19:30:23 +0200 Date: Wed, 27 Dec 2023 19:30:22 +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 , David Gow , Greg Kroah-Hartman , Mark Brown , "Rafael J. Wysocki" , Takashi Iwai , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Subject: Re: [PATCH v3 23/24] platform: Modify platform_get_irq_optional() to use resource Message-ID: References: <20231226192149.1830592-1-markhas@chromium.org> <20231226122113.v3.23.Ife9ebad2bbfbab3a05e90040f344d750aa0aac7e@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.23.Ife9ebad2bbfbab3a05e90040f344d750aa0aac7e@changeid> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Tue, Dec 26, 2023 at 12:21:27PM -0700, Mark Hasemeyer wrote: > Unify handling of ACPI, GPIO, devictree, and platform resource > interrupts in platform_get_irq_optional(). Each of these subsystems > provide their own APIs which provide IRQ information as a struct > resource. This simplifies the logic of the function and 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. ... > - struct resource *r; ... > + struct resource *platform_res = platform_get_resource(dev, IORESOURCE_IRQ, num); This is quite unusual (as far as cleanup.h is not used and there is no place for it here). > + Unneeded blank line after fixing the above. > + if (platform_res && platform_res->flags & IORESOURCE_BITS) { > struct irq_data *irqd; Otherwise LGTM, Reviewed-by: Andy Shevchenko -- With Best Regards, Andy Shevchenko