* [PATCH] mfd: intel-lpss: Do not put device in reset state on suspend
@ 2016-10-12 17:12 Azhar Shaikh
2016-10-12 17:24 ` Andy Shevchenko
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Azhar Shaikh @ 2016-10-12 17:12 UTC (permalink / raw)
To: lee.jones
Cc: andriy.shevchenko, heikki.krogerus, mika.westerberg, linux-kernel
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>
---
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);
--
2.10.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] mfd: intel-lpss: Do not put device in reset state on suspend
2016-10-12 17:12 [PATCH] mfd: intel-lpss: Do not put device in reset state on suspend Azhar Shaikh
@ 2016-10-12 17:24 ` Andy Shevchenko
2016-10-13 7:22 ` Mika Westerberg
2016-10-26 12:30 ` Lee Jones
2 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2016-10-12 17:24 UTC (permalink / raw)
To: Azhar Shaikh, lee.jones; +Cc: heikki.krogerus, mika.westerberg, linux-kernel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mfd: intel-lpss: Do not put device in reset state on suspend
2016-10-12 17:12 [PATCH] mfd: intel-lpss: Do not put device in reset state on suspend Azhar Shaikh
2016-10-12 17:24 ` Andy Shevchenko
@ 2016-10-13 7:22 ` Mika Westerberg
2016-10-26 12:30 ` Lee Jones
2 siblings, 0 replies; 4+ messages in thread
From: Mika Westerberg @ 2016-10-13 7:22 UTC (permalink / raw)
To: Azhar Shaikh; +Cc: lee.jones, andriy.shevchenko, heikki.krogerus, linux-kernel
On Wed, Oct 12, 2016 at 10:12:20AM -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>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] mfd: intel-lpss: Do not put device in reset state on suspend
2016-10-12 17:12 [PATCH] mfd: intel-lpss: Do not put device in reset state on suspend Azhar Shaikh
2016-10-12 17:24 ` Andy Shevchenko
2016-10-13 7:22 ` Mika Westerberg
@ 2016-10-26 12:30 ` Lee Jones
2 siblings, 0 replies; 4+ messages in thread
From: Lee Jones @ 2016-10-26 12:30 UTC (permalink / raw)
To: Azhar Shaikh
Cc: andriy.shevchenko, heikki.krogerus, mika.westerberg, linux-kernel
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 <azhar.shaikh@intel.com>
> ---
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-10-26 12:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-12 17:12 [PATCH] mfd: intel-lpss: Do not put device in reset state on suspend Azhar Shaikh
2016-10-12 17:24 ` Andy Shevchenko
2016-10-13 7:22 ` Mika Westerberg
2016-10-26 12:30 ` Lee Jones
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).