linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov@ru.mvista.com>
To: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: linux-ide@vger.kernel.org
Subject: Re: [PATCH 6/11] ide: remove ide_use_fast_pio()
Date: Mon, 06 Aug 2007 20:13:07 +0400	[thread overview]
Message-ID: <46B74893.2030202@ru.mvista.com> (raw)
In-Reply-To: <200708042209.10987.bzolnier@gmail.com>

Bartlomiej Zolnierkiewicz wrote:

> Remove ide_use_fast_pio() and just re-tune PIO unconditionally if DMA tuning
> has failed in ->ide_dma_check.  All host drivers using ide_use_fast_pio() set
> drive->autotune so PIO is always tuned anyway and in some cases we _really_
> need to re-tune PIO because PIO and DMA timings are shared.

> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>

> Index: b/drivers/ide/ide-lib.c
> ===================================================================
> --- a/drivers/ide/ide-lib.c
> +++ b/drivers/ide/ide-lib.c
> @@ -96,21 +96,6 @@ static u8 ide_rate_filter(ide_drive_t *d
>  	return min(speed, mode);
>  }
>  
> -int ide_use_fast_pio(ide_drive_t *drive)
> -{
> -	struct hd_driveid *id = drive->id;
> -
> -	if ((id->capability & 1) && drive->autodma)
> -		return 1;
> -
> -	if ((id->capability & 8) || (id->field_valid & 2))
> -		return 1;

    This reminds me to some time actually fix handling of pre-EIDE drives in 
ide_config_drive_speed()... :-)

MBR, Sergei

      reply	other threads:[~2007-08-06 16:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-04 20:09 [PATCH 6/11] ide: remove ide_use_fast_pio() Bartlomiej Zolnierkiewicz
2007-08-06 16:13 ` 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=46B74893.2030202@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).