RE: [PATCH v7 03/14] spi/spi-atmel: add physical base address

2013-04-02 Thread Yang, Wenyou
Hi, Mark, -Original Message- From: Yang, Wenyou Sent: 2013年4月2日 13:50 To: 'Mark Brown' Cc: linux-arm-ker...@lists.infradead.org; grant.lik...@secretlab.ca; richard.gen...@gmail.com; plagn...@jcrosoft.com; Ferre, Nicolas; Lin, JM; spi-devel-general@lists.sourceforge.net;

[SPAM] 代/开――发/票

2013-04-02 Thread 15989349144
您好: 现本公司有一部分专用税――票代开; 贵公司如有需要,欢迎您的来电与我联系: 负责人:张先生(0)15989349144 -- Own the Future-Intel(R) Level Up Game Demo Contest 2013 Rise to greatness in Intel's independent game demo contest. Compete for recognition,

Jusqu'à -40 pourcent sur les plus grandes marques de jeans

2013-04-02 Thread Soldes Sojeans
Si le message ne s'affiche pas correctement merci d'accéder cette page http://a.optincake.com/interface/external_view_email.php?AJ8464186625114613220537134 Jusqu'à -40 pourcent sur les plus grandes marques de jeans Jusqu'à -40 pourcent sur les plus grandes marques de jeans Jusqu'à -40

Re: [PATCH 1/5] spi/mxs: Fix extra CS pulses and read mode in multi-transfer messages

2013-04-02 Thread Trent Piepho
On Mon, Apr 1, 2013 at 9:22 PM, Marek Vasut ma...@denx.de wrote: On Mon, Apr 1, 2013 at 4:11 PM, Marek Vasut ma...@denx.de wrote: +#define TXRX_WRITE 1 /* This is a write */ +#define TXRX_DEASSERT_CS 2 /* De-assert CS at end of txrx */ btw. is it necessary to

Re: [PATCH 1/2] spi: add ability to validate xfer-bits_per_word in SPI core

2013-04-02 Thread Trent Piepho
On Mon, Apr 1, 2013 at 7:36 PM, Stephen Warren swar...@wwwdotorg.org wrote: On 04/01/2013 01:52 PM, Trent Piepho wrote: On Tue, Mar 26, 2013 at 7:37 PM, Stephen Warren swar...@wwwdotorg.org wrote: Allow SPI masters to define the set of bits_per_word values they support. If they do this, then

Re: [PATCH v4 0/5] Enable SPI flash support on da850-evm DT kernel

2013-04-02 Thread Sekhar Nori
On 3/20/2013 4:44 PM, Sekhar Nori wrote: Grant, On 3/20/2013 4:16 PM, Manjunathappa, Prakash wrote: Patch enables support for m25p64 SPI flash support on da850-EVM. With your ack, I would like to merge this series through davinci tree for v3.10. This will help manage dependencies for DT

Re: [PATCH 1/2] spi: add ability to validate xfer-bits_per_word in SPI core

2013-04-02 Thread Trent Piepho
On Tue, Apr 2, 2013 at 2:45 AM, Mark Brown broo...@opensource.wolfsonmicro.com wrote: I think if we're getting down to looking at the disassembly we're perhaps overoptimising - in the common case we're then going to start the hardware doing a data transfer which will take rather more time than

Re: [PATCH 1/5] spi/mxs: Fix extra CS pulses and read mode in multi-transfer messages

2013-04-02 Thread Marek Vasut
Dear Trent Piepho, On Mon, Apr 1, 2013 at 9:22 PM, Marek Vasut ma...@denx.de wrote: On Mon, Apr 1, 2013 at 4:11 PM, Marek Vasut ma...@denx.de wrote: +#define TXRX_WRITE 1 /* This is a write */ +#define TXRX_DEASSERT_CS 2 /* De-assert CS at end of txrx */

Re: [PATCH 1/2] spi: add ability to validate xfer-bits_per_word in SPI core

2013-04-02 Thread Jonas Gorski
On 2 April 2013 12:12, Trent Piepho tpie...@gmail.com wrote: On Tue, Apr 2, 2013 at 2:45 AM, Mark Brown broo...@opensource.wolfsonmicro.com wrote: I think if we're getting down to looking at the disassembly we're perhaps overoptimising - in the common case we're then going to start the

[PATCH V2 05/12] spi/mxs: Fix chip select control bits in DMA mode

2013-04-02 Thread Trent Piepho
In DMA mode the chip select control bits would be ORed into the CTRL0 register without first clearing the bits. This means that after addressing slave 1 the bit would be still be set when addressing slave 0, resulting in slave 1 continuing to be addressed. The message handing function would pass

[PATCH V2 07/12] spi/mxs: Remove bogus setting of ssp clk rate field

2013-04-02 Thread Trent Piepho
The ssp struct has a clock rate field, to provide the actual value, in Hz, of the SSP output clock (the rate of SSP_SCK) after mxs_ssp_set_clk_rate() is called. It should be read-only, except for mxs_ssp_set_clk_rate(). For some reason the spi-mxs driver decides to write to this field on init,

[PATCH V2 01/12] spi/mxs: Always set LOCK_CS

