From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754809AbdIGK5I (ORCPT ); Thu, 7 Sep 2017 06:57:08 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:36042 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753927AbdIGK5H (ORCPT ); Thu, 7 Sep 2017 06:57:07 -0400 X-Google-Smtp-Source: AOwi7QAF3jpo8NTRT7NwKdNvOXNMn81VkxFXIlJT79q3R7l5RJDuJv+Gy8153eVzDnPd7+WnnSpv4Q== Date: Thu, 7 Sep 2017 11:57:03 +0100 From: Lee Jones To: rui_feng@realsil.com.cn Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH v6] mfd: Add support for RTS5250S power saving Message-ID: <20170907105703.x72lgb25z3g7h63d@dell> References: <1504772799-15173-1-git-send-email-rui_feng@realsil.com.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1504772799-15173-1-git-send-email-rui_feng@realsil.com.cn> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 07 Sep 2017, rui_feng@realsil.com.cn wrote: > From: Rui Feng > > Enable power saving for RTS5250S as following steps: > 1.Set 0xFE58 to enable clock power management. > 2.Check cfg space whether support L1SS or not. > 3.If support L1SS, set 0xFF03 to free clkreq. > 4.When entering idle status, enable aspm > and set parameters for L1SS and LTR. > 5.Wnen entering run status, disable aspm > and set parameters for L1SS and LTR. > If entering L1SS mode successfully, > electric current will be below 2mA. > > Signed-off-by: Rui Feng > --- > drivers/mfd/rts5249.c | 155 ++++++++++++++++++++++++++++++++++++++++++- > drivers/mfd/rtsx_pcr.c | 142 +++++++++++++++++++++++++++++++++++++-- > drivers/mfd/rtsx_pcr.h | 14 ++++ > include/linux/mfd/rtsx_pci.h | 84 +++++++++++++++++++++++ > 4 files changed, 389 insertions(+), 6 deletions(-) Applied for v4.15, thanks. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog