Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: intel-lpss: Do not put device in reset state on suspend

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.

Cc: stable@vger.kernel.org
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>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Azhar Shaikh and committed by
Lee Jones
274e43ed 2c8c3416

-3
-3
drivers/mfd/intel-lpss.c
··· 502 502 for (i = 0; i < LPSS_PRIV_REG_COUNT; i++) 503 503 lpss->priv_ctx[i] = readl(lpss->priv + i * 4); 504 504 505 - /* Put the device into reset state */ 506 - writel(0, lpss->priv + LPSS_PRIV_RESETS); 507 - 508 505 return 0; 509 506 } 510 507 EXPORT_SYMBOL_GPL(intel_lpss_suspend);