2013-04-02 Thread Trent Piepho
There are two bits which control the CS line in the CTRL0 register: LOCK_CS and IGNORE_CRC. The latter would be better named DEASSERT_CS in SPI mode. LOCK_CS keeps CS asserted though the entire transfer. This should always be set. The DMA code will always set it, explicitly on the first

[PATCH V2 02/12] spi/mxs: Remove mxs_spi_enable and mxs_spi_disable

2013-04-02 Thread Trent Piepho
These functions do nothing but one single writel call and are only called in once. And the names really aren't accurate or clear, since they don't enable or disble SPI. Rather they set the bit that controls the state of CS at the end of transfer. It easier to follow the code to just set this

[PATCH V2 03/12] spi/mxs: Change flag arguments in txrx functions to bit flags

2013-04-02 Thread Trent Piepho
There are three flag arguments to the PIO and DMA txrx functions. Two are passed as pointers to integers, even though they are input only and not modified, which makes no sense to do. The third is passed as an integer. The compiler must use an argument register or stack variable for each flag

[PATCH V2 11/12] spi/mxs: Don't set clock for each xfer

2013-04-02 Thread Trent Piepho
mxs_spi_setup_transfer() would set the SSP SCK rate every time it was called, which is before each transfer. It is uncommon for the SCK rate to change between transfers and this causes unnecessary reprogramming of the clock registers. Changed to only set the rate when it has changed. This

[PATCH V2 12/12] spi/mxs: Use u32 instead of uint32_t

2013-04-02 Thread Trent Piepho
It's consistent with all the other spi drivers that way. Signed-off-by: Trent Piepho tpie...@gmail.com Cc: Marek Vasut ma...@denx.de Cc: Fabio Estevam fabio.este...@freescale.com Cc: Shawn Guo shawn@linaro.org --- drivers/spi/spi-mxs.c | 10 +- 1 file changed, 5 insertions(+), 5

[PATCH V2 06/12] spi/mxs: Remove full duplex check, spi core already does it

2013-04-02 Thread Trent Piepho
Because the driver sets the SPI_MASTER_HALF_DUPLEX flag, the spi core will check transfers to insure they are not full duplex. It's not necessary to check that in the mxs driver as well. Signed-off-by: Trent Piepho tpie...@gmail.com Cc: Marek Vasut ma...@denx.de Cc: Fabio Estevam

[PATCH V2 10/12] spi/mxs: Clean up setup_transfer function

2013-04-02 Thread Trent Piepho
It can't be called with a NULL transfer anymore so it can be simplified to not check for that. Change printouts to more closely match what the spi core would print. I.e., don't print function names. Try to make them clearer. Fix indention of line-wrapped code to Linux standard. The transfer

[PATCH V2 08/12] spi/mxs: Fix race in setup method

2013-04-02 Thread Trent Piepho
Despite many warnings in the SPI documentation and code, the spi-mxs driver sets shared chip registers in the -setup method. This method can be called when transfers are in progress on other slaves controlled by the master. Setting registers or any other shared state will corrupt those

[PATCH V2 09/12] spi/mxs: Remove check of spi mode bits

2013-04-02 Thread Trent Piepho
The spi core already checks for a slave setting mode bits that we didn't list as supported when the master was registered. There is no need to do it again in the master driver. Signed-off-by: Trent Piepho tpie...@gmail.com Cc: Marek Vasut ma...@denx.de Cc: Fabio Estevam

Re: [PATCH 1/5] spi/mxs: Fix extra CS pulses and read mode in multi-transfer messages

2013-04-02 Thread Trent Piepho
On Tue, Apr 2, 2013 at 3:32 AM, Marek Vasut ma...@denx.de wrote: Don't see anything in CodingStyle that one should be preferred over the other. There ain't any I'm aware of, but to paraphrase you, let's keep the format that's already used in the driver ;-) : 114 if (dev-mode

Gagnez 1 camping car

