lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 12 Oct 2016 20:24:09 +0300
From:   Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To:     Azhar Shaikh <azhar.shaikh@...el.com>, lee.jones@...aro.org
Cc:     heikki.krogerus@...ux.intel.com, mika.westerberg@...ux.intel.com,
        linux-kernel@...r.kernel.org
Subject: Re: [PATCH] mfd: intel-lpss: Do not put device in reset state on
 suspend

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@...el.com>

Reviewed-by: Andy Shevchenko <andriy.shevchenko@...ux.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@...ux.intel.com>
Intel Finland Oy

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