| To: | sshtylyov@ru.mvista.com |
|---|---|
| Subject: | Re: [PATCH 1/2] ide: Add tx4939ide driver |
| From: | Atsushi Nemoto <anemo@mba.ocn.ne.jp> |
| Date: | Thu, 18 Sep 2008 00:12:10 +0900 (JST) |
| Cc: | linux-mips@linux-mips.org, linux-ide@vger.kernel.org, bzolnier@gmail.com, ralf@linux-mips.org |
| In-reply-to: | <48D02C3C.90705@ru.mvista.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20080910.010824.07456636.anemo@mba.ocn.ne.jp> <48D02C3C.90705@ru.mvista.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
On Wed, 17 Sep 2008 01:59:24 +0400, Sergei Shtylyov <sshtylyov@ru.mvista.com>
wrote:
> > + unsigned int *table = hwif->dmatable_cpu;
> >
>
> s/unsigned int/__le32/ perhaps?
Yes. And __le64 would be much better.
> > + while (1) {
> > + cpu_to_le64s((u64 *)table);
> >
>
> Wait, PRD is already already in LE format, so this should be
> le64_to_cpus().
OK.
> > + if (*table & 0x80000000)
> >
>
> Hum... you don't have to check that with ide_build_dmatable()
> returning the PRD count...
Indeed. I'll do it. Thanks.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: MIPS checksum bug, Maciej W. Rozycki |
|---|---|
| Next by Date: | [PATCH 2/2] TXx9: Add TX4939 ATA support (v2), Atsushi Nemoto |
| Previous by Thread: | Re: [PATCH 1/2] ide: Add tx4939ide driver, Sergei Shtylyov |
| Next by Thread: | [PATCH 2/2] TXx9: Add TX4939 ATA support, Atsushi Nemoto |
| Indexes: | [Date] [Thread] [Top] [All Lists] |