Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp226287pxh; Wed, 10 Nov 2021 00:34:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzGu5mU/tiX9IHrMLG9q4G/S2Yp79zq4rxw8pbxtzO7VYAn8qcQaIbFIs5mDUEhUBuFI6jw X-Received: by 2002:a17:907:3e8a:: with SMTP id hs10mr18646952ejc.404.1636533275781; Wed, 10 Nov 2021 00:34:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636533275; cv=none; d=google.com; s=arc-20160816; b=qAh0TpqrDom41ceAc+NG2p2GV97B5JpqQF+3zxtnH24iQA+DjOd1UCg946bOxgW97O AwjDKwFIly0wQAfHlVm8Bjmu8AVRgYjJParGbAt8rJ8OnfuQdl4Ct2f2Z5FcP9rFbF7P Kq2ycMLnSwnMG+4FRxsHn3ew73fFzMXeChs3Bpgfl3UdA0eSjhDcHVLhm/ohsTI52pXz 6u4ePIFXdRVKw2r0C4fZfb5me7f6mG0EN78VtywZmTJYPyaoG7BzJnWP+hnX1A8G9dO7 EwTR34ZCFil4bmHgGP0ZuXOA1mrzoF5PmrA9FNUkFh8L6iNEyPpT4Pg0wfDW2WrH6kXp bGLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=MlMk2jJNS8lE/rih1s3DIvjD8yhZgS2Zd3Z9sIkMvek=; b=mGO1oo2N7e6ZzxbWajfd7reQd5Wk8OhXHfh+56bflBLeA21oSoU4+5BUfsMr6mDaSX RsjlmI1VOn9DAEWwBkEpJQNLcMr2Y5ubluhSILX5d6/OiEF7fJkWgsE3iktosBS6aQY6 xhi3MZzgqKr5EiOz2PT6tAR/T4lvUCL29QGrIuNT3CMw+eDY+S1TbdiqIo+VFt1k8hTl OBa24VAfOD67DMG98HuJlE2iZtRivF1K2duOBdHt4NyKlr3ec7Ip/YkTTaGUIH5rBkSL 8ZfhzFnj1tnobMOPXdMd7jgRPQUSMDiCZV29x36+nRaLCMKGTaQkjplnMTLUUujPsKaP YYog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dr12si28149619ejc.715.2021.11.10.00.34.11; Wed, 10 Nov 2021 00:34:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230311AbhKJIfH (ORCPT + 99 others); Wed, 10 Nov 2021 03:35:07 -0500 Received: from mga01.intel.com ([192.55.52.88]:48154 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230053AbhKJIfH (ORCPT ); Wed, 10 Nov 2021 03:35:07 -0500 X-IronPort-AV: E=McAfee;i="6200,9189,10163"; a="256313675" X-IronPort-AV: E=Sophos;i="5.87,223,1631602800"; d="scan'208";a="256313675" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2021 00:32:19 -0800 X-IronPort-AV: E=Sophos;i="5.87,223,1631602800"; d="scan'208";a="589202538" Received: from smile.fi.intel.com ([10.237.72.184]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2021 00:32:17 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1mkj1Z-005LwK-GT; Wed, 10 Nov 2021 10:32:05 +0200 Date: Wed, 10 Nov 2021 10:32:05 +0200 From: Andy Shevchenko To: Saravana Kannan Cc: Puranjay Mohan , gregkh@linuxfoundation.org, rafael@kernel.org, heikki.krogerus@linux.intel.com, kuba@kernel.org, linux-kernel@vger.kernel.org, lars@metafoo.de, Michael.Hennerich@analog.com, jic23@kernel.org, linux-iio@vger.kernel.org Subject: Re: [PATCH v2 0/2] device property: Adding fwnode_irq_get_byname() Message-ID: References: <20211109200840.135019-1-puranjay12@gmail.com> 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 09, 2021 at 02:42:35PM -0800, Saravana Kannan wrote: > On Tue, Nov 9, 2021 at 12:09 PM Puranjay Mohan wrote: > > > > The first patch in this series adds the fwnode_irq_get_byname() which is > > the generic version of the of_irq_get_byname(). It is used to get the > > IRQ number from name of the interrupt. > > > > The second patch in this series uses the fwnode_irq_get_byname() > > function in the IIO driver of the ADXL355 accelerometer. The driver has > > been tested after applying this patch on a Raspberry PI. The ADXL355 was > > connected to the Raspberry Pi using I2C and fwnode_irq_get_byname() was > > used to get the IRQ number for the "DRDY" interrupt. Earlier this driver > > was using of_irq_get_byname() to get this IRQ number. > > Why do we need these changes though? Is there a non-OF device this > driver would ever probe? Strange question, TBH. All discrete component drivers are subject to be enumerated on any type of the systems. So, of course the answer to it "Definitely yes". -- With Best Regards, Andy Shevchenko