From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Azhar Shaikh <azhar.shaikh@intel.com>, lee.jones@linaro.org
Cc: 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
Date: Wed, 12 Oct 2016 20:24:09 +0300 [thread overview]
Message-ID: <1476293049.11323.453.camel@linux.intel.com> (raw)
In-Reply-To: <20161012171220.6429-1-azhar.shaikh@intel.com>
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 <azhar.shaikh@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> 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 <andriy.shevchenko@linux.intel.com>
Intel Finland Oy
next prev parent reply other threads:[~2016-10-12 17:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-12 17:12 Azhar Shaikh
2016-10-12 17:24 ` Andy Shevchenko [this message]
2016-10-13 7:22 ` Mika Westerberg
2016-10-26 12:30 ` Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1476293049.11323.453.camel@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=azhar.shaikh@intel.com \
--cc=heikki.krogerus@linux.intel.com \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome