mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.6.11-rc2] ide: driver updates, series 3
@ 2005-02-06 11:26 Tejun Heo
  2005-02-06 11:26 ` [PATCH 2.6.11-rc2 02/04] ide: __ide_do_rw_disk() rewritten ide_write_taskfile() Tejun Heo
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Tejun Heo @ 2005-02-06 11:26 UTC (permalink / raw)
  To: bzolnier, linux-kernel, linux-ide

 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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-02-06 11:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-06 11:26 [PATCH 2.6.11-rc2] ide: driver updates, series 3 Tejun Heo
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

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®