login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2009
»
February
»
16
Re: [PATCH 13/18] ide: use ->tf_load in SELECT_DRIVE()
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Sergei Shtylyov
Subject:
Re: [PATCH 13/18] ide: use ->tf_load in SELECT_DRIVE()
Date: Monday, February 16, 2009 - 4:50 am
Hello, I wrote:
quoted text
>>> There should be no functional changes caused by this patch. >>> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> >>> Index: b/drivers/ide/ide-iops.c >>> =================================================================== >>> --- a/drivers/ide/ide-iops.c >>> +++ b/drivers/ide/ide-iops.c >>> @@ -88,11 +88,15 @@ void SELECT_DRIVE (ide_drive_t *drive) >>> { >>> ide_hwif_t *hwif = drive->hwif; >>> const struct ide_port_ops *port_ops = hwif->port_ops; >>> + ide_task_t task; >>> >>> if (port_ops && port_ops->selectproc) >>> port_ops->selectproc(drive); >>> >>> - hwif->OUTB(drive->select.all, hwif->io_ports.device_addr); >>> + memset(&task, 0, sizeof(task)); >>> + task.tf_flags = IDE_TFLAG_OUT_DEVICE; >>> + >>> + drive->hwif->tf_load(drive, &task); >> >> This actually doesn't seem like a bright idea to me, considering >> that this gets called when starting every request. How will you look >> at me adding the transport method for writing this register? :-) > Convert SELECT_DRIVE() to use ->tf_load instead of ->OUTB. > > OTOH, adding such a "backdoor" to the taskfile doesn't seem very > consistent... well, I'm not excited about the whole idea conversion to > tf_{load|read}() -- it's not clear what exactly this bought us.
We at least could have saved on memset() -- tf_load() method ignores fields other than tf_flags anyway... MBR, Sergei --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 01/18] ide: add ->read_sff_dma_status method
, Bartlomiej Zolnierki ...
, (Fri Jun 20, 2:33 pm)
[PATCH 02/18] ide: use I/O ops directly in ide-dma.c
, Bartlomiej Zolnierki ...
, (Fri Jun 20, 2:33 pm)
[PATCH 03/18] ide: remove ->dma_{status,command} fields fr ...
, Bartlomiej Zolnierki ...
, (Fri Jun 20, 2:33 pm)
[PATCH 04/18] ide: remove ide_setup_dma()
, Bartlomiej Zolnierki ...
, (Fri Jun 20, 2:33 pm)
[PATCH 05/18] ide: factor out simplex handling from ide_pc ...
, Bartlomiej Zolnierki ...
, (Fri Jun 20, 2:33 pm)
[PATCH 06/18] ide: add ->exec_command method
, Bartlomiej Zolnierki ...
, (Fri Jun 20, 2:34 pm)
[PATCH 07/18] ide: add ->read_status method
, Bartlomiej Zolnierki ...
, (Fri Jun 20, 2:34 pm)
[PATCH 08/18] ide: add ->read_altstatus method
, Bartlomiej Zolnierki ...
, (Fri Jun 20, 2:34 pm)
[PATCH 09/18] ide: add ->set_irq method
, Bartlomiej Zolnierki ...
, (Fri Jun 20, 2:34 pm)
[PATCH 10/18] ide: change order of register access in ide_ ...
, Bartlomiej Zolnierki ...
, (Fri Jun 20, 2:34 pm)
[PATCH 11/18] ide: use ->tf_load in ide_config_drive_speed()
, Bartlomiej Zolnierki ...
, (Fri Jun 20, 2:34 pm)
[PATCH 12/18] ide: use ->tf_load in actual_try_to_identify()
, Bartlomiej Zolnierki ...
, (Fri Jun 20, 2:34 pm)
[PATCH 13/18] ide: use ->tf_load in SELECT_DRIVE()
, Bartlomiej Zolnierki ...
, (Fri Jun 20, 2:34 pm)
[PATCH 14/18] ide: use ->tf_read in ide_read_error()
, Bartlomiej Zolnierki ...
, (Fri Jun 20, 2:34 pm)
[PATCH 15/18] ide: add ide_read_device() helper
, Bartlomiej Zolnierki ...
, (Fri Jun 20, 2:35 pm)
[PATCH 16/18] ide: add ide_read_ireason() helper
, Bartlomiej Zolnierki ...
, (Fri Jun 20, 2:35 pm)
[PATCH 17/18] ide: add ide_read_bcount_and_ireason() helper
, Bartlomiej Zolnierki ...
, (Fri Jun 20, 2:35 pm)
[PATCH 18/18] ide: remove ->INB, ->OUTB and ->OUTBSYNC methods
, Bartlomiej Zolnierki ...
, (Fri Jun 20, 2:35 pm)
Re: [PATCH 04/18] ide: remove ide_setup_dma()
, Sergei Shtylyov
, (Fri Jun 20, 3:03 pm)
Re: [PATCH 12/18] ide: use ->tf_load in actual_try_to_iden ...
, Sergei Shtylyov
, (Fri Jun 20, 4:14 pm)
Re: [PATCH 04/18] ide: remove ide_setup_dma()
, Bartlomiej Zolnierki ...
, (Sat Jun 21, 12:06 pm)
Re: [PATCH 12/18] ide: use ->tf_load in actual_try_to_iden ...
, Bartlomiej Zolnierki ...
, (Sat Jun 21, 12:10 pm)
Re: [PATCH 04/18] ide: remove ide_setup_dma()
, Sergei Shtylyov
, (Sat Jun 21, 12:29 pm)
Re: [PATCH 04/18] ide: remove ide_setup_dma()
, Sergei Shtylyov
, (Thu Aug 21, 10:16 am)
Re: [PATCH 04/18] ide: remove ide_setup_dma()
, Sergei Shtylyov
, (Thu Aug 21, 10:56 am)
Re: [PATCH 01/18] ide: add ->read_sff_dma_status method
, Sergei Shtylyov
, (Wed Sep 3, 6:19 am)
Re: [PATCH 01/18] ide: add ->read_sff_dma_status method
, Bartlomiej Zolnierki ...
, (Wed Sep 3, 11:13 am)
Re: [PATCH 01/18] ide: add ->read_sff_dma_status method
, Sergei Shtylyov
, (Sun Sep 7, 11:15 am)
Re: [PATCH 01/18] ide: add ->read_sff_dma_status method
, Sergei Shtylyov
, (Sun Sep 7, 11:49 am)
Re: [PATCH 01/18] ide: add ->read_sff_dma_status method
, Bartlomiej Zolnierki ...
, (Sun Sep 7, 12:23 pm)
Re: [PATCH 01/18] ide: add ->read_sff_dma_status method
, Sergei Shtylyov
, (Sun Sep 7, 3:26 pm)
Re: [PATCH 02/18] ide: use I/O ops directly in ide-dma.c
, Sergei Shtylyov
, (Mon Sep 8, 8:49 am)
Re: [PATCH 09/18] ide: add ->set_irq method
, Sergei Shtylyov
, (Wed Oct 15, 5:20 am)
Re: [PATCH 09/18] ide: add ->set_irq method
, Bartlomiej Zolnierki ...
, (Wed Oct 15, 11:22 am)
Re: [PATCH 09/18] ide: add ->set_irq method
, Sergei Shtylyov
, (Wed Oct 15, 2:22 pm)
Re: [PATCH 13/18] ide: use ->tf_load in SELECT_DRIVE()
, Sergei Shtylyov
, (Sun Feb 15, 1:25 pm)
Re: [PATCH 14/18] ide: use ->tf_read in ide_read_error()
, Sergei Shtylyov
, (Sun Feb 15, 4:21 pm)
Re: [PATCH 13/18] ide: use ->tf_load in SELECT_DRIVE()
, Sergei Shtylyov
, (Sun Feb 15, 5:08 pm)
Re: [PATCH 13/18] ide: use ->tf_load in SELECT_DRIVE()
, Sergei Shtylyov
, (Mon Feb 16, 4:50 am)
Re: [PATCH 14/18] ide: use ->tf_read in ide_read_error()
, Sergei Shtylyov
, (Mon Feb 16, 5:13 am)
Re: [PATCH 14/18] ide: use ->tf_read in ide_read_error()
, Sergei Shtylyov
, (Mon Feb 16, 5:25 am)
Re: [PATCH 14/18] ide: use ->tf_read in ide_read_error()
, Bartlomiej Zolnierki ...
, (Mon Feb 16, 2:17 pm)
Re: [PATCH 13/18] ide: use ->tf_load in SELECT_DRIVE()
, Bartlomiej Zolnierki ...
, (Mon Feb 16, 2:51 pm)
Re: [PATCH 14/18] ide: use ->tf_read in ide_read_error()
, Sergei Shtylyov
, (Mon Feb 16, 5:14 pm)
Re: [PATCH 14/18] ide: use ->tf_read in ide_read_error()
, Sergei Shtylyov
, (Mon Feb 16, 5:50 pm)
Re: [PATCH 13/18] ide: use ->tf_load in SELECT_DRIVE()
, Sergei Shtylyov
, (Mon Feb 16, 6:04 pm)
Re: [PATCH 13/18] ide: use ->tf_load in SELECT_DRIVE()
, Sergei Shtylyov
, (Tue Feb 17, 5:23 am)
Re: [PATCH 13/18] ide: use ->tf_load in SELECT_DRIVE()
, Bartlomiej Zolnierki ...
, (Tue Feb 17, 7:43 am)
Re: [PATCH 13/18] ide: use ->tf_load in SELECT_DRIVE()
, Sergei Shtylyov
, (Tue Feb 17, 8:13 am)
Re: [PATCH 13/18] ide: use ->tf_load in SELECT_DRIVE()
, Sergei Shtylyov
, (Tue Feb 17, 8:32 am)
Re: [PATCH 13/18] ide: use ->tf_load in SELECT_DRIVE()
, Sergei Shtylyov
, (Wed Mar 4, 8:43 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 041/196] kobject: add kobject_init_and_add function
Lukas Hejtmanek
Re: Another libata error related to OCZ SSD
Greg Kroah-Hartman
[PATCH 023/196] MCP_UCB1200: Convert from class_device to device
Florian Fainelli
Re: System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade
Christoph Lameter
[patch 1/4] mmu_notifier: Core code
git
:
Johannes Schindelin
Re: [PATCH 1/2] Add strbuf_initf()
John Bito
[EGIT] Push to GitHub caused corruption
Jakub Narebski
Re: [PATCH 0/2] gitweb: patch view
Junio C Hamano
Re: [PATCH] When a remote is added but not fetched, tell the user.
Andy Parkins
Re: [RFC] Submodules in GIT
git-commits-head
:
Linux Kernel Mailing List
ahci: Workaround HW bug for SB600/700 SATA controller PMP support
Linux Kernel Mailing List
V4L/DVB (11086): au0828: rename macro for currently non-function VBI support
Linux Kernel Mailing List
ceph: client types
Linux Kernel Mailing List
ceph: on-wire types
Linux Kernel Mailing List
crypto: chainiv - Use kcrypto_wq instead of keventd_wq
linux-netdev
:
Andrew Morton
Re: [Bugme-new] [Bug 14969] New: b44: WOL does not work in suspended state
Giuseppe CAVALLARO
Re: [PATCH 03/13] stmmac: add the new Header file for stmmac platform data
Taku Izumi
[PATCH 3/3] ixgbe: add registers etc. printout code just before resetting adapters
Eric Dumazet
rps: some comments
Thomas Gleixner
Re: [RFC PATCH 02/12] On Tue, 23 Sep 2008, David Miller wrote:
openbsd-misc
:
Stephan Andreas
problems with login after xlock in OpenBSD release 4.7
pmc
Make A Change. Alcoholism and Drug Addiction Treatment
ropers
Re: what exactly is enc0?
Fuad NAHDI
Re: What does your environment look like?
Matthew Szudzik
Typo on OpenBSD 4.4 CD Set
Colocation donated by:
Syndicate