From: Feng Tang Subject: Re: [PATCH] spi/mpc5121: register spi child devices of spi node Date: Tue, 27 Jul 2010 15:33:58 +0800 Message-ID: <20100727153358.60881da6@feng-i7> References: <20100727151428.4a067f0e@feng-i7> <793633.1143.qm@web180310.mail.gq1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: "spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org" , Anatolij Gustschin , "alan-VuQAYsv1563Yd54FQh9/CA@public.gmane.org" To: David Brownell Return-path: In-Reply-To: <793633.1143.qm-4JhmkcZgSkk/JfqJOfUXs/u2YVrzzGjVVpNB7YpNyf8@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-spi.vger.kernel.org On Tue, 27 Jul 2010 15:07:28 +0800 David Brownell wrote: > > > --- On Tue, 7/27/10, Feng Tang wrote: > > > 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. > > They require parents to be registered before children. > In particular: bus segments before devices on them. > SPI is no different (nor should it be). > Sorry, I made a wrong example. What I want to say is the matching mechanism between spi board info and spi master, currently they use bus number to match, but there is a ordering limit now. For general device/driver matching in linux device model, there is no such limit. Is it possible to remove the order limit? 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/