Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753195AbaBRWeV (ORCPT ); Tue, 18 Feb 2014 17:34:21 -0500 Received: from mail-we0-f182.google.com ([74.125.82.182]:58922 "EHLO mail-we0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753175AbaBRWeT (ORCPT ); Tue, 18 Feb 2014 17:34:19 -0500 From: Grant Likely Subject: Re: [PATCH] dt: platform driver: Fill the resources before probe and defer if needed To: Greg KH , Jean-Jacques Hiblot Cc: robh+dt@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, gregory.clement@free-electrons.com, linux-arm-kernel@lists.infradead.org In-Reply-To: <20140218202205.GA13835@kroah.com> References: <1392285429-9325-1-git-send-email-jjhiblot@traphandler.com> < 20140218202205.GA13835@kroah.com> Date: Tue, 18 Feb 2014 22:34:12 +0000 Message-Id: <20140218223412.B0DBCC40517@trevor.secretlab.ca> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 18 Feb 2014 12:22:05 -0800, Greg KH wrote: > On Thu, Feb 13, 2014 at 10:57:09AM +0100, Jean-Jacques Hiblot wrote: > > The goal of this patch is to allow drivers to be probed even if at the time of > > the DT parsing some of their ressources are not available yet. > > > > In the current situation, the resource of a platform device are filled from the > > DT at the time the device is created (of_device_alloc()). The drawbackof this > > is that a device sitting close to the top of the DT (ahb for example) but > > depending on ressources that are initialized later (IRQ domain dynamically > > created for example) will fail to probe because the ressources don't exist > > at this time. > > > > This patch fills the resource structure only before the device is probed and > > will defer the probe if the resource are not available yet. > > > > Signed-off-by: Jean-Jacques Hiblot > > Reviewed-by: Gregory CLEMENT > > --- > > drivers/base/platform.c | 6 ++++ > > drivers/of/platform.c | 71 +++++++++++++++++++++++++++++---------------- > > include/linux/of_platform.h | 10 +++++++ > > 3 files changed, 62 insertions(+), 25 deletions(-) > > I need some others to ack this before I can take it... Yes, please let me review it first, and I'll probably want to take it through the devicetree branch. g. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/