Peter Griffin
e0e2674b92
ata: ahci_st: fixup layering violations / drvdata errors
...
Brian noticed while working on another SATA driver that uses libahci_platform,
an error in this driver; it tries to the the driver data for its
device, while libata also thinks it can set the driver data. See:
ahci_platform_init_host()
-> ata_host_alloc_pinfo()
-> ata_host_alloc()
-> dev_set_drvdata()
So instead of sticking the IP-specific platform data into drvdata, let's
use the plat_data variable that is reserved for this use.
Addtionally plat_data isn't set until ahci_platform_init_host() has been
called further down in probe(). So re-work the st_ahci_probe_resets and
st_ahci_deassert_resets functions to take ahci_host_priv *hpriv as a
parameter.
Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Suggested-by: Brian Norris <computersforpeace@gmail.com>
Cc: Srinivas Kandagatla <srinivas.kandagatla@gmail.com>
Cc: Maxime Coquelin <maxime.coquelin@st.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
2015-04-20 13:36:38 -04:00
..
acard-ahci.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
ahci.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
ahci.h
ata: ahci_platform: fix owner module reference mismatch for scsi host
2015-01-28 18:45:23 -05:00
ahci_da850.c
ata: ahci_platform: fix owner module reference mismatch for scsi host
2015-01-28 18:45:23 -05:00
ahci_imx.c
ata: ahci_platform: fix owner module reference mismatch for scsi host
2015-01-28 18:45:23 -05:00
ahci_mvebu.c
ata: ahci_platform: fix owner module reference mismatch for scsi host
2015-01-28 18:45:23 -05:00
ahci_platform.c
ata: ahci_platform: fix owner module reference mismatch for scsi host
2015-01-28 18:45:23 -05:00
ahci_st.c
ata: ahci_st: fixup layering violations / drvdata errors
2015-04-20 13:36:38 -04:00
ahci_sunxi.c
ata: ahci_platform: fix owner module reference mismatch for scsi host
2015-01-28 18:45:23 -05:00
ahci_tegra.c
ata: ahci_platform: fix owner module reference mismatch for scsi host
2015-01-28 18:45:23 -05:00
ahci_xgene.c
sata: xgene: add ACPI support for APM X-Gene SATA ports
2015-03-19 14:22:03 -04:00
ata_generic.c
ata_piix.c
Kconfig
Remove celleb-only SCC PATA drivers
2015-04-14 13:07:17 -04:00
libahci.c
ahci: Use dev_info() to inform about the lack of Device Sleep support
2015-01-09 17:04:12 -05:00
libahci_platform.c
ata: libahci: Use of_platform_device_create only if supported
2015-02-03 07:12:54 -05:00
libata-acpi.c
libata-core.c
Merge branch 'for-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata
2015-04-13 16:42:16 -07:00
libata-eh.c
libata: Add tracepoints
2015-03-27 11:59:22 -04:00
libata-pmp.c
libata-scsi.c
libata-eh: Set 'information' field for autosense
2015-03-27 11:59:22 -04:00
libata-sff.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
libata-trace.c
libata: Add tracepoints
2015-03-27 11:59:22 -04:00
libata-transport.c
libata: Implement ATA_DEV_ZAC
2014-11-05 11:22:06 -05:00
libata-transport.h
libata-zpodd.c
libata.h
libata-eh: Set 'information' field for autosense
2015-03-27 11:59:22 -04:00
Makefile
Remove celleb-only SCC PATA drivers
2015-04-14 13:07:17 -04:00
pata_acpi.c
pata_ali.c
pata_amd.c
pata_arasan_cf.c
ata: drop owner assignment from platform_drivers
2014-10-20 16:20:17 +02:00
pata_artop.c
pata_at32.c
ata: drop owner assignment from platform_drivers
2014-10-20 16:20:17 +02:00
pata_at91.c
ata: drop owner assignment from platform_drivers
2014-10-20 16:20:17 +02:00
pata_atiixp.c
pata_atp867x.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
pata_bf54x.c
ata: drop owner assignment from platform_drivers
2014-10-20 16:20:17 +02:00
pata_cmd64x.c
pata_cmd640.c
pata_cs5520.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
pata_cs5530.c
ata: Delete unnecessary checks before the function call "pci_dev_put"
2015-02-03 07:04:44 -05:00
pata_cs5535.c
pata_cs5536.c
pata_cypress.c
pata_efar.c
pata_ep93xx.c
ata: drop owner assignment from platform_drivers
2014-10-20 16:20:17 +02:00
pata_hpt3x2n.c
pata_hpt3x3.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
pata_hpt37x.c
pata_hpt366.c
pata_icside.c
pata_imx.c
ata: drop owner assignment from platform_drivers
2014-10-20 16:20:17 +02:00
pata_isapnp.c
pata_it821x.c
pata_it8213.c
pata_ixp4xx_cf.c
ata: drop owner assignment from platform_drivers
2014-10-20 16:20:17 +02:00
pata_jmicron.c
ata: Disabling the async PM for JMicron chip 363/361
2014-09-01 08:38:06 -04:00
pata_legacy.c
pata_macio.c
pata_marvell.c
pata_mpc52xx.c
ata: drop owner assignment from platform_drivers
2014-10-20 16:20:17 +02:00
pata_mpiix.c
pata_netcell.c
pata_ninja32.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
pata_ns87410.c
pata_ns87415.c
pata_octeon_cf.c
ata: drop owner assignment from platform_drivers
2014-10-20 16:20:17 +02:00
pata_of_platform.c
ata: pata_platform: fix owner module reference mismatch for scsi host
2015-01-28 18:45:23 -05:00
pata_oldpiix.c
pata_opti.c
pata_optidma.c
pata_palmld.c
ata: drop owner assignment from platform_drivers
2014-10-20 16:20:17 +02:00
pata_pcmcia.c
pata_pdc202xx_old.c
pata_pdc2027x.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
pata_piccolo.c
pata_platform.c
ata: pata_platform: fix owner module reference mismatch for scsi host
2015-01-28 18:45:23 -05:00
pata_pxa.c
ata: drop owner assignment from platform_drivers
2014-10-20 16:20:17 +02:00
pata_radisys.c
pata_rb532_cf.c
ata: drop owner assignment from platform_drivers
2014-10-20 16:20:17 +02:00
pata_rdc.c
pata_rz1000.c
pata_samsung_cf.c
ata: drop owner assignment from platform_drivers
2014-10-20 16:20:17 +02:00
pata_sc1200.c
pata_sch.c
pata_serverworks.c
pata_serverworks: disable 64-KB DMA transfers on Broadcom OSB4 IDE Controller
2014-10-07 17:10:14 -04:00
pata_sil680.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
pata_sis.c
pata_sl82c105.c
pata_triflex.c
pata_via.c
pdc_adma.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
sata_dwc_460ex.c
sata_dwc_460ex: indent an if statement
2015-03-30 13:14:40 -04:00
sata_fsl.c
sata-fsl: Apply link speed limits
2015-03-02 12:08:43 -05:00
sata_highbank.c
ata: drop owner assignment from platform_drivers
2014-10-20 16:20:17 +02:00
sata_inic162x.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
sata_mv.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
sata_nv.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
sata_promise.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
sata_promise.h
sata_qstor.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
sata_rcar.c
sata_rcar: extend PM methods
2015-01-19 09:04:37 -05:00
sata_sil.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
sata_sil24.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
sata_sis.c
sata_svw.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
sata_sx4.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
sata_uli.c
sata_via.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
sata_vsc.c
ata: remove deprecated use of pci api
2015-04-08 10:55:05 -04:00
sis.h