[PATCH V4] MXS: Implement DMA support into mxs-i2c

2012-08-23 Thread Marek Vasut
This patch implements DMA support into mxs-i2c. DMA transfers are now enabled via DT. The DMA operation is enabled by default. Signed-off-by: Marek Vasut CC: Fabio Estevam Cc: linux-...@vger.kernel.org CC: Shawn Guo Cc: Wolfram Sang --- Documentation/devicetree/bindings/i2c/i2c-mxs.txt |2

[PATCH 2/2] ARM: mxs: Update DENX M28 machine and dts file

2012-08-23 Thread Marek Vasut
Update the mach-mxs machine by removing the enet_clkout(). The new revision of the board doesn't need that. Also, update the DTS file with all the new drivers pulled in the mainline recently, that is, SPI, LRADC, USB. Also, remove bogus AUART3. Signed-off-by: Marek Vasut Cc: Chris Ball Cc: Fabio

[PATCH 1/2] ARM: mx28: Add SPI pinmux into imx28.dtsi

2012-08-23 Thread Marek Vasut
Add this SSP pin multiplexing configuration into the imx28.dtsi file. This covers pinmux for all four SSP ports available on the i.MX28. Signed-off-by: Marek Vasut Cc: Chris Ball Cc: Fabio Estevam Cc: Mark Brown Cc: Shawn Guo --- arch/arm/boot/dts/imx28.dtsi | 61 ++

[PATCH 3/3] spi/topcliff-pch: Fix device remove function

2012-08-23 Thread Guenter Roeck
The call sequence spi_alloc_master/spi_register_master/spi_unregister_master is complete; it reduces the device reference count to zero, which results in device memory being freed. An extra call to spi_master_put is unnecessary and results in an access to free memory. Drop it. Also, the device sub

[PATCH 2/3] spi/tegra: Fix device remove function

2012-08-23 Thread Guenter Roeck
The call to spi_unregister_master() in the device remove function frees device memory, and with it any device local data. However, device local data is still accessed after the call to spi_unregister_master(). Acquire a reference to the SPI master device and release it after cleanup is complete to

[PATCH 1/3] spi/stmp: Fix device remove function

2012-08-23 Thread Guenter Roeck
The call sequence spi_alloc_master/spi_register_master/spi_unregister_master is complete; it reduces the device reference count to zero, which results in device memory being freed. The remove function accesses the freed memory after the call to spi_unregister_master(), _and_ it calls spi_master_put

[PATCH V3] mxs/spi: Fix misuse of init_completion

2012-08-23 Thread Marek Vasut
The init_completion() call does reinit not only the variable carrying the flag that the completion finished, but also initialized the waitqueue associated with the completion. On the contrary, the INIT_COMPLETION() call only reinits the flag. In case there was anything still stuck in the waitqueue

Re: [PATCH V2] mxs/spi: Fix misuse of init_completion

2012-08-23 Thread Marek Vasut
Dear Chris Ball, > Hi Marek, > > On Thu, Aug 23 2012, Marek Vasut wrote: > > The init_completion() call does reinit not only the variable carrying > > the flag that the completion finished, but also initialized the > > waitqueue associated with the completion. On the contrary, the > > INIT_WAITQU

Re: [PATCH V2] mxs/spi: Fix misuse of init_completion

2012-08-23 Thread Chris Ball
Hi Marek, On Thu, Aug 23 2012, Marek Vasut wrote: > The init_completion() call does reinit not only the variable carrying > the flag that the completion finished, but also initialized the > waitqueue associated with the completion. On the contrary, the > INIT_WAITQUEUE() call only reinits the flag

[PATCH] mxs/spi: Add SPI slave mode operation DT prop

2012-08-23 Thread Marek Vasut
This allows user to select the slave mode of operation of the controller. This is by no means standard, see the binding documentation for details, there is plenty of them. Sadly, such knowledge is not provided in the chip documentation. Hopefully, this mode of operation might come useful for people

[PATCH] mxs/spi: Restart the block after unsuccessful transfer

2012-08-23 Thread Marek Vasut
Restart the SSP block in case the SSP transfer failed in any way. The block hung in some cases otherwise. Signed-off-by: Marek Vasut Cc: Chris Ball Cc: Shawn Guo Cc: Mark Brown Cc: Fabio Estevam --- drivers/spi/spi-mxs.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH V2] mxs/spi: Fix misuse of init_completion

2012-08-23 Thread Marek Vasut
The init_completion() call does reinit not only the variable carrying the flag that the completion finished, but also initialized the waitqueue associated with the completion. On the contrary, the INIT_WAITQUEUE() call only reinits the flag. In case there was anything still stuck in the waitqueue,

Re: [PATCH] spi/s3c64xx: Drop extra calls to spi_master_get in suspend/remove functions

2012-08-23 Thread Guenter Roeck
On Thu, Aug 23, 2012 at 02:40:45PM +0900, Kukjin Kim wrote: > Guenter Roeck wrote: > > > > Suspend and resume functions call spi_master_get() without matching > > spi_master_put(). The extra references are unnecessary and cause > > subsequent > > module unload attempts to fail. Drop the calls. > >

[PATCH] spi_dw_midpci: fix oops during modprobe -r

2012-08-23 Thread Andy Shevchenko
In case there were no DMA channel requested the modprobe -r spi_dw_midpci is going to crash. This patch fixes an issue. Signed-off-by: Andy Shevchenko --- drivers/spi/spi-dw-mid.c |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/spi/spi-dw-mid.c b/drivers/spi/

August 2012 Newsletter

2012-08-23 Thread TGI - PGA Golf Pros
If you haven't visited the brand new website, then you are missing out on FREE golf instructional videos from top PGA teaching professionals like Martin Chuck, Mark Evershed, Eddie Merrins and Roger Fredericks. ***View Attached Form*** and find out how you can subscribe to Golfers Insider for