On Mon, 24 Dec 2012 11:16:52 -0500, Jun Chen wrote:
> On Fri, 2012-12-21 at 19:06 +, Grant Likely wrote:
> > The problem is that I don't understand why this change is necessary.
> > spi_devices should always be children of an spi_master, not siblings.
> > What is the problem you're trying to s
On Fri, 2012-12-21 at 19:06 +, Grant Likely wrote:
> On Fri, 21 Dec 2012 12:39:52 -0500, Jun Chen wrote:
> > On Wed, 2012-12-19 at 16:21 +, Grant Likely wrote:
> > > On Wed, 19 Dec 2012 09:04:16 +, Mark Brown
> > > wrote:
> > > > On Wed, Dec 19, 2012 at 04:44:03AM -0500, Jun Chen wro
On Fri, 21 Dec 2012 12:39:52 -0500, Jun Chen wrote:
> On Wed, 2012-12-19 at 16:21 +, Grant Likely wrote:
> > On Wed, 19 Dec 2012 09:04:16 +, Mark Brown
> > wrote:
> > > On Wed, Dec 19, 2012 at 04:44:03AM -0500, Jun Chen wrote:
> > >
> > > > This spi_alloc_device function will be called
On Wed, 2012-12-19 at 16:21 +, Grant Likely wrote:
> On Wed, 19 Dec 2012 09:04:16 +, Mark Brown
> wrote:
> > On Wed, Dec 19, 2012 at 04:44:03AM -0500, Jun Chen wrote:
> >
> > > This spi_alloc_device function will be called in the spi_new_device
> > > function to alloc new device as the m
On Wed, 19 Dec 2012 09:04:16 +, Mark Brown
wrote:
> On Wed, Dec 19, 2012 at 04:44:03AM -0500, Jun Chen wrote:
>
> > This spi_alloc_device function will be called in the spi_new_device
> > function to alloc new device as the master. But other way, it is called
> > by the of_register_spi_devic
On Tue, 2012-12-18 at 15:26 +, Mark Brown wrote:
> On Tue, Dec 18, 2012 at 11:29:34AM -0500, Jun Chen wrote:
>
> > * @master: Controller to which device is connected
> > + * device_was_children_of_master is flag which the device is registed
> > + * as the children of the bus
>
> This isn't
On Tue, Dec 18, 2012 at 11:29:34AM -0500, Jun Chen wrote:
> * @master: Controller to which device is connected
> + * device_was_children_of_master is flag which the device is registed
> + * as the children of the bus
This isn't a kerneldoc style comment (it needs the @XXX: format). The
name is
Because there are two aim when allocating the new device, one is for children
of master,
other is for master. So this patch add one flag to indicate different purpose.
Signed-off-by: Bi Chao
Signed-off-by: Chen Jun
---
drivers/spi/spi.c | 16 +++-
include/linux/spi/spi.h |