On Tue, 27 Jul 2010 15:00:29 +0800 Grant Likely <[email protected]> wrote:
> On Tue, Jul 27, 2010 at 1:14 AM, Feng Tang <[email protected]> > wrote: > > On Tue, 27 Jul 2010 14:28:57 +0800 > > David Brownell <[email protected]> wrote: > > > >> There are things wrong with the concept of this > >> particular patch. First, that it's mpc5121-only. > >> Second, that it's not already handled as part of > >> registering the platform's SPI devices. > >> > >> > > > > Hi David, Grant, > > > > This actually brings up another topic: currently > > spi_register_board_info() has to be called before spi > > controller(master) get inited. But in some case, to solve some > > device dependency issue, some spi slave device need be delayed > > registering, can we adjust it to make register_board_info() be > > callable after spi controller is inited? Which makes spi bus like > > general pci/usb bus, where devices/drivers have no registering > > order limit. > > Is spi_alloc_device()/spi_add_device() not suitable for your use-case? > > g. Yes, I've thought about that, but spi_alloc_device() is called when you know which spi_master it is connecting to, while our platform need kind of blind registering (just register something to spi-bus). Thanks, Feng ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ spi-devel-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/spi-devel-general
