On Fri, May 13, 2011 at 09:22:57AM +0530, viresh kumar wrote:
On 05/11/2011 09:37 AM, viresh kumar wrote:
Actually i am seeing a different behavior by some of the spi
memories, like m25p10.
If there is a delay between read_sts_reg command and dummy bytes, then
0xFF is
returned in
On 05/13/2011 12:24 PM, Linus Walleij wrote:
2011/5/13 viresh kumar viresh.ku...@st.com:
Linus, Jamie,
Have you ever seen this kind of issue? Which spi slave memories did you used
for testing?
I am using standard pl0022 and m25p80 driver. Tried in all modes: polling,
interrupt, dma.
If pl022_dma_probe fails, we can try to transfer data in polling or interrupt
mode. Also, set platform_info-enable_dma to 0, so that no other code tries to
use dma.
Signed-off-by: Viresh Kumar viresh.ku...@st.com
---
drivers/spi/amba-pl022.c | 11 ++-
1 files changed, 6 insertions(+),
Linus,
amba/pl022 and my dma driver dw_dmac.c, both have registered init() routines
with subsys_initcall(). Now at bootup, spi boots up before DMA and so DMA
channels are never available at spi probe.
What should be done to solve this issue?
One idea is allocate DMA channel as and when
On 5/13/11, Viresh Kumar viresh.ku...@st.com wrote:
diff --git a/drivers/spi/amba-pl022.c b/drivers/spi/amba-pl022.c
index 08de58e..82b98b8 100644
--- a/drivers/spi/amba-pl022.c
+++ b/drivers/spi/amba-pl022.c
@@ -1063,7 +1063,7 @@ static int __init pl022_dma_probe(struct pl022 *pl022)
2011/5/13 Viresh Kumar viresh.ku...@st.com:
If pl022_dma_probe fails, we can try to transfer data in polling or interrupt
mode. Also, set platform_info-enable_dma to 0, so that no other code tries to
use dma.
Sure why not!
Acked-by: Linus Walleij linus.wall...@linaro.org
Yours,
Linus Walleij
2011/5/13 viresh kumar viresh.ku...@st.com:
amba/pl022 and my dma driver dw_dmac.c, both have registered init() routines
with subsys_initcall(). Now at bootup, spi boots up before DMA and so DMA
channels are never available at spi probe.
What should be done to solve this issue?
If you check
┌─┬─┬─┬─┬─┬─┬─┬─┬─┐
│F┆ ┆=┆优┆择┆根┆ ┆ ┆f│
│Z┆ ┆=┆化┆产┆据┆ ┆ ┆Q│
│F┆ ┆资┆的┆品┆企┆ ┆ ┆7│
│J┆ ┆料┆三┆开┆业┆ ┆ ┆X│
│V┆ ┆见┆个┆发┆的┆ ┆ ┆0│
│P┆ ┆附┆模┆管┆实┆ ┆ ┆Q│
│S┆ ┆w┆式┆6┆际┆ ┆ ┆A│
│G┆ ┆件┆.┆理┆情┆ ┆ ┆J│
│ ┆ ┆.┆=┆体┆况┆ ┆ ┆j│
│ ┆ ┆ ┆=┆系┆选┆ ┆ ┆ │
--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications -