Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2230189imm; Mon, 24 Sep 2018 00:05:45 -0700 (PDT) X-Google-Smtp-Source: ACcGV61ad9is40Z3kBzrc28+V+DgNSzsm6uWYBYMlyAKrdLAKQWUtycUfiWwOKdseldnw4x3VVd8 X-Received: by 2002:a63:a112:: with SMTP id b18-v6mr8240062pgf.384.1537772745417; Mon, 24 Sep 2018 00:05:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537772745; cv=none; d=google.com; s=arc-20160816; b=KkQjQvo5jucEwrQ44I8CJ0jyTy61vXN3JN4cDsYFQd/+k1vi+gy5be1sFTXej6PrGN ds/z/5GlmJWmoQZ9sI9EDJmqo1GrOFJlCzsO3I6AJw1epr4m4Wvuqps/Jf7KsqJkoiqz dxLJtgGfgh3sNNjjI2mdRu0n4pJfaNYHcA/hGhv8ek1AyVOkUphAq94KLPoNKGw58lxV 13X5FMwB08L8MmCwhQ4DhUIJB9/G2p70tkn+TG/clsmdF+ev9l5KDP/vaVFbpz2iNEKb aH3jp0EuchktZisCzoj02E+P1PuVXSrNn56vJR6M7Gdj28CIDGbLiaHgd7+qKbwJ/d7P vm6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=tb2wkO3Kmc1GjbE+hRF/2UeLaYldmMFJqXdLRzz1oXk=; b=ptSKPYH3BgMye+3RKvI/s9iygvqRfgiqu9oaydqr1SOBdEFEV5QaUozoUkWEJw8WoZ z9F5TjK2yLpQulcJQXTcYHodlP4SqTtWChz8OYV368OEZzKXjnb8uqXRlNakN6j1Baid AXDx8gGSQTnp1NQt3JULrxhYDsn+CopxX50mgR9hix3uk70QNFfiDk9lQrQLuuL1/OhA ErD1MpwFaPRLIuRxhTSZXLMKjziWS198MIKnMxGo+3LHhLczFaqWBjBfXppbZNwAq83s zL6D8gdjdonMnbgBX5H6NsycEekKzkKUbRCQWUGvWmuhCLw6UgIX/ajQvJc04D+EdDnA faxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u1-v6si35141672plb.291.2018.09.24.00.05.30; Mon, 24 Sep 2018 00:05:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727441AbeIXNFg (ORCPT + 99 others); Mon, 24 Sep 2018 09:05:36 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:57372 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726072AbeIXNFf (ORCPT ); Mon, 24 Sep 2018 09:05:35 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4AC5E8E3; Mon, 24 Sep 2018 07:04:56 +0000 (UTC) Date: Mon, 24 Sep 2018 09:04:53 +0200 From: Greg Kroah-Hartman To: Silesh C V Cc: "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] Driver core: add bus_find_device_by_fwnode Message-ID: <20180924070453.GA7105@kroah.com> References: <1537763755-28871-1-git-send-email-svellattu@mvista.com> <20180924051832.GB1974@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 24, 2018 at 12:06:13PM +0530, Silesh C V wrote: > Hello Greg, > On Mon, Sep 24, 2018 at 10:48 AM Greg Kroah-Hartman > wrote: > > > > On Mon, Sep 24, 2018 at 10:05:55AM +0530, Silesh C V wrote: > > > Some drivers need to find the device on a bus having a specific firmware > > > node. Currently, such drivers have their own implementations to do this. > > > Provide a helper similar to bus_find_device_by_name so that each driver > > > does not have to reinvent this. > > > > Is there a second patch that uses this function? We don't add api calls > > that are not used. > > OK. If I change, say, of_find_i2c_device_by_node, > of_find_i2c_adapter_by_node, of_phy_find_device and > of_find_spi_device_by_node to use this API, will that be good enough? > If that is OK, I will send this as a series in v2. I have no idea. Why would you want to create a new api call with no users? Let's see the patch series before being able to properly judge it... thanks, greg k-h