Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2209915imm; Sun, 23 Sep 2018 23:36:43 -0700 (PDT) X-Google-Smtp-Source: ACcGV61SzNZzTPmPyIWgXAUEBygzyMzIx5TWAGOpuUB14JO82pzUulZ9ef6iP9IYr9OHoMMOV6Nu X-Received: by 2002:a63:7b09:: with SMTP id w9-v6mr8346360pgc.385.1537771003298; Sun, 23 Sep 2018 23:36:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537771003; cv=none; d=google.com; s=arc-20160816; b=WQi0ofnfkxM5u+hjCr6SC17qkGkFttPvaa0frQkrJp92f0Si7zul4q0+2p8tn6fQPH hvQQIUW9HlC73o85klqxeLSNSymGMZwSCiQDrkCzQwO30dM6Bv6z1cxyuE5UlFvRoFmW k/GiUWklKgP5gOU+zqNefZTKysBew4du7mXWHfW3llMyxo7rysAze14wxKqC09aPAkcl 9o8vzS1PLSCBGg32IvoW2N/C0FKf8PrjtcoKmuhM4xsPzs3LnRXqwJ6W9ejnMAzRs6Jz vRoIFztFeLEl9Peh+FadQIT/69rd5RqHWms+E52U9/9okpX/fPhZ3em92Rk3s7x8vczS Iofw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=REPO90VD8avjIJyEr0W/D4HB1ESHClGfuUxtfVdF51Q=; b=XdOK9TGRoOzfGOpRaZSXHckC6MCrTR1Z6GPs/dndi9b7z8OOLVOAGfuvXLQ1NXUDjH bCNRY2Fb2g2bqWllyxzM88wEiobiCQCT0LF9IvhOpMeaDc+kaSOMQK/NQNCQRSFTfL6P rVzpxPmemRBW1rj+23f6horG4AhdKyNMPbMenFixtYKWuuMTXV+Y2sGR0S2KDjXU8936 Dm+4ZSrWKWmK7eApugxTpNE/ZAA6H2cBs55kiopHLFfp3Oc75y4X4t1HHQLZdvixIztu lvPNDnLw9cSgU3GsCtkbJMEp6mrhwM9OeXjiZ+XAplU6evz2vltfNtBcnDVJkaapDhtM OwBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mvista-com.20150623.gappssmtp.com header.s=20150623 header.b=aDfMl0DN; 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 p16-v6si35069267pgc.82.2018.09.23.23.36.27; Sun, 23 Sep 2018 23:36:43 -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; dkim=pass header.i=@mvista-com.20150623.gappssmtp.com header.s=20150623 header.b=aDfMl0DN; 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 S1727511AbeIXMgy (ORCPT + 99 others); Mon, 24 Sep 2018 08:36:54 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:44704 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726157AbeIXMgy (ORCPT ); Mon, 24 Sep 2018 08:36:54 -0400 Received: by mail-lf1-f67.google.com with SMTP id g24-v6so15607779lfb.11 for ; Sun, 23 Sep 2018 23:36:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mvista-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=REPO90VD8avjIJyEr0W/D4HB1ESHClGfuUxtfVdF51Q=; b=aDfMl0DNPPAiwliUF+Eqd3FX4HOJ6Bx1V3SR9sFp7fbywWT+ya3SZDH/muvmvgQxiz I2RVXYrwACwMes3oPRw3ZUzSVX9o/fw4k8YOgmIzljXzRJ5n10JSFJNUPFnl6ivpLCCP 73jiPixukVh5bDl1dCYUt1CXXAVtn2hhhr/10JuhDYlwHmmGU+kJChFeDuEsE/vciPYk 1Fo2hOzPejyrzrQZbKbDu7jmFw5iWGaZ9x3MscDlFAVuAEmpw8/riBNnNOJGHrTah8ku 9yvZ407yrdGdeW3lnkK4Mdm5h55Ao+sLuWehO+uAG8JhZldpWaXnMBMFQd1YrpMLEYOk c34A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=REPO90VD8avjIJyEr0W/D4HB1ESHClGfuUxtfVdF51Q=; b=A7StP+n7PjZxyDDBMDvBLl8ObIyQPuWmAKz7EzLrDVLRFuosLG9QpJu3bKGXwiLbYi zkOvkP+ahnDe+rRUEalj23+P2z/qjHwNXDh9YmMVSd0OlGSARNwz65ngFjv57GAEu74V wGLI8bkQBWr0gNxFhh0YS5QljoL9YBsCQc7RrYGXwS7vFMzLErqH/dU1x9cnLlwYFpkI NWFwzhQfM6GCnKfQkyYhJCRiiYa99jNnapHnnL8omh3kJniFJdHh7pBmwzT3W34SMHlz lYL6WeoCbl46NW8NnViVA3hle5e3+ZMGwaZ05vq4NgkKx+ghJmuxgnMgxsvy2ZFpTQ4k ThbQ== X-Gm-Message-State: APzg51BeDf0HqhrlgsbIPkDu6pExGDrpixbSe1rClc8eoEv534u8TeyV 6HAdvF6pNCmFoTzgW7exmYBjHvl+20Hl01RYEGjUeQ== X-Received: by 2002:a19:9e85:: with SMTP id h127-v6mr4862957lfe.89.1537770979508; Sun, 23 Sep 2018 23:36:19 -0700 (PDT) MIME-Version: 1.0 References: <1537763755-28871-1-git-send-email-svellattu@mvista.com> <20180924051832.GB1974@kroah.com> In-Reply-To: <20180924051832.GB1974@kroah.com> From: Silesh C V Date: Mon, 24 Sep 2018 12:06:13 +0530 Message-ID: Subject: Re: [PATCH] Driver core: add bus_find_device_by_fwnode To: Greg Kroah-Hartman Cc: "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks. Regards, Silesh