From: Andrei Konovalov <akonovalov@ru.mvista.com>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: Stefan Roese <sr@denx.de>,
linuxppc-embedded@ozlabs.org,
Rick Moleres <rick.moleres@xilinx.com>
Subject: Re: [RFC] SystemACE driver - abstract register ops
Date: Fri, 27 Apr 2007 22:38:56 +0400 [thread overview]
Message-ID: <46324340.5000506@ru.mvista.com> (raw)
In-Reply-To: <528646bc0704270031w5c9966f8tc3a5e5292df10a35@mail.gmail.com>
Hi Grant,
Grant Likely wrote:
> For your reading pleasure, I've attached the bus attachment changes
> that I've made in my tree. I hope to get this driver accepted into
> mainline during the 2.6.22 merge window; so please get any comments
> you have back to me ASAP.
>
> Cheers,
> g.
ML300 + IBM microdrive.
8-bit, __BIG_ENDIAN
(ace->bus_width = 0;)
Have noticed a misprint (see below).
Correcting it seems to make the device geometry to be recognized OK, but then:
[ 3.798449] xsysace xsa: Xilinx SystemACE revision 1.0.12
[ 3.891228] xsysace xsa: capacity: 2104704 sectors
[ 3.973193] xsa:<4>xsysace xsa: kicking stalled fsm; state=3 task=1 iter=2 dc=0
[ 6.103446] xsysace xsa: kicking stalled fsm; state=3 task=1 iter=2 dc=0
[ 7.207342] xsysace xsa: kicking stalled fsm; state=3 task=1 iter=2 dc=0
[ 8.311230] xsysace xsa: kicking stalled fsm; state=3 task=1 iter=2 dc=0
[ 9.411113] xsysace xsa: kicking stalled fsm; state=3 task=1 iter=2 dc=0
[ 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.
Thanks,
Andrei
Index: linux-2.6.20/drivers/block/xsysace.c
===================================================================
--- linux-2.6.20.orig/drivers/block/xsysace.c
+++ linux-2.6.20/drivers/block/xsysace.c
@@ -240,9 +240,9 @@ static void ace_identin_8(struct ace_dev
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--;
}
@@ -253,9 +253,9 @@ static void ace_datain_8(struct ace_devi
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
}
next prev parent reply other threads:[~2007-04-27 18:34 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-27 6:36 [RFC] SystemACE driver - abstract register ops John Williams
2007-04-27 6:48 ` Grant Likely
2007-04-27 7:31 ` Grant Likely
2007-04-27 12:11 ` Stefan Roese
2007-04-27 17:30 ` Wolfgang Reissnegger
2007-05-02 13:23 ` Peter Korsgaard
2007-05-02 16:50 ` Wolfgang Reissnegger
2007-04-27 18:38 ` Andrei Konovalov [this message]
2007-04-27 18:42 ` Grant Likely
2007-05-01 3:42 ` John Williams
2007-05-01 3:53 ` Grant Likely
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46324340.5000506@ru.mvista.com \
--to=akonovalov@ru.mvista.com \
--cc=grant.likely@secretlab.ca \
--cc=linuxppc-embedded@ozlabs.org \
--cc=rick.moleres@xilinx.com \
--cc=sr@denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).