Re: [PATCH] mcspi: Add support for GPIO chip select lines

2010-12-23 Thread Ben Gamari
On Thu, 23 Dec 2010 20:28:19 -0700, Grant Likely wrote: > On Thu, Dec 23, 2010 at 09:27:20PM -0500, Ben Gamari wrote: > > I understand your concerns, but I'm not sure how to satisfy them without > > crippling the design's ability to accomodate my use-case. I can't pass a > > GPIO line per spi_boa

[Patch v2 3/3] spi/dw_spi: add DMA support

2010-12-23 Thread Feng Tang
dw_spi driver in upstream only supports PIO mode, and this patch will support it to cowork with the Designware dma controller used on Intel Moorestown platform, at the same time it provides a general framework to support dw_spi core to cowork with dma controllers on other platforms It has been tes

[Patch v2 2/3] spi/dw_spi: change to EXPORT_SYMBOL_GPL for exported APIs

2010-12-23 Thread Feng Tang
Acked-by: Grant Likely Signed-off-by: Feng Tang --- drivers/spi/dw_spi.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/spi/dw_spi.c b/drivers/spi/dw_spi.c index 25238a8..b50bf5b 100644 --- a/drivers/spi/dw_spi.c +++ b/drivers/spi/dw_spi.c @@ -941,7 +941,

[Patch v2 1/3] spi/dw_spi: Fix too short timeout in spi polling loop

2010-12-23 Thread Feng Tang
The SPI polling loop timeout only works with HZ=100 as the loop was actually too short. Also add appropriate cpu_relax() in the busy wait loops... Acked-by: Grant Likely Signed-off-by: Arjan van de Ven Signed-off-by: Alan Cox --- drivers/spi/dw_spi.c |9 ++--- 1 files changed, 6 inser

Re: [PATCH 4/4] spi/pl022: convert running variable

2010-12-23 Thread Grant Likely
On Wed, Dec 22, 2010 at 11:13:59PM +0100, Linus Walleij wrote: > This variable is a bool but defined an int and defined completely > backwards. This makes the code more readable. > > Signed-off-by: Linus Walleij Merged for -next, thanks. g. > --- > drivers/spi/amba-pl022.c | 24 ++--

Re: [PATCH 3/4] spi/pl022: convert busy flag to a bool

2010-12-23 Thread Grant Likely
On Wed, Dec 22, 2010 at 11:13:48PM +0100, Linus Walleij wrote: > Signed-off-by: Linus Walleij Merged for -next, thanks. g. > --- > drivers/spi/amba-pl022.c |8 > 1 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/spi/amba-pl022.c b/drivers/spi/amba-pl022.c

Re: [PATCH 2/4] spi/pl022: pass the returned sglen to the DMA engine

2010-12-23 Thread Grant Likely
On Wed, Dec 22, 2010 at 11:13:37PM +0100, Linus Walleij wrote: > The sglen return by the dma_map_sg() should be passed to the DMA > engine, not the one passed in. If we one day have a DMA mapper > that can coalesce entries, this will bug due to a too large > number of entries being passed in. > >

Re: [PATCH 1/4] spi/pl022: map the buffers on the DMA engine

2010-12-23 Thread Grant Likely
On Wed, Dec 22, 2010 at 11:13:07PM +0100, Linus Walleij wrote: > The struct device for the DMA engine is the apropriate one to use > when mapping/unmapping buffers. This is because the memory which > is addressable by DMA is determined by the DMA engine rather than > the device. > > Reported-by: R

Re: [PATCH REPOST v2] spi/spi: don't release the spi device twice

2010-12-23 Thread Grant Likely
On Mon, Dec 20, 2010 at 10:13 AM, Sebastian Andrzej Siewior wrote: > This was fixed by David Lamparter in v2.6.36-rc5 3486008 > ("spi: free children in spi_unregister_master, not siblings") and broken > again in v2.6.37-rc1~2^2~4 during the merge of 2b9603a0 ("spi: enable > spi_board_info to be re

Re: [PATCH] spi_topcliff_pch: Fix data transfer issue

2010-12-23 Thread Grant Likely
On Fri, Dec 24, 2010 at 11:40:50AM +0900, Tomoya MORINAGA wrote: > It seems spi_topcliff_pch of linux-2.6.37-rc6 degraded by previous patch. > In fact, data transfer fails on evaluation board testing. > I found like the following register miss-setting line. > Using this patch, I have confirmed data

Re: [PATCH] mcspi: Add support for GPIO chip select lines

2010-12-23 Thread Grant Likely
On Thu, Dec 23, 2010 at 09:27:20PM -0500, Ben Gamari wrote: > On Thu, 23 Dec 2010 17:37:12 -0700, Grant Likely > wrote: > > On Thu, Dec 23, 2010 at 4:09 PM, Ben Gamari wrote: > > > The reason I left this up to the board is it's easy to foresee cases > > > where you want a non-trivial mapping bet

[PATCH] spi_topcliff_pch: Fix data transfer issue

2010-12-23 Thread Tomoya MORINAGA
Sorry, I forget to add "--CCs" It seems spi_topcliff_pch of linux-2.6.37-rc6 degraded by previous patch. In fact, data transfer fails on evaluation board testing. I found like the following register miss-setting line. Using this patch, I have confirmed data transfer can work well. Signed-off-by:

[PATCH] spi_topcliff_pch: Fix data transfer issue

2010-12-23 Thread Tomoya MORINAGA
It seems spi_topcliff_pch of linux-2.6.37-rc6 degraded by previous patch. In fact, data transfer fails on evaluation board testing. I found like the following register miss-setting line. Using this patch, I have confirmed data transfer can work well. Signed-off-by: Tomoya MORINAGA --- drivers/sp

Re: [PATCH] mcspi: Add support for GPIO chip select lines

2010-12-23 Thread Ben Gamari
On Thu, 23 Dec 2010 17:37:12 -0700, Grant Likely wrote: > On Thu, Dec 23, 2010 at 4:09 PM, Ben Gamari wrote: > > The reason I left this up to the board is it's easy to foresee cases > > where you want a non-trivial mapping between logical CS numbers and CS > > pin states. In my case, I using a 2

Re: [PATCH] spi/imx: remove autodetection

2010-12-23 Thread Grant Likely
On Thu, Nov 25, 2010 at 09:05:00AM +0100, Uwe Kleine-König wrote: > On Thu, Nov 25, 2010 at 12:03:43PM +0800, Jason Wang wrote: > > It is reasonable, looks fine to me. :-) > > > > Jason. > I'll interpret this as an Ack. So will I. :-) applied for -next g. -

Re: [PATCH] mcspi: Add support for GPIO chip select lines

2010-12-23 Thread Grant Likely
On Thu, Dec 23, 2010 at 4:09 PM, Ben Gamari wrote: > On Thu, 23 Dec 2010 14:38:57 -0700, Grant Likely > wrote: >> On Tue, Dec 21, 2010 at 10:56 AM, Ben Gamari wrote: >> > This mechanism is in large part stolen from the s3c64xx-spi module. To >> > use this functionality, one simply must define a

Re: [PATCH] dw_spi: add DMA support

2010-12-23 Thread Grant Likely
On Tue, Nov 23, 2010 at 05:53:31PM +0800, Feng Tang wrote: > > > On Tue, 23 Nov 2010 14:48:39 +0800 > Linus Walleij wrote: > > > This is much better than last time but I still have questions... > > > > 2010/11/18 Alan Cox : > > > > > +       /* 1. Init rx channel */ > > > +       rxs = &dw_dm

Re: [PATCH] mcspi: Add support for GPIO chip select lines

2010-12-23 Thread Ben Gamari
On Thu, 23 Dec 2010 14:38:57 -0700, Grant Likely wrote: > On Tue, Dec 21, 2010 at 10:56 AM, Ben Gamari wrote: > > This mechanism is in large part stolen from the s3c64xx-spi module. To > > use this functionality, one simply must define a set_level function to > > set the CS state and a omap2_mcs

Re: [PATCH v5 1/1] OMAP2: Spi: Force CS to be in inactive state after off-mode transition

2010-12-23 Thread Grant Likely
On Wed, Nov 24, 2010 at 04:49:47PM -0800, Kevin Hilman wrote: > Gregory CLEMENT writes: > > > As request by Grant Likely, there is no more cover letter. Full changelog > > is following. > > I am still reluctant to add this changelog in the patch description, as it > > adds no value to > > the p

Re: [PATCH] mcspi: Add support for GPIO chip select lines

2010-12-23 Thread Grant Likely
On Tue, Dec 21, 2010 at 10:56 AM, Ben Gamari wrote: > This mechanism is in large part stolen from the s3c64xx-spi module. To > use this functionality, one simply must define a set_level function to > set the CS state and a omap2_mcspi_csinfo struct for each chip select in > the board file. > > Eac

Re: [PATCH] mcspi: Add support for GPIO chip select lines

2010-12-23 Thread Tony Lindgren
* Ben Gamari [101221 09:56]: > This mechanism is in large part stolen from the s3c64xx-spi module. To > use this functionality, one simply must define a set_level function to > set the CS state and a omap2_mcspi_csinfo struct for each chip select in > the board file. > > Each spi_board_info.contr

Re: [PATCH 2/2] spi_imx.c: TRIVIAL mx25 & mx35 SPI_VER is 0.7

2010-12-23 Thread Grant Likely
On Thu, Dec 23, 2010 at 12:12:10PM +0100, Richard Genoud wrote: > The check on cpu_is_mx25 and cpu_is_mx35 was made twice. > This is obviously wrong. > Anyway, this patch won't change the previous behaviour which is > SPI_IMX_VER_0_7 for mx25 and mx35. > > Signed-off-by: Richard Genoud applied,

Re: [PATCH 2/2] spi_imx.c: TRIVIAL mx25 & mx35 SPI_VER is 0.7

2010-12-23 Thread Grant Likely
On Thu, Dec 23, 2010 at 03:29:34PM +0100, Uwe Kleine-König wrote: > On Thu, Dec 23, 2010 at 12:12:10PM +0100, Richard Genoud wrote: > > The check on cpu_is_mx25 and cpu_is_mx35 was made twice. > > This is obviously wrong. > obviously wrong but no wrong behaviour. Your patch only makes the code > c

Re: [PATCH 1/2] spi_imx.c: CSPI3 irq is 0 on imx25

2010-12-23 Thread Grant Likely
On Thu, Dec 23, 2010 at 12:12:09PM +0100, Richard Genoud wrote: > On imx25 soc, MX25_INT_CSPI3 is 0 > (cf arch/arm/plat-mxc/include/mach/mx25.h). > So, the test (spi_imx->irq <= 0) returned an error > for this platform. > This patch corrects this behaviour. > > Signed-off-by: Richard Genoud > ---

Re: [PATCH 2/2] spi_imx.c: TRIVIAL mx25 & mx35 SPI_VER is 0.7

2010-12-23 Thread Richard Genoud
2010/12/23 Uwe Kleine-König : > On Thu, Dec 23, 2010 at 12:12:10PM +0100, Richard Genoud wrote: >> The check on cpu_is_mx25 and cpu_is_mx35 was made twice. >> This is obviously wrong. > obviously wrong but no wrong behaviour.  Your patch only makes the code > consistent, but IMHO it doesn't qualify

Re: [PATCH 2/2] spi_imx.c: TRIVIAL mx25 & mx35 SPI_VER is 0.7

2010-12-23 Thread Uwe Kleine-König
On Thu, Dec 23, 2010 at 12:12:10PM +0100, Richard Genoud wrote: > The check on cpu_is_mx25 and cpu_is_mx35 was made twice. > This is obviously wrong. obviously wrong but no wrong behaviour. Your patch only makes the code consistent, but IMHO it doesn't qualify as a bugfix. > Anyway, this patch wo

Re: Help with cleaning up SPI driver for ARM SoC

2010-12-23 Thread Damjan Marion
Anybody? Thanks On Dec 21, 2010, at 11:46 PM, Damjan Marion wrote: > > > Hi, > > I'm trying to adopt and clean up driver which is originally written for > 2.6.24 kernel, and it provides support for SPI on specific ARM system-on-chip > device. > > As this code is never submitted to official

[PATCH 2/2] spi_imx.c: TRIVIAL mx25 & mx35 SPI_VER is 0.7

2010-12-23 Thread Richard Genoud
The check on cpu_is_mx25 and cpu_is_mx35 was made twice. This is obviously wrong. Anyway, this patch won't change the previous behaviour which is SPI_IMX_VER_0_7 for mx25 and mx35. Signed-off-by: Richard Genoud --- drivers/spi/spi_imx.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

[PATCH 1/2] spi_imx.c: CSPI3 irq is 0 on imx25

2010-12-23 Thread Richard Genoud
On imx25 soc, MX25_INT_CSPI3 is 0 (cf arch/arm/plat-mxc/include/mach/mx25.h). So, the test (spi_imx->irq <= 0) returned an error for this platform. This patch corrects this behaviour. Signed-off-by: Richard Genoud --- drivers/spi/spi_imx.c |2 +- 1 files changed, 1 insertions(+), 1 deletions

COMMENT SAVOIR SI MON TOIT EST RENTABLE ?

2010-12-23 Thread Vous possédez une propriété
-- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database environment, and, should the need arise, upgrade to a full multi-node Oracle RAC da