From: Tejun Heo <tj@home-tj.org>
To: bzolnier@gmail.com, linux-kernel@vger.kernel.org,
linux-ide@vger.kernel.org
Subject: [PATCH 2.6.11-rc2] ide: driver updates, series 3
Date: Sun, 6 Feb 2005 20:26:28 +0900 [thread overview]
Message-ID: <20050206112628.GA31274@htj.dyndns.org> (raw)
Hello, Bartlomiej.
Here are four patches which implement taskfile handling functions and
merge flagged_taskfile() into do_rw_taskfile().
I didn't implement separate writing function for flagged taskfile,
rationale being...
1. A single function which properly handles both unflagged and
flagged cases has simpler semantics and, accordingly, less
likely to cause bugs.
If there were two separate functions ide_write_taskfile() and
ide_write_flagged_taskfile(), when somebody tries to add custom
in/out flags to a piece of code which uses unflagged taskfile and
ide_write_taskfile(), it would be easy to set in/out flags but
forget to call ide_write_flagged_taskfile() instead.
2. There virtually is no overhead.
In #03, I moved taskfile reading part of ide_end_drive_cmd() into a
separate function named ide_read_taskfile(), so that taskfile handling
codes can live side-by-side in ide-taskfile.c.
Also, I didn't use any of HWIF, IDE_*_REG macros, as they should go
away. Please tell me what you think about the new referencing style.
[ Start of patch descriptions ]
01_ide_write_taskfile.patch
: ide_write_taskfile() implemented.
ide_write_taskfile(), which writes the content of a ide_task_t
into the IDE taskfile registers, is implemented, and
do_rw_taskfile() and flagged_taskfile() are converted to use
ide_write_taskfile(). Behavior changes are
- flagged taskfile now honors HOB feature register.
- No do_rw_taskfile() HIHI check on select register. Except
for the DEV bit, all bits are honored.
02_ide_do_rw_disk_use_write_taskfile.patch
: __ide_do_rw_disk() rewritten ide_write_taskfile().
__ide_do_rw_disk() rewritten using ide_write_taskfile().
03_ide_read_taskfile.patch
: ide_read_taskfile() implemented.
Status reading part of ide_end_drive_cmd() is moved into
a separate function ide_read_taskfile().
04_ide_merge_rw_and_flagged_taskfile.patch
: merge flagged_taskfile() into do_rw_taskfile()
Merged flagged_taskfile() into do_rw_taskfile(). During the
merge, the following change took place.
- Uses taskfile->data_phase to determine if dma trasfer is
requested. (previously, do_rw_taskfile() directly switched
on taskfile->command for all dma commands)
[ End of patch descriptions ]
Thanks a lot. :-)
--
tejun
next reply other threads:[~2005-02-06 11:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-06 11:26 Tejun Heo [this message]
2005-02-06 11:26 ` [PATCH 2.6.11-rc2 02/04] ide: __ide_do_rw_disk() rewritten ide_write_taskfile() Tejun Heo
2005-02-06 11:26 ` [PATCH 2.6.11-rc2 01/04] ide: ide_write_taskfile() implemented Tejun Heo
2005-02-06 11:26 ` [PATCH 2.6.11-rc2 03/04] ide: ide_read_taskfile() implemented Tejun Heo
2005-02-06 11:26 ` [PATCH 2.6.11-rc2 04/04] ide: merge flagged_taskfile() into do_rw_taskfile() Tejun Heo
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=20050206112628.GA31274@htj.dyndns.org \
--to=tj@home-tj.org \
--cc=bzolnier@gmail.com \
--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®