]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/ide/ide-disk.c
ide-disk: add ide_tf_set_cmd() helper
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 25 Jan 2008 21:17:16 +0000 (22:17 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 25 Jan 2008 21:17:16 +0000 (22:17 +0100)
commitba76ae3883ad9faa32a6b35271c6a407d6c96ca9
tree72c108e92c043b679f4c98561e92db9c63e2d3e2
parentc52ea915d7fdc96819964b32eb124b5ccd22b9af
ide-disk: add ide_tf_set_cmd() helper

* Add ide_tf_set_cmd() helper for selecting/setting command and data phase
  (note: DMA data phases are there for completness, they are not required ATM).

* Set IDE_TFLAG_WRITE taskfile flag for write requests in __ide_do_rw_disk().

* Convert __ide_do_rw_disk() to use the new ide_tf_set_cmd() helper.

There should be no functionality changes caused by this patch.

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-disk.c