All of lore.kernel.org
 help / color / mirror / Atom feed
From: gregkh@linuxfoundation.org (Greg KH)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] dt: platform driver: Fill the resources before probe and defer if needed
Date: Tue, 18 Feb 2014 12:22:05 -0800	[thread overview]
Message-ID: <20140218202205.GA13835@kroah.com> (raw)
In-Reply-To: <1392285429-9325-1-git-send-email-jjhiblot@traphandler.com>

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 <jjhiblot@traphandler.com>
> Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
> ---
>  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...

WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <gregkh@linuxfoundation.org>
To: Jean-Jacques Hiblot <jjhiblot@traphandler.com>
Cc: grant.likely@linaro.org, robh+dt@kernel.org,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
	gregory.clement@free-electrons.com,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH] dt: platform driver: Fill the resources before probe and defer if needed
Date: Tue, 18 Feb 2014 12:22:05 -0800	[thread overview]
Message-ID: <20140218202205.GA13835@kroah.com> (raw)
In-Reply-To: <1392285429-9325-1-git-send-email-jjhiblot@traphandler.com>

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 <jjhiblot@traphandler.com>
> Reviewed-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
> ---
>  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...

  parent reply	other threads:[~2014-02-18 20:22 UTC|newest]

Thread overview: 94+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-13  9:57 [PATCH] dt: platform driver: Fill the resources before probe and defer if needed Jean-Jacques Hiblot
2014-02-13  9:57 ` Jean-Jacques Hiblot
2014-02-13  9:57 ` Jean-Jacques Hiblot
2014-02-13 10:06 ` Jean-Jacques Hiblot
2014-02-13 10:06   ` Jean-Jacques Hiblot
2014-02-18 20:22 ` Greg KH [this message]
2014-02-18 20:22   ` Greg KH
2014-02-18 22:34   ` Grant Likely
2014-02-18 22:34     ` Grant Likely
2014-02-20 15:30 ` Grant Likely
2014-02-20 15:30   ` Grant Likely
2014-02-20 15:30   ` Grant Likely
     [not found]   ` < 1392988720-20976-1-git-send-email-jjhiblot@traphandler.com>
     [not found]     ` < 902E09E6452B0E43903E4F2D568737AB0B9D2959@DFRE01.ent.ti.com>
     [not found]       ` < CACh+v5MPTx6nwVj1s3krntJqQ6DMTQ2hQ93Hc+rRNAuFa9+qPw@mail.gmail.com>
     [not found]     ` <20140308073758 .DA63FC408EC@trevor.secretlab.ca>
     [not found]       ` < CACh+v5P=tcc-h_9r7Btwyu+jWjwH2ocmW4VCgDYqY7VMWsHuOA@mail.gmail.com>
     [not found]         ` < 20140317142443.A2447C40A85@trevor.secretlab.ca>
2014-02-21 13:18   ` [PATCH v2] " Jean-Jacques Hiblot
2014-02-21 13:18     ` Jean-Jacques Hiblot
2014-02-21 15:37     ` Strashko, Grygorii
2014-02-21 15:37       ` Strashko, Grygorii
2014-02-21 15:37       ` Strashko, Grygorii
2014-02-21 16:22       ` Jean-Jacques Hiblot
2014-02-21 16:22         ` Jean-Jacques Hiblot
2014-02-27 16:43         ` Jean-Jacques Hiblot
2014-02-27 16:43           ` Jean-Jacques Hiblot
2014-02-27 16:43           ` Jean-Jacques Hiblot
2014-03-08  7:32           ` Grant Likely
2014-03-08  7:32             ` Grant Likely
2014-03-08  7:32             ` Grant Likely
2014-02-27 15:01     ` Ludovic Desroches
2014-02-27 15:01       ` Ludovic Desroches
2014-02-27 15:01       ` Ludovic Desroches
2014-03-08  7:37     ` Grant Likely
2014-03-08  7:37       ` Grant Likely
2014-03-08  7:37       ` Grant Likely
2014-03-08 11:59       ` Russell King - ARM Linux
2014-03-08 11:59         ` Russell King - ARM Linux
2014-03-08 11:59         ` Russell King - ARM Linux
2014-03-17 11:07       ` Jean-Jacques Hiblot
2014-03-17 11:07         ` Jean-Jacques Hiblot
2014-03-17 11:07         ` Jean-Jacques Hiblot
2014-03-17 14:24         ` Grant Likely
2014-03-17 14:24           ` Grant Likely
2014-03-17 14:24           ` Grant Likely
2014-03-17 15:20           ` Jean-Jacques Hiblot
2014-03-17 15:20             ` Jean-Jacques Hiblot
2014-03-20 16:11             ` Grant Likely
2014-03-20 16:11               ` Grant Likely
2014-03-20 16:11               ` Grant Likely
2014-03-21 14:46               ` [PATCH v3 0/2] " Jean-Jacques Hiblot
2014-03-21 14:46                 ` Jean-Jacques Hiblot
2014-03-21 14:46                 ` Jean-Jacques Hiblot
2014-03-21 14:46                 ` [PATCH v3 1/2] of: irq: Added of_find_irq_domain() to get the domain of an irq Jean-Jacques Hiblot
2014-03-21 14:46                   ` Jean-Jacques Hiblot
2014-03-21 14:46                   ` Jean-Jacques Hiblot
2014-03-21 14:46                 ` [PATCH v3 2/2] dt: platform driver: Fill the resources before probe and defer if needed Jean-Jacques Hiblot
2014-03-21 14:46                   ` Jean-Jacques Hiblot
2014-04-11 17:28                   ` Rob Herring
2014-04-11 17:28                     ` Rob Herring
2014-04-18 20:52                     ` Tony Lindgren
2014-04-18 20:52                       ` Tony Lindgren
2014-04-18 20:52                       ` Tony Lindgren
2014-04-18 21:39                       ` Rob Herring
2014-04-18 21:39                         ` Rob Herring
2014-04-18 21:39                         ` Rob Herring
2014-04-18 21:58                         ` Tony Lindgren
2014-04-18 21:58                           ` Tony Lindgren
2014-04-18 21:58                           ` Tony Lindgren
2014-04-18 23:03                           ` Russell King - ARM Linux
2014-04-18 23:03                             ` Russell King - ARM Linux
2014-04-18 23:03                             ` Russell King - ARM Linux
2014-04-18 23:24                             ` Tony Lindgren
2014-04-18 23:24                               ` Tony Lindgren
2014-04-18 23:24                               ` Tony Lindgren
2014-04-21 13:47                               ` Rob Herring
2014-04-21 13:47                                 ` Rob Herring
2014-04-21 15:54                                 ` Tony Lindgren
2014-04-21 15:54                                   ` Tony Lindgren
2014-04-21 15:54                                   ` Tony Lindgren
2014-04-21 19:01                                   ` Rob Herring
2014-04-21 19:01                                     ` Rob Herring
2014-04-21 19:01                                     ` Rob Herring
2014-04-21 20:25                                     ` Tony Lindgren
2014-04-21 20:25                                       ` Tony Lindgren
2014-04-21 20:25                                       ` Tony Lindgren
2014-04-22  3:05                                       ` Tony Lindgren
2014-04-22  3:05                                         ` Tony Lindgren
2014-04-22  3:05                                         ` Tony Lindgren
2014-04-22  4:57                                         ` Tony Lindgren
2014-04-22  4:57                                           ` Tony Lindgren
2014-04-23 22:03                                           ` Rob Herring
2014-04-23 22:03                                             ` Rob Herring
2014-04-23 22:03                                             ` Rob Herring
2014-04-23 17:38                                     ` Russell King - ARM Linux
2014-04-23 17:38                                       ` Russell King - ARM Linux
2014-04-23 17:38                                       ` Russell King - ARM Linux
2014-04-23 15:02                                 ` Grant Likely
2014-04-23 15:02                                   ` Grant Likely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140218202205.GA13835@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.