From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: linux-mips@linux-mips.org, linux-ide@vger.kernel.org,
Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
ralf@linux-mips.org
Subject: Re: [PATCH] TXx9: Add TX4938 ATA support (v2)
Date: Thu, 23 Oct 2008 17:37:59 +0400 [thread overview]
Message-ID: <49007E37.5080605@ru.mvista.com> (raw)
In-Reply-To: <20081023.011646.51867355.anemo@mba.ocn.ne.jp>
Hello.
Atsushi Nemoto wrote:
> Add a helper routine to register tx4938ide driver and use it on
> RBTX4938 board.
>
> Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
>
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
> diff --git a/arch/mips/include/asm/txx9/tx4938.h b/arch/mips/include/asm/txx9/tx4938.h
> index 989e775..3dada66 100644
> --- a/arch/mips/include/asm/txx9/tx4938.h
> +++ b/arch/mips/include/asm/txx9/tx4938.h
> @@ -292,4 +292,17 @@ void tx4938_setup_pcierr_irq(void);
> void tx4938_irq_init(void);
> void tx4938_mtd_init(int ch);
>
> +struct tx4938ide_platform_info {
> + /*
> + * I/O port shift, for platforms with ports that are
> + * constantly spaced and need larger than the 1-byte
> + * spacing used by ata_std_ports().
> + */
> + unsigned int ioport_shift;
> + unsigned int gbus_clock; /* 0 means no-autotune. */
>
I'd say "no PIO mode tuning" since the mode can also be changed via
HDIO_SET_PIO_MODE which e.g. 'hdparm -p' calls...
> diff --git a/arch/mips/txx9/generic/setup_tx4938.c b/arch/mips/txx9/generic/setup_tx4938.c
> index af724e5..e6c558e 100644
> --- a/arch/mips/txx9/generic/setup_tx4938.c
> +++ b/arch/mips/txx9/generic/setup_tx4938.c
>
[...]
> @@ -335,6 +336,52 @@ void __init tx4938_mtd_init(int ch)
> txx9_physmap_flash_init(ch, start, size, &pdata);
> }
>
> +void __init tx4938_ata_init(unsigned int irq, unsigned int shift, int tune)
> +{
> + struct platform_device *pdev;
> + struct resource res[] = {
> + {
> + /* .start and .end are filled in later */
> + .flags = IORESOURCE_MEM,
> + }, {
> + .start = irq,
> + .flags = IORESOURCE_IRQ,
> + },
> + };
> + struct tx4938ide_platform_info pdata = {
> + .ioport_shift = shift,
> + /*
> + * The ide driver should not do autotune if other ISA
>
"The IDE driver should not change bus timings", I'd say.
MBR, Sergei
next prev parent reply other threads:[~2008-10-23 13:38 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-22 16:16 [PATCH] TXx9: Add TX4938 ATA support (v2) Atsushi Nemoto
2008-10-23 13:37 ` Sergei Shtylyov [this message]
2008-10-23 14:16 ` Atsushi Nemoto
2008-10-23 16:56 ` Sergei Shtylyov
2008-10-23 20:06 ` Bartlomiej Zolnierkiewicz
2008-10-23 22:21 ` Sergei Shtylyov
2008-10-24 20:52 ` Bartlomiej Zolnierkiewicz
2008-10-24 21:40 ` Ralf Baechle
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=49007E37.5080605@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=anemo@mba.ocn.ne.jp \
--cc=bzolnier@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
/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).