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/2] libata: Add three more columns to the ata_timing table.
Date: Tue, 25 Nov 2008 20:02:15 +0300 [thread overview]
Message-ID: <492C2F97.3000400@ru.mvista.com> (raw)
In-Reply-To: <492C2BCE.60409@caviumnetworks.com>
David Daney wrote:
>>> diff --git a/include/linux/libata.h b/include/linux/libata.h
>>> index 59b0f1c..7c44e45 100644
>>> --- a/include/linux/libata.h
>>> +++ b/include/linux/libata.h
>> [...]
>>> @@ -863,6 +868,9 @@ 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 */
>>> + unsigned short read_hold; /* t6 */
>> -DIOR hold time is 5 ns for all PIO and MWDMA modes -- there's no
>> sense in storing it here.
Oops, that doesn't follow indeed...
> By storing it here, ata_timing_compute() will compute the bus clock
> counts for me. Makes perfect sense to me.
Then let's just put *every* timing specified by the ATA standard there.
That would be consistent at least. :-)
>>> + unsigned short read_holdz; /* t6z or tj */
>> T6z and Tj are not the same timing. Well, you specify it as 0 for
>> DMA modes anyway...
> I had intended to overload this column for DMA, but somehow screwed it
> up. For my next patch I plan to populate this column for DMA modes.
There seems to be no timing "parallel" for T6z in the DMA transfers, so
you'll need another field then. Remember, the PIO and DMA timings are also
"mergeable" -- by selecting the maximum field value of 2 'struct ata_timing'
instances, so there should be no arbitrary field overloading.
> David Daney
WBR, Sergei
next prev parent reply other threads:[~2008-11-25 17:02 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-25 1:36 [PATCH 0/2] libata: Cavium OCTEON SOC Compact Flash driver (v2) David Daney
2008-11-25 1:39 ` [PATCH 1/2] libata: Add three more columns to the ata_timing table David Daney
2008-11-25 11:02 ` Sergei Shtylyov
2008-11-25 16:46 ` David Daney
2008-11-25 17:02 ` Sergei Shtylyov [this message]
2008-11-25 18:51 ` Sergei Shtylyov
2008-11-25 19:09 ` David Daney
2008-11-25 17:00 ` Jeff Garzik
2008-11-25 17:04 ` David Daney
2008-11-25 17:12 ` Alan Cox
2008-11-25 18:41 ` Sergei Shtylyov
2008-11-25 18:47 ` Alan Cox
2008-11-25 1:39 ` [PATCH 2/2] libata: New driver for OCTEON SOC Compact Flash interface (v2) David Daney
2008-11-25 16:59 ` Jeff Garzik
2008-11-25 17:25 ` David Daney
2008-11-25 17:34 ` Alan Cox
2008-11-25 17:37 ` 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=492C2F97.3000400@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).