mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-19 05:12:39 +00:00
libata: make gtf_filter per-dev
Add ->gtf_filter to ata_device and set it to ata_acpi_gtf_filter when initializing ata_link. This is to allow quirks which apply different gtf filters. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
fa5b561c4e
commit
110f66d25c
4 changed files with 15 additions and 8 deletions
|
@ -598,6 +598,7 @@ struct ata_device {
|
|||
#ifdef CONFIG_ATA_ACPI
|
||||
acpi_handle acpi_handle;
|
||||
union acpi_object *gtf_cache;
|
||||
unsigned int gtf_filter;
|
||||
#endif
|
||||
/* n_sector is CLEAR_BEGIN, read comment above CLEAR_BEGIN */
|
||||
u64 n_sectors; /* size of device, if ATA */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue