Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933389AbcJLR1Y (ORCPT ); Wed, 12 Oct 2016 13:27:24 -0400 Received: from mga06.intel.com ([134.134.136.31]:4316 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932510AbcJLR1R (ORCPT ); Wed, 12 Oct 2016 13:27:17 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,336,1473145200"; d="scan'208";a="1069539303" Message-ID: <1476293049.11323.453.camel@linux.intel.com> Subject: Re: [PATCH] mfd: intel-lpss: Do not put device in reset state on suspend From: Andy Shevchenko To: Azhar Shaikh , lee.jones@linaro.org Cc: heikki.krogerus@linux.intel.com, mika.westerberg@linux.intel.com, linux-kernel@vger.kernel.org Date: Wed, 12 Oct 2016 20:24:09 +0300 In-Reply-To: <20161012171220.6429-1-azhar.shaikh@intel.com> References: <20161012171220.6429-1-azhar.shaikh@intel.com> Organization: Intel Finland Oy Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.5-1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1322 Lines: 38 On Wed, 2016-10-12 at 10:12 -0700, 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 Reviewed-by: Andy Shevchenko > --- >  drivers/mfd/intel-lpss.c | 3 --- >  1 file changed, 3 deletions(-) > > 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); -- Andy Shevchenko Intel Finland Oy