From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: bzolnier@gmail.com
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH] ide: identify data word 53 bit 1 doesn't cover words 62 and 63
Date: Tue, 03 Mar 2009 00:46:41 +0300 [thread overview]
Message-ID: <49AC53C1.5050904@ru.mvista.com> (raw)
In-Reply-To: <200903022009.50660.sshtylyov@ru.mvista.com>
Hello, i wrote:
> The IDE code assumed for years that the but 1 of the identify data word 53 also
> covers SW/MW DMA information in words 62 and 63 but is has always covered only
> words 64 thru 70, with words 62 and 63 being defined by the original ATA spec.,
> not by ATA-2...
>
> This fix however should only concern *very* old hard disks and rather old CF
> cards...
>
> Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
>
> ---
> This patch is against the recent Linus' tree...
>
> drivers/ide/ide-dma-sff.c | 5 ++---
> drivers/ide/ide-dma.c | 32 ++++++++++++++------------------
> 2 files changed, 16 insertions(+), 21 deletions(-)
>
> Index: linux-2.6/drivers/ide/ide-dma-sff.c
> ===================================================================
> --- linux-2.6.orig/drivers/ide/ide-dma-sff.c
> +++ linux-2.6/drivers/ide/ide-dma-sff.c
> @@ -38,9 +38,8 @@ int config_drive_for_dma(ide_drive_t *dr
> * Enable DMA on any drive that has mode2 DMA
> * (multi or single) enabled
> */
> - if (id[ATA_ID_FIELD_VALID] & 2) /* regular DMA */
> - if ((id[ATA_ID_MWDMA_MODES] & 0x404) == 0x404 ||
> - (id[ATA_ID_SWDMA_MODES] & 0x404) == 0x404)
> + if ((id[ATA_ID_MWDMA_MODES] & 0x404) == 0x404 ||
> + (id[ATA_ID_SWDMA_MODES] & 0x404) == 0x404)
> return 1;
>
Oops, this needs to be moved to the left. I'll repost.
MBR, Sergei
prev parent reply other threads:[~2009-03-02 21:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-02 17:09 [PATCH] ide: identify data word 53 bit 1 doesn't cover words 62 and 63 Sergei Shtylyov
2009-03-02 21:46 ` Sergei Shtylyov [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=49AC53C1.5050904@ru.mvista.com \
--to=sshtylyov@ru.mvista.com \
--cc=bzolnier@gmail.com \
--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).