From: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
To: linux-ide@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] ide-taskfile.c fixups/cleanups part #2 [2/9]
Date: Wed, 30 Jun 2004 17:24:22 +0200 [thread overview]
Message-ID: <200406301724.22337.bzolnier@elka.pw.edu.pl> (raw)
[PATCH] ide: PIO-out ->prehandler() fixes (CONFIG_IDE_TASKFILE_IO=y)
Setup handler and output first data block directly from ->prehandler()
instead of calling ->handler(). The only change in functionality is that
we no longer check DRIVE_READY status bits (there is no need to do it).
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
linux-2.6.7-bk11-bzolnier/drivers/ide/ide-taskfile.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff -puN drivers/ide/ide-taskfile.c~ide_tf_pio_out_prehandler drivers/ide/ide-taskfile.c
--- linux-2.6.7-bk11/drivers/ide/ide-taskfile.c~ide_tf_pio_out_prehandler 2004-06-28 21:21:23.952054632 +0200
+++ linux-2.6.7-bk11-bzolnier/drivers/ide/ide-taskfile.c 2004-06-28 21:21:23.957053872 +0200
@@ -698,7 +698,10 @@ ide_startstop_t pre_task_out_intr (ide_d
if (!drive->unmask)
local_irq_disable();
- return task_out_intr(drive);
+ ide_set_handler(drive, &task_out_intr, WAIT_WORSTCASE, NULL);
+ task_sectors(drive, rq, 1, IDE_PIO_OUT);
+
+ return ide_started;
}
EXPORT_SYMBOL(pre_task_out_intr);
@@ -762,7 +765,10 @@ ide_startstop_t pre_task_mulout_intr (id
if (!drive->unmask)
local_irq_disable();
- return task_mulout_intr(drive);
+ ide_set_handler(drive, &task_mulout_intr, WAIT_WORSTCASE, NULL);
+ task_multi_sectors(drive, rq, IDE_PIO_OUT);
+
+ return ide_started;
}
EXPORT_SYMBOL(pre_task_mulout_intr);
_
reply other threads:[~2004-06-30 15:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=200406301724.22337.bzolnier@elka.pw.edu.pl \
--to=b.zolnierkiewicz@elka.pw.edu.pl \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®