login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
August
»
22
Re: strange probe order issue after platform_add_devices()
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From:
hufey <hufeyy@...>
To: <linux-kernel@...>
Subject:
Re: strange probe order issue after platform_add_devices()
Date: Wednesday, August 22, 2007 - 12:27 pm
Seems never reach to the list... On 8/18/07, hufey <hufeyy@gmail.com> wrote:
quoted text
> Hi list, > > I am facing a very strange issue about device probe order. > I have a piece of code to support network interface card for an embedded box. > > It likes following: > > ... > static struct platform_device *custom_devices[] __initdata = { > &a_device, > &b_device, > &c_device, > }; > > static int __init device_init() > { > return platform_add_devices(custom_devices, > ARRAY_SIZE(custom_devices); > } > > subsys_initcall(device_init); > > /* end */ > > This code works good with kernel 2.6.11. After platform_add_devices() > is executed, a_device's probe function will be called first then > b_device's probe function be called. > I merged it to 2.6.17, but strange thing is b_device's probe be called > first always now. > Since b_device probe depends on a_device, so it always fails now. > > Does anyone know how to fix it? Or give me the hint about how kernel > decide which device be called to probe in order by what mechanism? > > Thanks in advance and best regards, > hufeyy >
-
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
strange probe order issue after platform_add_devices()
, hufey
, (Sat Aug 18, 10:29 am)
Re: strange probe order issue after platform_add_devices()
, hufey
, (Wed Aug 22, 12:27 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Jon Smirl
463 kernel developers missing!
Nigel Cunningham
Re: [PATCH] Remove process freezer from suspend to RAM pathway
Greg KH
Re: [malware-list] [RFC 0/5] [TALPA] Intro to a linux interface for on access scan...
Jeff Garzik
Re: Linux 2.6.23-rc9 and a heads-up for the 2.6.24 series..
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Linus Torvalds
Re: [GIT]: Networking
Evgeniy Polyakov
Re: [BUG] New Kernel Bugs
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
2 users
and
935 guests
online.
Online users
Jeremy
dpetersonjr2321
Syndicate