On Thu, Nov 01 2007, Jeff Garzik wrote:OK, so you just want the option to be temporary? In that case I think a config option is better, since you don't risk breaking peoples setups later when removing the option. That can be quite annoying. Ala the below. diff --git a/drivers/ata/Kconfig b/drivers/ata/Kconfig index ba63619..e276ab6 100644 --- a/drivers/ata/Kconfig +++ b/drivers/ata/Kconfig @@ -48,6 +48,14 @@ config SATA_AHCI If unsure, say N. +config SATA_AHCI_IPM + bool "AHCI power management" + depends on EXPERIMENTAL && SATA_AHCI + help + This option adds support for AHCI power management. It current + breaks suspend on some laptops. This option is temporary and will + go away once those issues are fully resolved. + config SATA_SVW tristate "ServerWorks Frodo / Apple K2 SATA support" depends on PCI diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index ed9b407..37266ce 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c @@ -190,8 +190,11 @@ enum { AHCI_FLAG_COMMON = ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY | ATA_FLAG_MMIO | ATA_FLAG_PIO_DMA | - ATA_FLAG_ACPI_SATA | ATA_FLAG_AN | - ATA_FLAG_IPM, + ATA_FLAG_ACPI_SATA | ATA_FLAG_AN +#ifdef CONFIG_SATA_AHCI_IPM + | ATA_FLAG_IPM +#endif + , AHCI_LFLAG_COMMON = ATA_LFLAG_SKIP_D2H_BSY, }; -- Jens Axboe -
| Jens Axboe | Re: [BUG] New Kernel Bugs |
| KAMEZAWA Hiroyuki | Re: 2.6.24-rc3-mm1 |
| Ingo Molnar | Re: [Announce] [patch] Modular Scheduler Core and Completely Fair Scheduler [CFS] |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Jarek Poplawski | Re: Data corruption issue with splice() on 2.6.27.10 |
| Patrick McHardy | Re: [GIT]: Networking |
