spi read issue
Hi,
If the following program is performed for touch screen control, we expect 1 tx command for controlling SPI and 2 Rx commands for reading data
---------------------------------
spi_message_init(m);
/* y- still on; turn on only y+ (and ADC) */
ts->read_y = READ_Y(vref);
x->tx_buf = &ts->read_y;
x->len = 1;
spi_message_add_tail(x, m);
x++;
x->rx_buf = &ts->tc.y;
x->len = 2;
spi_message_add_tail(x, m);
m->complete = ads7846_rx_val;
m->context = ts;
m++;
---------------------------------------
But we see 1 set of CLK for tx command and three sets of CLK for Rx read Is it that the redundant clk set may cause slippage of data?
Regards,
Girish
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
We are handling this issue.
Regards,
Girish
Quoted 40 lines
-----Original Message-----
From: spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:spi-devel-general-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Girish
Sent: Wednesday, January 23, 2008 8:01 PM
To: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [spi-devel-general] spi read issueHi,
If the following program is performed for touch screen control, we expect
1 tx command for controlling SPI and 2 Rx commands for reading data---------------------------------
spi_message_init(m);/* y- still on; turn on only y+ (and ADC) */
ts->read_y=READ_Y(vref);x->tx_buf=&ts->read_y;x->len= 1;spi_message_add_tail(x, m);x++;
x->rx_buf=&ts->tc.y;x->len= 2;spi_message_add_tail(x, m);
m->complete=ads7846_rx_val;m->context= ts;m++;
---------------------------------------But we see 1 set of CLK for tx command and three sets of CLK for Rx read Is it that the redundant clk set may cause slippage of data?
Regards,
Girish
Quoted 10 lines
---------------------------------------------------------------
----------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
spi-devel-general mailing list spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/spi-devel-general
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Quoted 2 lines · Girish
We are handling this issue.
Could you elaborate?
I'd think the underlying SPI controller driver has a bug there. This "extra RX transfer" case reminds me of an odd case in the OMAP2 McSPI controller driver, which I thought had been resolved...
- Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Quoted 6 lines
-----Original Message-----
From: David Brownell [mailto:david-b-yBeKhBN/[email protected]]Quoted 1 line
Quoted 8 lines
Quoted 1 line
We are handling this issue.
Could you elaborate?
I'd think the underlying SPI controller driver has a bug there. This "extra RX transfer" case reminds me of an odd case in the OMAP2 McSPI controller driver, which I thought had been resolved...
Yes, this is about extra read cycle in rx-only transfer. I figured out the patches for this fix, I had missed out earlier.
Thanks,
Girish
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/