[patch] spi/spidev: handle integer wrap in spidev_message()

2011-10-18 Thread Dan Carpenter
k_tmp-len and total are unsigned integers. The first message could be close to bufsiz (4096) and then the next message could be 4GB which would cause an integer overflow. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com --- I have not tested this. diff --git a/drivers/spi/spidev.c

Re: [PATCH 1/3] spi/pl022: fix build warnings

2011-10-18 Thread Viresh Kumar
On 10/17/2011 6:42 PM, Linus WALLEIJ wrote: From: Jonas Aaberg jonas.ab...@stericsson.com The driver build complains with newer compilers unless you initialize this struct properly. Signed-off-by: Jonas Aaberg jonas.ab...@stericsson.com Signed-off-by: Linus Walleij

Re: [PATCH 3/3] spi/pl022: skip default configuration before suspending

2011-10-18 Thread Viresh Kumar
On 10/17/2011 6:42 PM, Linus WALLEIJ wrote: From: Virupax Sadashivpetimath virupax.sadashivpetim...@stericsson.com The loading of the default configuration before suspending has been in the driver since its inception, but it is not really needed. Especially so since we take to all the

Re: [PATCH 2/3] spi/pl022: disable the PL022 block when unused

2011-10-18 Thread Russell King - ARM Linux
On Tue, Oct 18, 2011 at 02:43:27PM +0530, Viresh Kumar wrote: On 10/17/2011 6:42 PM, Linus WALLEIJ wrote: From: Virupax Sadashivpetimath virupax.sadashivpetim...@stericsson.com Make sure we clear the enable bit when the block is not used. This will save some energy in certain hardware

Re: [PATCH 3/3] spi/pl022: skip default configuration before suspending

2011-10-18 Thread Russell King - ARM Linux
On Tue, Oct 18, 2011 at 02:43:34PM +0530, Viresh Kumar wrote: On 10/17/2011 6:42 PM, Linus WALLEIJ wrote: From: Virupax Sadashivpetimath virupax.sadashivpetim...@stericsson.com The loading of the default configuration before suspending has been in the driver since its inception, but it

SPI Slave Mode

2011-10-18 Thread Holdsworth, Joel
Hi All, My team are working on an embedded system where we need our application processor to be an SPI slave. The documentation that I have read is very clear that this is currently not supported. I am trying to find out if there is any work planned or underway to add support for this feature, or

Re: SPI Slave Mode

2011-10-18 Thread Ned Forrester
On 10/18/2011 06:13 AM, Holdsworth, Joel wrote: Hi All, My team are working on an embedded system where we need our application processor to be an SPI slave. The documentation that I have read is very clear that this is currently not supported. I am trying to find out if there is any work

RE: SPI Slave Mode

2011-10-18 Thread Holdsworth, Joel
Thanks for your quick answer Ned. It sounds like the best solution for our bespoke application, would be to implement a half-duplex driver designed to simply collect the data from the bespoke master, and then process the packet offline when the slave select goes high. -Original Message-

Le guide AGIR des monte-escaliers

2011-10-18 Thread Guide agir par Planduweb
Pour voir le message, veuillez utiliser un lecteur de mail compatible HTML Lien miroir : http://mail.mc10.fr/mc10_m/YT0xMyZiPTIyMDImYz0yMTkwMDMwMyZkPTIwMTEtMTAtMTggMTU6NDA6MDEmZT0xJmY9MjIwMiZnPTIyMDImaD0yMjAy Lien de désinscription :

Re: SPI Slave Mode

2011-10-18 Thread Grant Likely
On Tue, Oct 18, 2011 at 6:10 AM, Ned Forrester nforres...@whoi.edu wrote: On 10/18/2011 06:13 AM, Holdsworth, Joel wrote: Hi All, My team are working on an embedded system where we need our application processor to be an SPI slave. The documentation that I have read is very clear that this

[SPAM] Mobile Device Management Report 2011-2016

2011-10-18 Thread Jerry Burke
Mobile Device Management Report 2011-2016 -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more.

Help with freescale p1010 based espi implementation.

2011-10-18 Thread Robin Holt
I am a newbie to SPI and Broadcom Robo switch parts, so any correction to my direction early on is _VERY_ welcome. The Freescale P1010 communications SOC includes an ESPI controller which works with the spi-fsl-espi.c driver. In that driver, the chip selects are limited to 4 by the SPCOM_CS