Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp717484rdb; Sat, 6 Jan 2024 06:18:47 -0800 (PST) X-Google-Smtp-Source: AGHT+IEJ6CRcsML93zkosj6TDYQ4eNDFEK94oRjrR6Ytwf3HrlC8BEwb6zXOt96/F6rwyqd2uCtU X-Received: by 2002:a05:620a:d8c:b0:781:6d93:5d0b with SMTP id q12-20020a05620a0d8c00b007816d935d0bmr1180747qkl.124.1704550727368; Sat, 06 Jan 2024 06:18:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704550727; cv=none; d=google.com; s=arc-20160816; b=yoLd4htMF80sGBJET6qeEmjptuI43wY4yGrOCtWEwerIaoZ/4hJ+D3hGr7dTGXR16A GV6F6uBOpe1qgEAX7QfLOAUYp94tza+4vncz4/hYXzmOMAs86JkgfCLOsnLcqAsXHBW1 OdGiS8jGRm506QEdHClyy8Rs8JbQn719oBHKhDzHpXECUlzT5swGSFN8gUD3F3p4s9jQ xnK3rwGy+YyfbxmVb2Sx8Htm13orrt6hq1/1h2O+ElBSrzKU65LrknTTLcGd3WxdQ6qd IEXIssJaRQsZ8GD3uDz6dbELDCX8uFlmewwmmBmZyldqAlyZQCqadx0DIBqp0pvvOs1r eZDg== 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=uhxcvteQ/WxZ5FdcnsCbvAzN8knXC2nMGvqtegcmzq0=; fh=UljOOW8jqjjIMcNqO/f0KRglyfwpgFftb69WcNodl3A=; b=hYmBroqgspYBPIkUyf8PijYPrv9hoKJvJgDOPhVhtJ/3Lo/N3Jge+OEGRPDNpgmJ54 sa9mbwpA4h0aUnvX2bsH3MLYws7C+s1wGnWYRtuW6fNOonegeneIVRm8eR5gd7ngE/8Y 29gJECsFFh/xgSDUGkFZo43XEZERK07TWU1+5ttV4btDM0dgsSBw+y6d73s4NlzfxIbZ SXPO42/X6XAxpjwUQ5nvhgQ2Q6Ogaopj+dKVkx/yuyYVOkWjRD7AxlwB9DPrWAcBoIwN MX6yiyKgIv0OqffHsymjeb5ypqUfznhu1H3pXfvh+dTnPHkAM1c3BExvAjhGaAg9dhvv rmSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fBU+SB2N; spf=pass (google.com: domain of linux-kernel+bounces-18594-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18594-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. [147.75.199.223]) by mx.google.com with ESMTPS id x23-20020a05620a0b5700b007830a0100c9si3204409qkg.276.2024.01.06.06.18.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Jan 2024 06:18:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-18594-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=fBU+SB2N; spf=pass (google.com: domain of linux-kernel+bounces-18594-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-18594-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 2239D1C21028 for ; Sat, 6 Jan 2024 14:18:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7136848A; Sat, 6 Jan 2024 14:18:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="fBU+SB2N" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 3762C847B for ; Sat, 6 Jan 2024 14:18:32 +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=1704550714; x=1736086714; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=IZCz/MZA6E72BOm/MHR3k5Pv0uD88Tp+9lsZbl+gfxE=; b=fBU+SB2NBr1tdqCcUwOsk+6L5l5BGvOP78Vx/U4+reWKnXzobxUWmOKg O34iLDPlOtAj9HtZbcbqav0C+ViTa3Dbbzk6lklAyu4DclZhZhdg0Hso1 Z0sBwfDb1bzclkCqpYUmhEbwjBqXL0MWOupC7p5iiaffLc/y3QDKSnDoR 4ao4akMu4Dd20n0nAIMYvUAlJKfTkV/+m5GuoWcVcVQgJi7hyw5LtXG0r 4pc2F2Hn5meexpU+L+OoVX2ASJvVUKeOe9qQ3k4qYPoS7isMRUZ6u6xQh KWWdHZZ5RcwebekPgBTMV1JBMsdI/U4SS7K3My8E3EL9mqRyyHXlYI60f Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10945"; a="16266400" X-IronPort-AV: E=Sophos;i="6.04,337,1695711600"; d="scan'208";a="16266400" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2024 06:18:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10945"; a="954223935" X-IronPort-AV: E=Sophos;i="6.04,337,1695711600"; d="scan'208";a="954223935" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga005.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jan 2024 06:18:28 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rM7MG-0000000BvMv-1HXB; Sat, 06 Jan 2024 16:09:04 +0200 Date: Sat, 6 Jan 2024 16:09:04 +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: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Wed, Dec 27, 2023 at 01:33:14PM -0700, Mark Hasemeyer wrote: > > > - 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). > > Sorry, what's unusual? The declaration of a separate 'platform_res'? > If so, I introduced it because I wanted to avoid setting 'r' if > 'irq_get_irq_data()' fails below. Defining the variable in the depth of the code. There are exceptions, but usually we follow the style that definitions are grouped at the top of the {} scope(s). -- With Best Regards, Andy Shevchenko