linux/drivers/ata
Tejun Heo 887125e374 libata: stop overloading port_info->private_data
port_info->private_data is currently used for two purposes - to record
private data about the port_info or to specify host->private_data to
use when allocating ata_host.

This overloading is confusing and counter-intuitive in that
port_info->private_data becomes host->private_data instead of
port->private_data.  In addition, port_info and host don't correspond
to each other 1-to-1.  Currently, the first non-NULL
port_info->private_data is used.

This patch makes port_info->private_data just be what it is -
private_data for the port_info where LLD can jot down extra info.
libata no longer sets host->private_data to the first non-NULL
port_info->private_data, @host_priv argument is added to
ata_pci_init_one() instead.  LLDs which use ata_pci_init_one() can use
this argument to pass in pointer to host private data.  LLDs which
don't should use init-register model anyway and can initialize
host->private_data directly.

Adding @host_priv instead of using init-register model for LLDs which
use ata_pci_init_one() is suggested by Alan Cox.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
2008-04-17 15:44:17 -04:00
..
ahci.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
ata_generic.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
ata_piix.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
Kconfig ACPI: fix ATA_ACPI build 2008-03-18 00:26:07 -04:00
libata-acpi.c libata-acpi: improve dock event handling 2008-03-17 08:26:42 -04:00
libata-core.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
libata-eh.c libata: kill ata_ehi_schedule_probe() 2008-04-17 15:44:16 -04:00
libata-pmp.c libata: kill ata_ehi_schedule_probe() 2008-04-17 15:44:16 -04:00
libata-scsi.c libata: kill ata_ehi_schedule_probe() 2008-04-17 15:44:16 -04:00
libata-sff.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
libata.h make atapi_dmadir static 2008-02-25 17:29:35 -05:00
Makefile [libata] Add support for the RB500 PATA CompactFlash 2008-03-10 20:54:05 -04:00
pata_acpi.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_ali.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_amd.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_artop.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_at32.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
pata_atiixp.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_bf54x.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
pata_cmd64x.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_cmd640.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_cs5520.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
pata_cs5530.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_cs5535.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_cs5536.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_cypress.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_efar.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_hpt3x2n.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_hpt3x3.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
pata_hpt37x.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_hpt366.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_icside.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
pata_isapnp.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
pata_it821x.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_it8213.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_ixp4xx_cf.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
pata_jmicron.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_legacy.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
pata_marvell.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_mpc52xx.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
pata_mpiix.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
pata_netcell.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_ninja32.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
pata_ns87410.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_ns87415.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_of_platform.c Rename: linux/pata_platform.h to linux/ata_platform.h 2008-02-06 06:54:17 -05:00
pata_oldpiix.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_opti.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_optidma.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_pcmcia.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
pata_pdc202xx_old.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_pdc2027x.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
pata_platform.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
pata_qdi.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
pata_radisys.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_rb500_cf.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
pata_rz1000.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_sc1200.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_scc.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
pata_serverworks.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_sil680.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_sis.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_sl82c105.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_triflex.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_via.c libata: stop overloading port_info->private_data 2008-04-17 15:44:17 -04:00
pata_winbond.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
pdc_adma.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
sata_fsl.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
sata_inic162x.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
sata_mv.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
sata_nv.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
sata_promise.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
sata_promise.h libata annotations and fixes 2008-01-23 05:24:15 -05:00
sata_qstor.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
sata_sil24.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
sata_sil.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
sata_sis.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
sata_svw.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
sata_sx4.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
sata_uli.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
sata_via.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
sata_vsc.c libata: implement and use ops inheritance 2008-04-17 15:44:17 -04:00
sis.h libata: PATA-mode fixes for sis_sata 2007-07-02 10:17:42 -04:00