linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: David Daney <ddaney@caviumnetworks.com>
Cc: linux-ide@vger.kernel.org, linux-mips@linux-mips.org
Subject: Re: [PATCH 1/3] libata: Add two more columns to the ata_timing table.
Date: Wed, 10 Dec 2008 14:42:25 +0300	[thread overview]
Message-ID: <493FAB21.2030905@ru.mvista.com> (raw)
In-Reply-To: <1228786798-20369-1-git-send-email-ddaney@caviumnetworks.com>

Hello.

David Daney wrote:

> The forthcoming OCTEON SOC Compact Flash driver needs a few more
> timing values than were available in the ata_timing table.  I add new
> columns for write_hold and dmack_hold times.  The values were obtained
> from the Compact Flash specification Rev 4.1.
>
> Signed-off-by: David Daney <ddaney@caviumnetworks.com>
>   

   Well, you got it right except fot the SWDMA modes. :-)

> diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
> index 5e2eb74..b156d83 100644
> --- a/drivers/ata/libata-core.c
> +++ b/drivers/ata/libata-core.c
> @@ -2953,33 +2953,33 @@ int sata_set_spd(struct ata_link *link) 
>   
[...]
> +	{ XFER_SW_DMA_0, 120,   0,   0,   0, 480, 480, 30, 20, 960,   0 },
> +	{ XFER_SW_DMA_1,  90,   0,   0,   0, 240, 240, 30, 20, 480,   0 },
> +	{ XFER_SW_DMA_2,  60,   0,   0,   0, 120, 120, 15, 20, 240,   0 },
>   

   Well, I don't know what CF 4.1 has but ATA/ATA-2 have minimum -DIOx 
to -DMACK hold time (tJ) for SW DMA modes always 0 ns, and -DIOW data 
hold time (tH) of 50, 30, and 20 for modes 0, 1, and 2 respectfully.

> @@ -864,6 +868,8 @@ struct ata_timing {
>  	unsigned short cyc8b;		/* t0 for 8-bit I/O */
>  	unsigned short active;		/* t2 or tD */
>  	unsigned short recover;		/* t2i or tK */
> +	unsigned short write_hold;	/* t4 */
>   

   The comment should be "t4 or tH", to be completely correct.

MBR, Sergei




  reply	other threads:[~2008-12-10 11:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-09  1:37 [PATCH 0/3] libata: Cavium OCTEON SOC Compact Flash driver (v4) David Daney
2008-12-09  1:39 ` [PATCH 1/3] libata: Add two more columns to the ata_timing table David Daney
2008-12-10 11:42   ` Sergei Shtylyov [this message]
2008-12-10 12:12     ` Sergei Shtylyov
2008-12-09  1:39 ` [PATCH 2/3] libata: Add special ata_pio_need_iordy() handling for Compact Flash David Daney
2008-12-09  1:39 ` [PATCH 3/3] libata: New driver for OCTEON SOC Compact Flash interface (v3) David Daney

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=493FAB21.2030905@ru.mvista.com \
    --to=sshtylyov@ru.mvista.com \
    --cc=ddaney@caviumnetworks.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-mips@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).