| To: | Atsushi Nemoto <anemo@mba.ocn.ne.jp> |
|---|---|
| Subject: | Re: [PATCH 2/2] TXx9: Add TX4939 ATA support |
| From: | Sergei Shtylyov <sshtylyov@ru.mvista.com> |
| Date: | Thu, 11 Sep 2008 13:35:14 +0400 |
| Cc: | linux-mips@linux-mips.org, linux-ide@vger.kernel.org, Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>, ralf@linux-mips.org |
| In-reply-to: | <20080910.010830.51865999.anemo@mba.ocn.ne.jp> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20080910.010830.51865999.anemo@mba.ocn.ne.jp> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Thunderbird 2.0.0.16 (Windows/20080708) |
Hello. Atsushi Nemoto wrote: Add a helper routine to register tx4939ide driver and use it on RBTX4939 board. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> [...] diff --git a/arch/mips/txx9/generic/setup_tx4939.c b/arch/mips/txx9/generic/setup_tx4939.c index f14a497..ee00bde 100644 --- a/arch/mips/txx9/generic/setup_tx4939.c +++ b/arch/mips/txx9/generic/setup_tx4939.c [...]
Hm, why not declare both IDE platform devices statically an then register them depending on the TX4939_PCFG_ATA[01]MODE bits? This loop doesn't look nice. You could at least have used an array to check TX4939_PCFG_ATA[01]MODE bitmasks but I think it's better to just declare devices statically... MBR, Sergei |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [Patch 2/6] MIPS: Add HARDWARE_WATCHPOINTS definitions and support code., Geert Uytterhoeven |
|---|---|
| Next by Date: | Re: [PATCH 0/3] Globally defining phys_addr_t, Geert Uytterhoeven |
| Previous by Thread: | [PATCH 2/2] TXx9: Add TX4939 ATA support, Atsushi Nemoto |
| Next by Thread: | [PATCH] Fixed holes in SMTC and FPU affinity support. Signed-off-by: Kevin D. Kissell <kevink@paralogos.com>, Kevin D . Kissell |
| Indexes: | [Date] [Thread] [Top] [All Lists] |