From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Alan <alan@lxorguk.ukuu.org.uk>
Cc: jeff@garzik.org, linux-ide@vger.kernel.org
Subject: Re: [PATCH] libata: IORDY handling, quiet handling
Date: Mon, 05 Feb 2007 22:31:25 +0300 [thread overview]
Message-ID: <45C7860D.6010304@ru.mvista.com> (raw)
In-Reply-To: <45C77CF7.60201@ru.mvista.com>
Hello, I wrote:
>> @@ -3466,8 +3529,18 @@
>> tf.command = ATA_CMD_SET_FEATURES;
>> tf.feature = SETFEATURES_XFER;
>> tf.flags |= ATA_TFLAG_ISADDR | ATA_TFLAG_DEVICE;
>> +
>> + /* Older CFA may not support this command */
>> + if (ata_id_is_cfa(dev->id))
>> + tf.flags |= ATA_TFLAG_QUIET;
>> +
>> tf.protocol = ATA_PROT_NODATA;
>> - tf.nsect = dev->xfer_mode;
>> +
>> + /* Ancient devices may need us to avoid IORDY */
>> + if (ata_pio_need_iordy(dev))
>> + tf.nsect = dev->xfer_mode;
>> + else
>> + tf.nsect = 0x01;
> Note that ATA-1 did *not* yet define this subcode (only 0 for "block
> transfer"). I think that we should not change the PIO modes at all on
> non-IORDY drives, otherwise it's becoming pointless and messy -- you're
After thinking a bit more: we should not do it on non-EIDE drives
(however, this is probably the same thing).
If our host by some mischance has no IORDY support and an EIDE drive has
it and supports disabling (otherwise there's little we can do), we must issue
subcode 0x01 and tune our host controller to the default PIO mode.
> not setting what you're told here and force the drive's default mode
> instead... why then change it at all?
Anyway, all this logic should be one layer higher than this function...
MBR, Sergei
next prev parent reply other threads:[~2007-02-05 19:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-05 16:25 [PATCH] libata: IORDY handling, quiet handling Alan
2007-02-05 18:52 ` Sergei Shtylyov
2007-02-05 19:31 ` Sergei Shtylyov [this message]
2007-02-23 10:27 ` Jeff Garzik
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=45C7860D.6010304@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=jeff@garzik.org \
--cc=linux-ide@vger.kernel.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).