All of lore.kernel.org
 help / color / mirror / Atom feed
* sata_promise and SATA+PATA controllers in general
@ 2005-09-18 22:21 David Lloyd
  2005-09-19  2:11 ` Jeff Garzik
  0 siblings, 1 reply; 3+ messages in thread
From: David Lloyd @ 2005-09-18 22:21 UTC (permalink / raw)
  To: linux-ide

I've got one of those promise controllers with 2 SATA ports and 1 PATA 
port and I've been looking at a couple variations on how the driver has 
been made to work with this setup.

Gentoo has a patch (against 2.6.10) that allows this to work (as far as I 
can tell) by putting an if statement in each operation that is different 
between PATA and SATA, and making the decision at runtime on how to handle 
each port.

This patch does not apply against 2.6.14-rc1 for various reasons.  The 
2.6.14-rc1 driver has separate ata_port_operations structures for PATA and 
SATA; however, since only one can be used at a time, my promise controller 
(PDC20378) as well as any other SATA+PATA controller that follows this 
structure cannot use the PATA port.  I hacked around this by simply using 
the PATA structure exclusively (obviously making my SATA ports useless) to 
allow me to boot, but it got me to thinking.

A while back (almost a year ago, in fact) Jeff Garzik posted a message [1] 
stating that the two things that need to be done to support these types of 
controllers are to add support for multiple ata_port_operations structures 
to both ata_probe_ent and ata_host_set.

I noticed that the sata_promise driver does in fact have separate port_ops 
for pata and sata, but since each controller only supports one of these, 
SATA+PATA controllers are still not fully functional in mainline.

Is this still the right direction to go?

Does this mean have e.g. a pata_port_ops member as well as a sata_port_ops 
member on the ata_probe_ent/ata_host_set, and mark each port as being 
either PATA or SATA with a flag of some sort?  Or, would it be best to 
have a port_ops pointer per port?

[1] http://marc.theaimsgroup.com/?l=linux-ide&m=109606830029825&w=2

- D

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

end of thread, other threads:[~2005-11-09  5:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-18 22:21 sata_promise and SATA+PATA controllers in general David Lloyd
2005-09-19  2:11 ` Jeff Garzik
2005-11-09  5:50   ` David Lloyd

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.