Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966140AbcJZM2B (ORCPT ); Wed, 26 Oct 2016 08:28:01 -0400 Received: from mail-wm0-f43.google.com ([74.125.82.43]:36669 "EHLO mail-wm0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933282AbcJZM1x (ORCPT ); Wed, 26 Oct 2016 08:27:53 -0400 Date: Wed, 26 Oct 2016 13:30:23 +0100 From: Lee Jones To: Azhar Shaikh Cc: andriy.shevchenko@intel.com, heikki.krogerus@linux.intel.com, mika.westerberg@linux.intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: intel-lpss: Do not put device in reset state on suspend Message-ID: <20161026123023.GA11267@dell> References: <20161012171220.6429-1-azhar.shaikh@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20161012171220.6429-1-azhar.shaikh@intel.com> User-Agent: Mutt/1.6.2 (2016-07-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1344 Lines: 39 On Wed, 12 Oct 2016, Azhar Shaikh wrote: > Commit 41a3da2b8e163 ("mfd: intel-lpss: Save register context on > suspend") saved the register context while going to suspend and > also put the device in reset state. > > Due to the resetting of device, system cannot enter S3/S0ix > states when no_console_suspend flag is enabled. The system > and serial console both hang. The resetting of device is not > needed while going to suspend. Hence remove this code. > > Fixes: 41a3da2b8e163 ("mfd: intel-lpss: Save register context on suspend") > Signed-off-by: Azhar Shaikh > --- > drivers/mfd/intel-lpss.c | 3 --- > 1 file changed, 3 deletions(-) Applied with Acks and sent to Stable. > diff --git a/drivers/mfd/intel-lpss.c b/drivers/mfd/intel-lpss.c > index 41b1138..70c646b 100644 > --- a/drivers/mfd/intel-lpss.c > +++ b/drivers/mfd/intel-lpss.c > @@ -502,9 +502,6 @@ int intel_lpss_suspend(struct device *dev) > for (i = 0; i < LPSS_PRIV_REG_COUNT; i++) > lpss->priv_ctx[i] = readl(lpss->priv + i * 4); > > - /* Put the device into reset state */ > - writel(0, lpss->priv + LPSS_PRIV_RESETS); > - > return 0; > } > EXPORT_SYMBOL_GPL(intel_lpss_suspend); -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog