ahci: imx: setup power saving methods
authorRichard Zhu <r65037@freescale.com>
Tue, 15 Oct 2013 02:44:54 +0000 (10:44 +0800)
committerTejun Heo <tj@kernel.org>
Tue, 15 Oct 2013 12:47:00 +0000 (08:47 -0400)
commit8b789d89813fae01908ecc825c9dfc0ec90647ad
treeb14d0e8c5212e85f2d44fc9cde292ec5eb499a3a
parent89951f2245e5c31d6b74dea1570db716175a74fe
ahci: imx: setup power saving methods

In order to save power consumption as much as possible.

* Disable sata phy internal pll reference clock when sysetem enter
  into suspend mode, enable it after resume.

* Setup module parameter used to enable imx ahci test power down
  mode(PDDQ) or not, when there is no device detected on the port

* minor modifications:
  - The format of the copyright is changed, because that the original
    one can't pass fsl internal patch reivew without the character
    '(c)'.
  - Exports ahci_platform_ops and ahci_error_handler().

NOTE:
* The hot-plug can't be supported when PDDQ mode is ever enabled.

* module parameter usage how-to:
  - default: enable PDDQ mode when no device detected.
  - add "ahci-imx.hotplug=1" into kernel command line if your don't
    want to enable PDDQ mode when no device detected on the port.

tj: Slightly updated description and comments.

Signed-off-by: Richard Zhu <r65037@freescale.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci.h
drivers/ata/ahci_imx.c
drivers/ata/ahci_platform.c
drivers/ata/libahci.c
This page took 0.031007 seconds and 5 git commands to generate.