Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp564185rdh; Tue, 19 Dec 2023 07:11:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IG8z177U/Lx8Asw19TFhndxhBSp9A+V0dtw12G9OUHi4yO7BvSNBy9KH+iqAyKGbLA8TS8o X-Received: by 2002:a50:8e53:0:b0:553:2f6b:c23f with SMTP id 19-20020a508e53000000b005532f6bc23fmr2258759edx.22.1702998674854; Tue, 19 Dec 2023 07:11:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702998674; cv=none; d=google.com; s=arc-20160816; b=Hs/k+ZlO9xSXcpzFU0fT0XLSc9GK1eLHAWGLs8ADZ+9UferEQ9UWE2h516lcQQZQf5 2yiheh7hVI+D70fvHNeaLQ/ZM3CSUh+rHdei/0xFiCLEFqBJhTl9STEAq8bwpaeOjPiy dDCo0uGJVyiZHPdCmR9sgkZkAzwV7dN2vpSPNtzrpz2YT4+NTB7c7qlyrMcVIObdkbU0 pHIU6EPhTSRKNxXJzmq5olUBYGS+JshadCg77YJIOGKXDXJbbX8HIZVWyC6VP6spJrZ2 JM266ZOz9LBi0e/pJGLH+sNMZmJP8p735JpqvbtQITVbRj1dHmIBEgyprhw4PDQ5zQqZ gPJw== 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=t2fDNHjrMN+coc3B74LfwEK2A3c/BP7cF+7gOn2YMCo=; fh=8xtHa50zkXHxp7DpedwF8g6hulhYO6h/3RAaKW3+iV8=; b=Ba+aYbWhVMapHaZfiIOppcsT9TidgjljNfQTBl+f41l6FGZjA4YWKEcyzKAdnl89rC nANLl91V7PS096GhTf1MjUZUuNZGObybxyCiOJd+U6tgb00hHcw28t6E+v6D/nU23IHD 3uQ+v4eEwlCdB2ISIokvPXUxoqpCmbXobRCcMwcVZfmn0bzat4lOcESPCi7XF4k2+Iwo JbO2Lqaf4OFLITGbnXYKOxGyP36TWBoM5WegTN1wfPthzxs1pqENb4CRwjlEjVCFakWU +qB8muNAD6krVGNDRJhZpX1eBFe3vUidv9Ud79TCnGyFIgirzpXMN5Y3dPncGtARHT8g 7jvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=g7A2r5Mx; spf=pass (google.com: domain of linux-kernel+bounces-5440-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5440-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b14-20020a056402084e00b00551d59defbdsi6854314edz.317.2023.12.19.07.11.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 07:11:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5440-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=g7A2r5Mx; spf=pass (google.com: domain of linux-kernel+bounces-5440-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5440-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 771341F2910D for ; Tue, 19 Dec 2023 15:01:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BA0361C6AA; Tue, 19 Dec 2023 14:58:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="g7A2r5Mx" X-Original-To: linux-kernel@vger.kernel.org Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.31]) (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 B65B51C6B4 for ; Tue, 19 Dec 2023 14:58:14 +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=1702997894; x=1734533894; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8ZStjGtj5WfBfCDkqls/ScpqPireTYPCCD16wOglLws=; b=g7A2r5Mx7zkY00qInmFd9v9ireqcxeZA2z2l0XMkWSkHVHK6cgubavJ2 Vxo9lnWEJGbbyBWY02YUTT02ALsvYG4vjXD9Tqm7ZjXMrEb9ttt95sq+V 3Xv7wh66gZDi2qTfhpzPrptSqPyijPzQx8s5jduAecGOJPNGxfa1mNwH3 iqUYGJBH5kAZAXLDwrznYsSc3t9Tq5N4w/RkW8t7imV1NaFGyoFZFwvAP kfwe7depu+UEuN26zbiHD2qexrJMqH/w8pGfNbvtFwZIaJmED1Sh3Rm4X SJvxP+6C3OxQHaQrFBoto9iH1h9xcF09Amm9XFoGEL075dgHE0Eqj4gUb Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10929"; a="460011100" X-IronPort-AV: E=Sophos;i="6.04,288,1695711600"; d="scan'208";a="460011100" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2023 06:58:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10929"; a="866662131" X-IronPort-AV: E=Sophos;i="6.04,288,1695711600"; d="scan'208";a="866662131" Received: from smile.fi.intel.com ([10.237.72.54]) by FMSMGA003.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Dec 2023 06:58:11 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1rFbXs-00000007I42-1EG5; Tue, 19 Dec 2023 16:58:08 +0200 Date: Tue, 19 Dec 2023 16:58:07 +0200 From: Andy Shevchenko To: Mark Hasemeyer Cc: LKML , Raul Rangel , David Gow , Greg Kroah-Hartman , Mark Brown , "Rafael J. Wysocki" , Takashi Iwai , Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Subject: Re: [PATCH v1 5/6] platform: Modify platform_get_irq_optional() to use resource Message-ID: References: <20231213110009.v1.1.Ifd0903f1c351e84376d71dbdadbd43931197f5ea@changeid> <20231213110009.v1.5.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 Mon, Dec 18, 2023 at 01:23:35PM -0700, Mark Hasemeyer wrote: ... > > Consider combine the above to use fwnode_irq_get() in the separate prerequisite > > change. > > I like the idea. It doesn't look like 'struct fwnode_operations' > provides a way to retrieve information in a 'struct resource' format. It can be added, but it's orthogonal to this series. What I suggest is to unify them here followed by your patch in this series. I.o.w. add one more patch as a prerequisite. > Perhaps this could be followed up on in a separate patch train? Definitely, but again, not (directly) related to this series. ... > > > + irqd_set_trigger_type(irqd, r->flags & IORESOURCE_BITS); > > > > NIH resource_type(). > > > > > + } > > > return ret; > > Does NIH mean "not invented here"? Yes. > resource_type() masks > IORESOURCE_TYPE_BITS, not IORESOURCE_BITS. I'm not quite sure what you > mean here. Ah, my bad, indeed, you are right. -- With Best Regards, Andy Shevchenko