Files
android_kernel_xiaomi_sm8450/drivers
Tejun Heo 398e07826b libata-acpi: implement dev->gtf_cache and evaluate _GTF right after _STM during resume
On certain implementations, _GTF evaluation depends on preceding _STM
and both can be pretty picky about the configuration.  Using _GTM
result cached during controller initialization satisfies the most
neurotic _STM implementation.  However, libata evaluates _GTF after
reset during device configuration and the hardware state can be
different from what _GTF expects and can cause evaluation failure.

This patch adds dev->gtf_cache and updates ata_dev_get_GTF() such that
it uses the cached value if available.  Cache is cleared with a call
to ata_acpi_clear_gtf().

Because for SATA ACPI nodes _GTF must be evaluated after _SDD which
can't be done till IDENTIFY is complete, _GTF caching from
ata_acpi_on_resume() is used only for IDE ACPI nodes.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2007-12-17 20:33:14 -05:00
..
2007-10-17 08:42:52 -07:00
2007-08-22 19:52:46 -07:00
2007-12-10 19:43:55 -08:00
2007-07-21 18:37:12 -07:00
2007-10-29 17:27:50 -04:00
2007-12-03 08:13:17 -08:00
2007-10-16 09:43:09 -07:00
2007-10-19 11:53:42 -07:00
2007-12-04 01:35:32 -05:00
2007-12-12 13:45:25 +01:00
2007-12-07 09:06:53 +00:00
2007-11-14 18:45:39 -08:00
2007-11-05 15:12:31 -08:00
2007-11-29 09:24:53 -08:00
2007-12-10 19:43:54 -08:00
2007-12-10 19:43:55 -08:00
2007-10-17 08:42:57 -07:00
2007-07-18 15:57:16 -07:00
2007-11-14 18:45:36 -08:00
2007-12-04 16:48:06 +00:00
2007-10-23 15:49:54 +10:00