android_kernel_xiaomi_sm8350/drivers/ata
Alan Cox a57c1bade5 libata-sff: Fix oops reported in kerneloops.org for pnp devices with no ctl
- Make ata_sff_altstatus private so nobody uses it by mistake
- Drop the 400nS delay from it

Add

ata_sff_irq_status	-	encapsulates the IRQ check logic

This function keeps the existing behaviour for altstatus using devices. I
actually suspect the logic was wrong before the changes but -rc isn't the
time to play with that

ata_sff_sync		-	ensure writes hit the device

Really we want an io* operation for 'is posted' eg ioisposted(ioaddr) so
that we can fix the nasty delay this causes on most systems.

- ata_sff_pause		-	400nS delay

Ensure the command hit the device and delay 400nS

- ata_sff_dma_pause

Ensure the I/O hit the device and enforce an HDMA1:0 transition delay.
Requires altstatus register exists, BUG if not so we don't risk
corruption in MWDMA modes. (UDMA the checksum will save your backside in
theory)

The only other complication then is devices with their own handlers.
rb532 can use dma_pause but scc needs to access its own altstatus
register for internal errata workarounds so directly call the drivers own
altstatus function.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2008-06-04 06:40:41 -04:00
..
ahci.c ahci: change the Device IDs of nvidia MCP7B AHCI controller in ahci.c 2008-05-30 12:40:28 -04:00
ata_generic.c pata_atiixp: Don't disable 2008-05-06 11:43:44 -04:00
ata_piix.c [libata] ata_piix: more acer short cable quirks 2008-06-04 06:29:06 -04:00
Kconfig sata_inic162x: update intro comment, up the version and drop EXPERIMENTAL 2008-05-06 11:40:57 -04:00
libata-acpi.c [libata] ACPI: Properly handle bay devices in dock stations 2008-06-04 06:28:50 -04:00
libata-core.c ata: Convert to static DEFINE_SPINLOCK(lock) 2008-05-30 12:37:43 -04:00
libata-eh.c libata: ignore recovered PHY errors 2008-05-19 17:51:47 -04:00
libata-pmp.c libata: SRST can't be trusted on PMP sil3726 2008-05-30 12:37:56 -04:00
libata-scsi.c libata: fix libata-scsi kernel-doc notation 2008-05-30 12:37:50 -04:00
libata-sff.c libata-sff: Fix oops reported in kerneloops.org for pnp devices with no ctl 2008-06-04 06:40:41 -04:00
libata.h
Makefile libata: Add Intel SCH PATA driver 2008-05-06 11:33:58 -04:00
pata_acpi.c pata_atiixp: Don't disable 2008-05-06 11:43:44 -04:00
pata_ali.c ata: remove FIT() macro 2008-05-19 17:30:32 -04:00
pata_amd.c ata: remove FIT() macro 2008-05-19 17:30:32 -04:00
pata_artop.c
pata_at32.c avr32/pata: avoid unnecessary memset (updated after comments) 2008-05-19 17:27:40 -04:00
pata_atiixp.c
pata_bf54x.c pata-bf54x: Set ATAPI HSM to control IDE device terminate sequence. 2008-05-19 17:27:29 -04:00
pata_cmd64x.c
pata_cmd640.c
pata_cs5520.c
pata_cs5530.c
pata_cs5535.c
pata_cs5536.c
pata_cypress.c ata: remove FIT() macro 2008-05-19 17:30:32 -04:00
pata_efar.c
pata_hpt3x2n.c
pata_hpt3x3.c
pata_hpt37x.c
pata_hpt366.c
pata_icside.c libata-sff: Fix oops reported in kerneloops.org for pnp devices with no ctl 2008-06-04 06:40:41 -04:00
pata_isapnp.c
pata_it821x.c
pata_it8213.c
pata_ixp4xx_cf.c
pata_jmicron.c
pata_legacy.c ata: remove FIT() macro 2008-05-19 17:30:32 -04:00
pata_marvell.c
pata_mpc52xx.c
pata_mpiix.c
pata_netcell.c
pata_ninja32.c
pata_ns87410.c ata: remove FIT() macro 2008-05-19 17:30:32 -04:00
pata_ns87415.c ata: remove FIT() macro 2008-05-19 17:30:32 -04:00
pata_of_platform.c
pata_oldpiix.c
pata_opti.c
pata_optidma.c
pata_pcmcia.c
pata_pdc202xx_old.c
pata_pdc2027x.c
pata_platform.c
pata_qdi.c ata: remove FIT() macro 2008-05-19 17:30:32 -04:00
pata_radisys.c
pata_rb532_cf.c libata-sff: Fix oops reported in kerneloops.org for pnp devices with no ctl 2008-06-04 06:40:41 -04:00
pata_rz1000.c
pata_sc1200.c
pata_scc.c libata-sff: Fix oops reported in kerneloops.org for pnp devices with no ctl 2008-06-04 06:40:41 -04:00
pata_sch.c libata: Add Intel SCH PATA driver 2008-05-06 11:33:58 -04:00
pata_serverworks.c
pata_sil680.c
pata_sis.c
pata_sl82c105.c drivers/ata: trim trailing whitespace 2008-05-19 17:56:10 -04:00
pata_triflex.c
pata_via.c ata: remove FIT() macro 2008-05-19 17:30:32 -04:00
pata_winbond.c ata: remove FIT() macro 2008-05-19 17:30:32 -04:00
pdc_adma.c
sata_fsl.c [libata] sata_fsl: Fix broken driver, add port multiplier (PMP) support 2008-05-30 12:39:44 -04:00
sata_inic162x.c sata_inic162x: update intro comment, up the version and drop EXPERIMENTAL 2008-05-06 11:40:57 -04:00
sata_mv.c sata_mv: PHY_MODE4 cleanups 2008-06-04 06:29:11 -04:00
sata_nv.c
sata_promise.c sata_promise: other cleanups 2008-05-19 17:31:34 -04:00
sata_promise.h
sata_qstor.c
sata_sil24.c sata_sil24: don't use NCQ if marvell 4140 PMP is attached 2008-05-19 17:51:48 -04:00
sata_sil.c
sata_sis.c
sata_svw.c
sata_sx4.c
sata_uli.c
sata_via.c
sata_vsc.c
sis.h