On 4/27/07, Andrei Konovalov <[EMAIL PROTECTED]> wrote:
[ 10.511016] xsysace xsa: kicking stalled fsm; state=3 task=1 iter=2 dc=0
Will have a deeper look tomorrow.
And try CF card too.
At the moment not sure if this the driver issue.
Oops, I messed it up; try the attached change (I had left in a bogus
data_count decrement). Thanks for catching the ptr increment bug.
g.
--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
[EMAIL PROTECTED]
(403) 399-0195
From eefc86e16d1794e67384bb8571129f282c9e3242 Mon Sep 17 00:00:00 2001
From: Grant Likely <[email protected]>
Date: Fri, 27 Apr 2007 12:41:34 -0600
Subject: [PATCH] [SYSACE] Bug fixes to 8 bit binding
Signed-off-by: Grant Likely <[email protected]>
---
drivers/block/xsysace.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/drivers/block/xsysace.c b/drivers/block/xsysace.c
index 5085770..1777529 100644
--- a/drivers/block/xsysace.c
+++ b/drivers/block/xsysace.c
@@ -240,11 +240,10 @@ static void ace_identin_8(struct ace_device *ace)
int i = ACE_FIFO_SIZE/2;
while (i--)
#if defined(__BIG_ENDIAN)
- *ace->data_ptr = (in_8(r)) | (in_8(r+1)<<8);
+ *ace->data_ptr++ = (in_8(r)) | (in_8(r+1)<<8);
#else
- *ace->data_ptr = (in_8(r)<<8) | (in_8(r+1));
+ *ace->data_ptr++ = (in_8(r)<<8) | (in_8(r+1));
#endif
- ace->data_count--;
}
static void ace_datain_8(struct ace_device *ace)
@@ -253,9 +252,9 @@ static void ace_datain_8(struct ace_device *ace)
int i = ACE_FIFO_SIZE/2;
while (i--)
#if defined(__BIG_ENDIAN)
- *ace->data_ptr = (in_8(r)<<8) | (in_8(r+1));
+ *ace->data_ptr++ = (in_8(r)<<8) | (in_8(r+1));
#else
- *ace->data_ptr = (in_8(r)) | (in_8(r+1)<<8);
+ *ace->data_ptr++ = (in_8(r)) | (in_8(r+1)<<8);
#endif
}
--
1.5.1
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded