From: Igor Plyatov <plyatov@gmail.com>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org, stf_xl@wp.pl
Subject: Re: [PATCH] ATA: pata_at91.c bugfixes
Date: Thu, 12 May 2011 16:05:09 +0400 [thread overview]
Message-ID: <4DCBCCF5.5040501@gmail.com> (raw)
In-Reply-To: <4DB4433A.5000609@pobox.com>
Hi Jeff!
> On 04/20/2011 07:44 AM, Igor Plyatov wrote:
>> * Fix "initial_timing" structure initialisation. The "struct
>> ata_timing" must
>> contain 10 members, but ".dmack_hold" member was not initialised.
>> * The AT91SAM9 microcontrollers use special coding scheme for SMC_SETUP,
>> SMC_PULSE, SMC_CYCLE registers.
>> Old driver operates correctly only with low master clock values, but
>> with high master clock it incorrectly calculates SMC values and stops
>> to operate, because SMC can be setup only to admissible ranges in
>> special
>> format.
>> New code correctly calculates SMC registers values, adjusts
>> calculated
>> to admissible ranges, enlarges cycles if required and converts values
>> into SMC's format.
>> * Old driver calculates CS_SETUP and CS_PULSE cycles incorrectly
>> because of wrong assumptions.
>> New code calculates:
>> CS_SETUP = SETUP/2
>> CS_PULSE = PULSE + SETUP/2 + HOLD/2
>> * This fixes allows to correctly operate with any master clock
>> frequency.
>>
>> Signed-off-by: Igor Plyatov<plyatov@gmail.com>
>> ---
>> drivers/ata/pata_at91.c | 223
>> ++++++++++++++++++++++++++++++++---------------
>> 1 files changed, 154 insertions(+), 69 deletions(-)
>
> FYI, the two previous "v4" patches are now applied.
>
> Based on the comments from Stanislaw, this patch would need to be
> updated anyway.
Thank you for info!
I will update this patch.
Best regards!
--
Igor Plyatov
prev parent reply other threads:[~2011-05-12 12:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-20 11:44 [PATCH] ATA: pata_at91.c bugfixes Igor Plyatov
2011-04-23 9:36 ` Stanislaw Gruszka
2011-04-26 6:38 ` Igor Plyatov
2011-04-27 18:38 ` Stanislaw Gruszka
2011-04-29 7:56 ` Stanisław Gruszka
2011-04-24 15:35 ` Jeff Garzik
2011-05-12 12:05 ` Igor Plyatov [this message]
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=4DCBCCF5.5040501@gmail.com \
--to=plyatov@gmail.com \
--cc=jgarzik@pobox.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@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).