linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RESEND][PATCH 0/2] McSPI Slave and DMA ,FIFO support
@ 2009-06-23 13:53 Hemanth V
  2009-07-03  0:05 ` David Brownell
  0 siblings, 1 reply; 7+ messages in thread
From: Hemanth V @ 2009-06-23 13:53 UTC (permalink / raw)
  To: linux-omap, spi-devel-general, dbrownell

This series of 2 patches adds support for McSPI slave
and DMA,FIFO. It incorporates review comments from
Kevin Hilman and Tony Lindgren


PATCH[1/2]: Changes to arch specific files
PATCH[2/2]: omap2_mcspi.c file changes

 arch/arm/mach-omap2/devices.c           |    5
 arch/arm/plat-omap/include/mach/mcspi.h |   16 +
 drivers/spi/omap2_mcspi.c               |  353
++++++++++++++++++++++++++++++++++++++++------



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RESEND][PATCH 0/2] McSPI Slave and DMA ,FIFO support
  2009-06-23 13:53 [RESEND][PATCH 0/2] McSPI Slave and DMA ,FIFO support Hemanth V
@ 2009-07-03  0:05 ` David Brownell
  2009-07-06  6:47   ` Hemanth V
  0 siblings, 1 reply; 7+ messages in thread
From: David Brownell @ 2009-07-03  0:05 UTC (permalink / raw)
  To: Hemanth V; +Cc: linux-omap, spi-devel-general

On Tuesday 23 June 2009, Hemanth V wrote:
> This series of 2 patches adds support for McSPI slave
> and DMA,FIFO. It incorporates review comments from
> Kevin Hilman and Tony Lindgren
> 
> 
> PATCH[1/2]: Changes to arch specific files
> PATCH[2/2]: omap2_mcspi.c file changes

Needs some changes yet:

  - Split out slave support as a separate patch.
    That's not really supported by the interface yet.

  - You sent the two patches with the same $SUBJECT;
    which indicates they are the *SAME* patch ...
    either make it be one patch, or change $SUBJECT
    (perhaps to match what you used above).

The stuff in #1 should have Tony's ack.


> 
>  arch/arm/mach-omap2/devices.c           |    5
>  arch/arm/plat-omap/include/mach/mcspi.h |   16 +
>  drivers/spi/omap2_mcspi.c               |  353
> ++++++++++++++++++++++++++++++++++++++++------
> 
> 
> 



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [RESEND][PATCH 0/2] McSPI Slave and DMA ,FIFO support
  2009-07-03  0:05 ` David Brownell
@ 2009-07-06  6:47   ` Hemanth V
  2009-08-28  5:42     ` [spi-devel-general] [RESEND][PATCH 0/2] McSPI Slave and DMA , FIFO support David Brownell
  0 siblings, 1 reply; 7+ messages in thread
From: Hemanth V @ 2009-07-06  6:47 UTC (permalink / raw)
  To: David Brownell; +Cc: linux-omap, spi-devel-general

----- Original Message ----- 
From: "David Brownell" <david-b@pacbell.net>


> On Tuesday 23 June 2009, Hemanth V wrote:
>> This series of 2 patches adds support for McSPI slave
>> and DMA,FIFO. It incorporates review comments from
>> Kevin Hilman and Tony Lindgren
>> 
>> 
>> PATCH[1/2]: Changes to arch specific files
>> PATCH[2/2]: omap2_mcspi.c file changes
> 
> Needs some changes yet:
> 
>  - Split out slave support as a separate patch.
>    That's not really supported by the interface yet.

Do you see any major changes required to support
slave mode in the SPI core driver. We are able to
use the existing interface for slave mode also, but
some APIs/ Structures could be made generic.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [spi-devel-general] [RESEND][PATCH 0/2] McSPI Slave and DMA , FIFO support
  2009-07-06  6:47   ` Hemanth V
@ 2009-08-28  5:42     ` David Brownell
  2009-08-28 12:05       ` Hemanth V
  0 siblings, 1 reply; 7+ messages in thread
From: David Brownell @ 2009-08-28  5:42 UTC (permalink / raw)
  To: spi-devel-general; +Cc: Hemanth V, linux-omap

On Sunday 05 July 2009, Hemanth V wrote:
> Do you see any major changes required to support
> slave mode in the SPI core driver.

There *is* no such thing as a "SPI core driver"...


> We are able to 
> use the existing interface for slave mode also, but
> some APIs/ Structures could be made generic.

Three things are obvious:

 - A spi_master is not a slave side driver!

 - Control model would need to be inverted
    * Chip select would be one input,
      not N outputs
    * No clock rate controls at all
    * latency issues ... driver can't necessarily
      respond quickly enough to guarantee no data
      loss (FIFOs help)
    * Can't re-use /dev/spidev*
    * Request queue would have a very different role

 - Some primitives are likely missing, for flow
   control (when hardware has a READY handshake)

I think a few proposals for how to handle slave
side have been circulated.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [spi-devel-general] [RESEND][PATCH 0/2] McSPI Slave and DMA , FIFO support
  2009-08-28  5:42     ` [spi-devel-general] [RESEND][PATCH 0/2] McSPI Slave and DMA , FIFO support David Brownell
