From: Jeff Garzik <jeff@garzik.org>
To: Tejun Heo <htejun@gmail.com>
Cc: castet.matthieu@free.fr, alan@lxorguk.ukuu.org.uk,
linux-ide@vger.kernel.org, akpm@osdl.org
Subject: Re: [RFT PATCH] libata: implement ATA_FLAG_SETXFER_POLLING and use it in pata_via
Date: Thu, 28 Sep 2006 07:25:21 -0400 [thread overview]
Message-ID: <451BB121.9020702@garzik.org> (raw)
In-Reply-To: <20060928111151.GN25800@htj.dyndns.org>
Tejun Heo wrote:
> This patch implements ATA_FLAG_SETXFER_POLLING and use in pata_via.
> If this flag is set, transfer mode setting performed by polling not by
> interrupt. This should help those controllers which raise interrupt
> before the command is actually complete on SETXFER.
>
> Rationale for this approach.
>
> * uses existing facility and relatively simple
> * no busy sleep in the interrupt handler
> * updating drivers is easy
>
> Signed-off-by: Tejun Heo <htejun@gmail.com>
> ---
>
> Matthieu Castet, can you please test this patch? It's against
> libata-dev#upstream, but -mm might work too. If you want a patch
> against -mm, just let me know.
>
> Jeff, Alan, what do you think about this approach?
If it works, I have no complaints...
> diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
> index 753b015..c71d896 100644
> --- a/drivers/ata/libata-core.c
> +++ b/drivers/ata/libata-core.c
> @@ -4082,7 +4082,8 @@ int ata_hsm_move(struct ata_port *ap, st
>
> fsm_start:
> DPRINTK("ata%u: protocol %d task_state %d (dev_stat 0x%X)\n",
> - ap->id, qc->tf.protocol, ap->hsm_task_state, status);
> + ap->id, qc->tf.protocol, ap->hsm_task_state, status,
> + qc->tf.flags & ATA_TFLAG_POLLING);
You need to update the format string too...
Jeff
next prev parent reply other threads:[~2006-09-28 11:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-28 11:11 [RFT PATCH] libata: implement ATA_FLAG_SETXFER_POLLING and use it in pata_via Tejun Heo
2006-09-28 11:25 ` Jeff Garzik [this message]
2006-09-29 0:28 ` Tejun Heo
2006-09-28 11:51 ` Alan Cox
2006-10-10 18:45 ` matthieu castet
2006-10-10 18:47 ` matthieu castet
2006-10-10 22:09 ` Tejun Heo
2006-11-13 20:29 ` matthieu castet
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=451BB121.9020702@garzik.org \
--to=jeff@garzik.org \
--cc=akpm@osdl.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=castet.matthieu@free.fr \
--cc=htejun@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.