2013-04-02 Thread Lucky Camping Car
(http://obfm40.com/usle4mjlh0kqwqguhy/index0.html) (http://obfm40.com/eql3omzvhw4gegou3l/index1.html) Félicitations , Nous sommes heureux de vous inviter à gagner votre camping car ou un chèque de 30 000 euros en participant à notre jeu. (http://obfm40.com/kllurmlmhisq0cqzis/index2.html)

Invitation - Please Complete Your Profile

2013-04-02 Thread Kevin S. Myers
FROM: Worldwide Registry for Business Professionals TO: spi-devel-general@lists.sourceforge.net RE: Worldwide Registry Publication Hello, You were recently chosen to represent your professional community, deeming you eligible for the inclusion in the new 2013 Edition of Worldwide Registry for

Re: [PATCH V2 01/12] spi/mxs: Always set LOCK_CS

2013-04-02 Thread Marek Vasut
Dear Trent Piepho, There are two bits which control the CS line in the CTRL0 register: LOCK_CS and IGNORE_CRC. The latter would be better named DEASSERT_CS in SPI mode. LOCK_CS keeps CS asserted though the entire transfer. This should always be set. The DMA code will always set it,

Re: [PATCH V2 03/12] spi/mxs: Change flag arguments in txrx functions to bit flags

2013-04-02 Thread Marek Vasut
Dear Trent Piepho, There are three flag arguments to the PIO and DMA txrx functions. Two are passed as pointers to integers, even though they are input only and not modified, which makes no sense to do. The third is passed as an integer. The compiler must use an argument register or

Re: [PATCH V2 05/12] spi/mxs: Fix chip select control bits in DMA mode

2013-04-02 Thread Marek Vasut
Dear Trent Piepho, In DMA mode the chip select control bits would be ORed into the CTRL0 register without first clearing the bits. This means that after addressing slave 1 the bit would be still be set when addressing slave 0, resulting in slave 1 continuing to be addressed. The message

Re: [PATCH V2 08/12] spi/mxs: Fix race in setup method

2013-04-02 Thread Marek Vasut
Dear Trent Piepho, Despite many warnings in the SPI documentation and code, the spi-mxs driver sets shared chip registers in the -setup method. This method can be called when transfers are in progress on other slaves controlled by the master. Setting registers or any other shared state will

Re: [PATCH V2 10/12] spi/mxs: Clean up setup_transfer function

2013-04-02 Thread Marek Vasut
Dear Trent Piepho, It can't be called with a NULL transfer anymore so it can be simplified to not check for that. Change printouts to more closely match what the spi core would print. I.e., don't print function names. Try to make them clearer. Fix indention of line-wrapped code to Linux

Re: [PATCH V2 11/12] spi/mxs: Don't set clock for each xfer

2013-04-02 Thread Marek Vasut
Dear Trent Piepho, mxs_spi_setup_transfer() would set the SSP SCK rate every time it was called, which is before each transfer. It is uncommon for the SCK rate to change between transfers and this causes unnecessary reprogramming of the clock registers. Changed to only set the rate when it

Re: [PATCH 1/5] spi/mxs: Fix extra CS pulses and read mode in multi-transfer messages

2013-04-02 Thread Marek Vasut
Dear Trent Piepho, On Tue, Apr 2, 2013 at 3:32 AM, Marek Vasut ma...@denx.de wrote: Don't see anything in CodingStyle that one should be preferred over the other. There ain't any I'm aware of, but to paraphrase you, let's keep the format that's already used in the driver ;-) :

Re: [PATCH V2 01/12] spi/mxs: Always set LOCK_CS

2013-04-02 Thread Shawn Guo
On Tue, Apr 02, 2013 at 05:19:44AM -0700, Trent Piepho wrote: There are two bits which control the CS line in the CTRL0 register: LOCK_CS and IGNORE_CRC. The latter would be better named DEASSERT_CS in SPI mode. LOCK_CS keeps CS asserted though the entire transfer. This should always be

Re: [PATCH V2 08/12] spi/mxs: Fix race in setup method

2013-04-02 Thread Trent Piepho
On Tue, Apr 2, 2013 at 4:31 PM, Marek Vasut ma...@denx.de wrote: static int mxs_spi_setup(struct spi_device *dev) { - int err = 0; - if (!dev-bits_per_word) dev-bits_per_word = 8; if (dev-mode ~(SPI_CPOL | SPI_CPHA)) return -EINVAL; -

Re: [PATCH V2 08/12] spi/mxs: Fix race in setup method

2013-04-02 Thread Marek Vasut
Dear Trent Piepho, On Tue, Apr 2, 2013 at 4:31 PM, Marek Vasut ma...@denx.de wrote: static int mxs_spi_setup(struct spi_device *dev) { - int err = 0; - if (!dev-bits_per_word) dev-bits_per_word = 8; if (dev-mode ~(SPI_CPOL |

RE: [PATCH v7 06/14] spi/spi-atmel: add flag to controller data for lock operations

2013-04-02 Thread Yang, Wenyou
Hi, Mark, -Original Message- From: Mark Brown [mailto:broo...@opensource.wolfsonmicro.com] Sent: 2013年4月1日 21:46 To: Yang, Wenyou Cc: linux-arm-ker...@lists.infradead.org; grant.lik...@secretlab.ca; richard.gen...@gmail.com; plagn...@jcrosoft.com; Ferre, Nicolas; Lin, JM;

[SPAM] Votre mutuelle surcomplémentaire à partir de 8,90 euros.

2013-04-02 Thread Assurialis
(http://obfm40.com/2hnmcimipydycin5xq/index0.html) (http://obfm40.com/tunzeilqpu0sqh45co/index1.html) (http://obfm40.com/03nptiz0p5eyrrwafg/index2.html) (http://obfm40.com/benw3ijwpxwsimza1j/index3.html) (http://obfm40.com/u3mvtcg23bky1nwmmo/index4.html)

[PATCH v8 0/8] spi/spi-atmel: add dmaengine support for atmel spi controller and to test the device tree support

2013-04-02 Thread Wenyou Yang
Hi Mark, The work is based on Nicolas and Richard's work. It is based on v3.9-rc5 + Joachim Eastwood's spi/atmel: fix speed_hz check in atmel_spi_transfer() + the following four patches of the version 7 series, which you've applied. - detect the capabilities