@ 2009-08-28 12:05       ` Hemanth V
  2009-08-28 16:10         ` Tony Lindgren
  2009-08-28 17:32         ` David Brownell
  0 siblings, 2 replies; 7+ messages in thread
From: Hemanth V @ 2009-08-28 12:05 UTC (permalink / raw)
  To: David Brownell, spi-devel-general; +Cc: linux-omap

---- Original Message ----- 
From: "David Brownell" <david-b@pacbell.net>


> On Sunday 05 July 2009, Hemanth V wrote:
>> Do you see any major changes required to support
>> slave mode in the SPI core driver.
> 
> There *is* no such thing as a "SPI core driver"...
> 
I was referring to

spi.c - SPI init/core code

> 
>> We are able to 
>> use the existing interface for slave mode also, but
>> some APIs/ Structures could be made generic.
> 
> Three things are obvious:
> 
> - A spi_master is not a slave side driver!

Yes a more generic or new structure would be good,
but the current one does work for slave mode also.

> 
> - Control model would need to be inverted
>    * Chip select would be one input,
>      not N outputs
>    * No clock rate controls at all

Conditional checks for slave/master mode have been added in
the driver where required.

>    * latency issues ... driver can't necessarily
>      respond quickly enough to guarantee no data
>      loss (FIFOs help)

We currently support both FIFO and DMA for
slave mode

>    * Can't re-use /dev/spidev*
>    * Request queue would have a very different role
> 
> - Some primitives are likely missing, for flow
>   control (when hardware has a READY handshake)
> 
> I think a few proposals for how to handle slave
> side have been circulated.

So would it be possible to merge the slave support also for
now, and could be modified to support the new slave interface
as and when available.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [spi-devel-general] [RESEND][PATCH 0/2] McSPI Slave and DMA , FIFO support
  2009-08-28 12:05       ` Hemanth V
@ 2009-08-28 16:10         ` Tony Lindgren
  2009-08-28 17:32         ` David Brownell
  1 sibling, 0 replies; 7+ messages in thread
From: Tony Lindgren @ 2009-08-28 16:10 UTC (permalink / raw)
  To: Hemanth V; +Cc: David Brownell, spi-devel-general, linux-omap

* Hemanth V <hemanthv@ti.com> [090828 05:05]:
> ---- Original Message ----- From: "David Brownell" <david-b@pacbell.net>
>
>
>> On Sunday 05 July 2009, Hemanth V wrote:
>>> Do you see any major changes required to support
>>> slave mode in the SPI core driver.
>>
>> There *is* no such thing as a "SPI core driver"...
>>
> I was referring to
>
> spi.c - SPI init/core code
>
>>
>>> We are able to use the existing interface for slave mode also, but
>>> some APIs/ Structures could be made generic.
>>
>> Three things are obvious:
>>
>> - A spi_master is not a slave side driver!
>
> Yes a more generic or new structure would be good,
> but the current one does work for slave mode also.
>
>>
>> - Control model would need to be inverted
>>    * Chip select would be one input,
>>      not N outputs
>>    * No clock rate controls at all
>
> Conditional checks for slave/master mode have been added in
> the driver where required.
>
>>    * latency issues ... driver can't necessarily
>>      respond quickly enough to guarantee no data
>>      loss (FIFOs help)
>
> We currently support both FIFO and DMA for
> slave mode
>
>>    * Can't re-use /dev/spidev*
>>    * Request queue would have a very different role
>>
>> - Some primitives are likely missing, for flow
>>   control (when hardware has a READY handshake)
>>
>> I think a few proposals for how to handle slave
>> side have been circulated.
>
> So would it be possible to merge the slave support also for
> now, and could be modified to support the new slave interface
> as and when available.

In general it's not good to merge half implemented patches.

That's because it usually means that the work on getting
things cleaned up stops right there.

And then the community is left to deal with the mess.

So I recommend doing it clean from the start rather than
merging in hacks.

Tony

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [spi-devel-general] [RESEND][PATCH 0/2] McSPI Slave and DMA , FIFO support
  2009-08-28 12:05       ` Hemanth V
  2009-08-28 16:10         ` Tony Lindgren
@ 2009-08-28 17:32         ` David Brownell
  1 sibling, 0 replies; 7+ messages in thread
From: David Brownell @ 2009-08-28 17:32 UTC (permalink / raw)
  To: Hemanth V; +Cc: spi-devel-general, linux-omap

On Friday 28 August 2009, Hemanth V wrote:
> So would it be possible to merge the slave support also for
> now, and could be modified to support the new slave interface
> as and when available.

Not really.  You still haven't split the non-slave stuff into
a patch, note ..


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-08-28 17:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-23 13:53 [RESEND][PATCH 0/2] McSPI Slave and DMA ,FIFO support Hemanth V
2009-07-03  0:05 ` David Brownell
2009-07-06  6:47   ` Hemanth V
2009-08-28  5:42     ` [spi-devel-general] [RESEND][PATCH 0/2] McSPI Slave and DMA , FIFO support David Brownell
2009-08-28 12:05       ` Hemanth V
2009-08-28 16:10         ` Tony Lindgren
2009-08-28 17:32         ` David Brownell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).