Thread (11 messages) 11 messages, 3 authors, 2007-08-06

Re: [PATCH] ide: move ide_config_drive_speed() calls to upper layers

From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Date: 2007-07-28 11:52:50

On Friday 27 July 2007, Alan Cox wrote:
On Fri, 27 Jul 2007 02:22:27 +0200
Bartlomiej Zolnierkiewicz [off-list ref] wrote:
quoted
* Convert {ide_hwif_t,ide_pci_device_t}->host_flag to be u16.

* Add IDE_HFLAG_POST_SET_MODE host to indicate the need to program the
  host for the transfer mode after programming the device.  Set it in
  au1xxx-ide/cs5530/cs5535/pdc202xx_new/sc1200/via82cxxx host drivers.
The CS5530 at least shouldn't care what order changes are done. I don't
think the SC1200 does either but I don't have the docs to hand.
Thanks, I will make a follow up patch to remove this flag from
cs5530 host driver (unless of course somebody beats me to it).
For libata we went the post_set_mode way and then junked it. Instead
there is a ->set_mode method which defaults to the usual order and
actions. IT821x and similar override it to do very little, post_set_mode
people call the default method and then do their stuff, and some of the
crazier cases do stuff both before and after the default.

Much more flexible and it can do anything unlike flags for the cases you
have.
I view this patch as an intermediate step in ->set_mode direction. 

Thanks,
Bart
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help