]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI/libata: Restore libata.noacpi support
authorLv Zheng <lv.zheng@intel.com>
Sat, 27 Apr 2013 01:37:53 +0000 (09:37 +0800)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 30 Apr 2013 22:02:53 +0000 (18:02 -0400)
commite115f314a4a6ba46287f87a68516551f7c45e274
treef4f463487ae979e04eb5e937a91880ae70f9ad2f
parenta66b8122bfd97102e86cd4ad5a00fa46e4d8c7ba
ACPI/libata: Restore libata.noacpi support

This patch restores libata.noacpi support to libata-acpi.c.
There are broken optional control methods for ATA controller devices in the
real world.  The libata.noacpi has been used for a long time as a
workaround to deal with issues caused by the broken ASL codes.
1. The "noacpi" option is introduced by the following commit:
   commit 4c5b298c094e9b79832c176cba37b7f88a1357ea
   Date: Thu, 28 Sep 2006 11:29:01 -0700
   Subject: libata: ACPI and _GTF support
2. The "noacpi" option is renamed to "libata_noacpi" by the following
   commit:
   commit 0c770b75cea92971c967f7e4796d4e498174ba9c
   Date: Wed, 28 Mar 2007 01:57:37 -0400
   Subject: [libata] Disable ACPI by default; fix namespace problems
3. Some of its logics are changed over time - becomes relying on the
   "acpi_handle" bound to the ATA devices since this commit:
   commit d8f2c89862ab35006aafd853a520183cb029fa6d
   Date: Tue, 15 May 2007 03:28:16 +0900
   Subject: libata-acpi: implement ata_acpi_associate()
4. The option is deleted by the following commit:
   commit c3ba563d02bc427600f6a91e9b615a9ac4823af6
   Date: Mon, 25 Jun 2012 16:13:04 +0800
   Subject: libata: migrate ACPI code over to new bindings
But the libata.noacpi setup is still left in the kernel without codes to
implement it.  So the deletion introduces a regression to the Linux.
This patch disables ATA_ACPI support at runtime by stopping acpi binding
on the ATA devices to fix this regression.
This patch is tested by booting a SATA x86-64 kernel or a PATA x86 kernel
with or without "libata.noacpi=1" kernel command line argument.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-acpi.c