[libata] acpi: call ata_acpi_gtm during ata port init time
authorAaron Lu <aaron.lu@intel.com>
Wed, 15 Aug 2012 09:08:12 +0000 (17:08 +0800)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 17 Aug 2012 17:29:27 +0000 (13:29 -0400)
commit834009170986f295c5eca37c76c59f1b28670d69
tree2e2ac6554f41d3410925064d8f04da490bafdec3
parent389cd784969e9148fedcde0608f15bd74d6b769e
[libata] acpi: call ata_acpi_gtm during ata port init time

Commit 30dcf76acc695cbd2fa919e294670fe9552e16e7 mistakenly dropped
the code to get an initial gtm for the IDE channel. This caused the
following problem for Sergei:
http://marc.info/?l=linux-kernel&m=134484963618457&w=2

Fix this by adding the call back in ata_acpi_bind_host, and due to
this, the ata_ap_acpi_handle is modified accordingly.

Tested-by: Sergei Trofimovich <slyich@gmail.com>
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-acpi.c