From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: linux-ide@vger.kernel.org, stf_xl@wp.pl
Subject: Re: [PATCH] ide: add support for CFA specified transfer modes (take 3)
Date: Wed, 11 Mar 2009 20:07:46 +0300 [thread overview]
Message-ID: <49B7EFE2.3010806@ru.mvista.com> (raw)
In-Reply-To: <200903111735.40517.bzolnier@gmail.com>
Bartlomiej Zolnierkiewicz wrote:
>>Add support for the CompactFlash specific PIO modes 5/6 and MWDMA modes 3/4.
>>Since there were no PIO5 capable hard drives produced and one would also need
>>66 MHz IDE clock to actually get the difference WRT the address setup timings
>>programmed, I decided to simply replace the old non-standard PIO mode 5 timings
>>with the CFA specified ones.
>>Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
>>---
>>Changes since the previous take:
>>- added check for CFA modes to 'sl82c105' driver;
>>- added identify word 163 copying to ide_driveid_update();
>>- made change based on just posted ide_config_drive_speed() fixlet...
> applied fixing checkpatch.pl complaint while at it:
> ERROR: space prohibited after that open parenthesis '('
> #199: FILE: drivers/ide/sl82c105.c:64:
> + if ( (pio > 2 || ata_id_has_iordy(drive->id)) && ]
Sigh, that one was done on purpose... :-]
>>--- linux-2.6.orig/drivers/ide/sl82c105.c
>>+++ linux-2.6/drivers/ide/sl82c105.c
>>@@ -61,7 +61,8 @@ static unsigned int get_pio_timings(ide_
>> if (cmd_off == 0)
>> cmd_off = 1;
>>
>>- if (pio > 2 || ata_id_has_iordy(drive->id))
>>+ if ( (pio > 2 || ata_id_has_iordy(drive->id)) &&
>>+ !(pio > 4 && ata_id_is_cfa(drive->id)))
>> iordy = 0x40;
> I guess that it would later make sense to abstract this code into
> ata_id_needs_iordy(id, pio) helper +
Er, if we can't reuse libata's stuff, I'd prefer to put this into
<linux/ide.h> as ide_dev_use_iordy()...
> cleanup sl82c105 and at91_ide host drivers accordingly?
Yes.
WBR, Sergei
next prev parent reply other threads:[~2009-03-11 17:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-10 19:42 [PATCH] ide: add support for CFA specified transfer modes (take 3) Sergei Shtylyov
2009-03-11 1:28 ` Stanislaw Gruszka
2009-03-11 16:35 ` Bartlomiej Zolnierkiewicz
2009-03-11 17:07 ` Sergei Shtylyov [this message]
2009-03-11 17:34 ` Bartlomiej Zolnierkiewicz
2009-03-11 17:49 ` Sergei Shtylyov
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=49B7EFE2.3010806@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=bzolnier@gmail.com \
--cc=linux-ide@vger.kernel.org \
--cc=stf_xl@wp.pl \
/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).