linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/1] ahci: imx: setup power saving methods
@ 2013-10-15  2:44 Richard Zhu
       [not found] ` <1381805094-14723-2-git-send-email-Hong-Xing.Zhu@freescale.com>
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Zhu @ 2013-10-15  2:44 UTC (permalink / raw)
  To: linux-arm-kernel

v4: ahci: imx: setup power saving methods
 - Thanks for Tejun's review and comments firstly.
 - add copyright modification note in the commit message
 - export ahci_error_handler and ahci_platform_ops
 - add more detailed comments.

v3: http://www.spinics.net/lists/linux-ide/msg46641.html
 - Thanks for Tejun's suggestions.
 override the error_handler by ahci_imx_error_handler, to do
 the complete SATA device detection, enter into PDDQ mode,
 if there is no any SATA device.

 - 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)'.
   - Change the module parameters to be more readable.

V2: http://www.spinics.net/lists/linux-ide/msg46606.html
 - kernel build option is replaced by the module parameter(ahci-imx.hp) 

v1: http://www.spinics.net/lists/linux-ide/msg46389.html
 * Disable sata phy internal pll reference clock when
 sysetem enter into suspend mode, enable it after resume.
 * Enter into test power down mode when there is no sata disk
 detected on the port and 'AHCI_IMX_PHY_POWER_DOWN_MODE' is
 enabled.

This patch is based on for-next branch of
"http://git.kernel.org/pub/scm/linux/kernel/git/tj/libata.git"


[v4] ahci: imx: setup power saving methods
---
 drivers/ata/ahci.h          |    2 +
 drivers/ata/ahci_imx.c      |  101 ++++++++++++++++++++++++++++++++++++++++++-
 drivers/ata/ahci_platform.c |    3 +-
 drivers/ata/libahci.c       |    4 +-
 4 files changed, 106 insertions(+), 4 deletions(-)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [v4] ahci: imx: setup power saving methods
       [not found] ` <1381805094-14723-2-git-send-email-Hong-Xing.Zhu@freescale.com>
@ 2013-10-15 12:47   ` Tejun Heo
  0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2013-10-15 12:47 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Oct 15, 2013 at 10:44:54AM +0800, Richard Zhu wrote:
> From: Richard Zhu <r65037@freescale.com>
> 
> In order to save power consumption amap.
> * 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.
> 
> Signed-off-by: Richard Zhu <r65037@freescale.com>

Applied to libata/for-3.13 with minor modifications.

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-10-15 12:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-15  2:44 [PATCH v4 0/1] ahci: imx: setup power saving methods Richard Zhu
     [not found] ` <1381805094-14723-2-git-send-email-Hong-Xing.Zhu@freescale.com>
2013-10-15 12:47   ` [v4] " Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).