* [PATCH] driver core: fixup reversed deferred probe order
[not found] ` <87r4u2310j.wl%kuninori.morimoto.gx@renesas.com>
@ 2012-05-30 1:46 ` Kuninori Morimoto
2012-06-12 23:17 ` Greg Kroah-Hartman
2012-07-09 21:56 ` Grant Likely
0 siblings, 2 replies; 5+ messages in thread
From: Kuninori Morimoto @ 2012-05-30 1:46 UTC (permalink / raw)
To: Greg Kroah-Hartman, linux-kernel
Cc: Simon Horman, Paul Mundt, Rafael, Mark Brown, Magnus, Linux-SH,
Kuninori Morimoto
If driver requests probe deferral,
it will be added to deferred_probe_pending_list
by driver_deferred_probe_add(), but, it used list_add().
Because of that, deferred probe will be run as reversed order.
This patch uses list_add_tail(), and solved this issue.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
drivers/base/dd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index 1b1cbb5..dcb8a6e 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -100,7 +100,7 @@ static void driver_deferred_probe_add(struct device *dev)
mutex_lock(&deferred_probe_mutex);
if (list_empty(&dev->p->deferred_probe)) {
dev_dbg(dev, "Added to deferred list\n");
- list_add(&dev->p->deferred_probe, &deferred_probe_pending_list);
+ list_add_tail(&dev->p->deferred_probe, &deferred_probe_pending_list);
}
mutex_unlock(&deferred_probe_mutex);
}
--
1.7.5.4
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] driver core: fixup reversed deferred probe order
2012-05-30 1:46 ` [PATCH] driver core: fixup reversed deferred probe order Kuninori Morimoto
@ 2012-06-12 23:17 ` Greg Kroah-Hartman
2012-06-13 0:03 ` Kuninori Morimoto
2012-07-09 21:56 ` Grant Likely
1 sibling, 1 reply; 5+ messages in thread
From: Greg Kroah-Hartman @ 2012-06-12 23:17 UTC (permalink / raw)
To: Kuninori Morimoto
Cc: linux-kernel, Simon Horman, Paul Mundt, Rafael, Mark Brown,
Magnus, Linux-SH, Kuninori Morimoto
On Tue, May 29, 2012 at 06:46:06PM -0700, Kuninori Morimoto wrote:
> If driver requests probe deferral,
> it will be added to deferred_probe_pending_list
> by driver_deferred_probe_add(), but, it used list_add().
> Because of that, deferred probe will be run as reversed order.
> This patch uses list_add_tail(), and solved this issue.
Is this causing a problem with 3.5-rc2 on some systems, so it needs to
get into 3.5-final, or can it wait for 3.6?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] driver core: fixup reversed deferred probe order
2012-06-12 23:17 ` Greg Kroah-Hartman
@ 2012-06-13 0:03 ` Kuninori Morimoto
2012-06-13 0:33 ` Greg Kroah-Hartman
0 siblings, 1 reply; 5+ messages in thread
From: Kuninori Morimoto @ 2012-06-13 0:03 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: linux-kernel, Simon Horman, Paul Mundt, Rafael, Mark Brown,
Magnus, Linux-SH, Kuninori Morimoto
Hi Greg
Thank you for checking this patch
> > If driver requests probe deferral,
> > it will be added to deferred_probe_pending_list
> > by driver_deferred_probe_add(), but, it used list_add().
> > Because of that, deferred probe will be run as reversed order.
> > This patch uses list_add_tail(), and solved this issue.
>
> Is this causing a problem with 3.5-rc2 on some systems, so it needs to
> get into 3.5-final, or can it wait for 3.6?
ALSA SoC sound card detection order was broken by this issue in v3.5-rcX
(on some board).
So, I'm happy if it was included in v3.5-final.
Best regards
---
Kuninori Morimoto
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] driver core: fixup reversed deferred probe order
2012-06-13 0:03 ` Kuninori Morimoto
@ 2012-06-13 0:33 ` Greg Kroah-Hartman
0 siblings, 0 replies; 5+ messages in thread
From: Greg Kroah-Hartman @ 2012-06-13 0:33 UTC (permalink / raw)
To: Kuninori Morimoto
Cc: linux-kernel, Simon Horman, Paul Mundt, Rafael, Mark Brown,
Magnus, Linux-SH, Kuninori Morimoto
On Tue, Jun 12, 2012 at 05:03:38PM -0700, Kuninori Morimoto wrote:
>
> Hi Greg
>
> Thank you for checking this patch
>
> > > If driver requests probe deferral,
> > > it will be added to deferred_probe_pending_list
> > > by driver_deferred_probe_add(), but, it used list_add().
> > > Because of that, deferred probe will be run as reversed order.
> > > This patch uses list_add_tail(), and solved this issue.
> >
> > Is this causing a problem with 3.5-rc2 on some systems, so it needs to
> > get into 3.5-final, or can it wait for 3.6?
>
> ALSA SoC sound card detection order was broken by this issue in v3.5-rcX
> (on some board).
> So, I'm happy if it was included in v3.5-final.
Ok, thanks for letting me know, will queue it up for that release.
greg k-h
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] driver core: fixup reversed deferred probe order
2012-05-30 1:46 ` [PATCH] driver core: fixup reversed deferred probe order Kuninori Morimoto
2012-06-12 23:17 ` Greg Kroah-Hartman
@ 2012-07-09 21:56 ` Grant Likely
1 sibling, 0 replies; 5+ messages in thread
From: Grant Likely @ 2012-07-09 21:56 UTC (permalink / raw)
To: Kuninori Morimoto
Cc: Greg Kroah-Hartman, linux-kernel, Simon Horman, Paul Mundt,
Rafael, Mark Brown, Magnus, Linux-SH, Kuninori Morimoto
On Wed, May 30, 2012 at 2:46 AM, Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com> wrote:
> If driver requests probe deferral,
> it will be added to deferred_probe_pending_list
> by driver_deferred_probe_add(), but, it used list_add().
> Because of that, deferred probe will be run as reversed order.
> This patch uses list_add_tail(), and solved this issue.
>
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
(But not tested; I'm not in a position to test anything at the moment) :-(
g.
> ---
> drivers/base/dd.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/base/dd.c b/drivers/base/dd.c
> index 1b1cbb5..dcb8a6e 100644
> --- a/drivers/base/dd.c
> +++ b/drivers/base/dd.c
> @@ -100,7 +100,7 @@ static void driver_deferred_probe_add(struct device *dev)
> mutex_lock(&deferred_probe_mutex);
> if (list_empty(&dev->p->deferred_probe)) {
> dev_dbg(dev, "Added to deferred list\n");
> - list_add(&dev->p->deferred_probe, &deferred_probe_pending_list);
> + list_add_tail(&dev->p->deferred_probe, &deferred_probe_pending_list);
> }
> mutex_unlock(&deferred_probe_mutex);
> }
> --
> 1.7.5.4
>
> --
> 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/
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-07-09 21:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <87mx4rmqzd.wl%kuninori.morimoto.gx@renesas.com>
[not found] ` <20120529064621.GB6166@verge.net.au>
[not found] ` <20120529070458.GB11445@linux-sh.org>
[not found] ` <20120529073313.GA21702@verge.net.au>
[not found] ` <87k3zvmo4r.wl%kuninori.morimoto.gx@renesas.com>
[not found] ` <20120529091129.GA26043@verge.net.au>
[not found] ` <87txyy347i.wl%kuninori.morimoto.gx@renesas.com>
[not found] ` <87sjei325k.wl%kuninori.morimoto.gx@renesas.com>
[not found] ` <20120530013056.GA31474@verge.net.au>
[not found] ` <87r4u2310j.wl%kuninori.morimoto.gx@renesas.com>
2012-05-30 1:46 ` [PATCH] driver core: fixup reversed deferred probe order Kuninori Morimoto
2012-06-12 23:17 ` Greg Kroah-Hartman
2012-06-13 0:03 ` Kuninori Morimoto
2012-06-13 0:33 ` Greg Kroah-Hartman
2012-07-09 21:56 ` Grant Likely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®