]> git.baikalelectronics.ru Git - kernel.git/commit
spi: pxa2xx: Remove LPSS private register restoring during resume
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Thu, 1 Nov 2018 14:36:36 +0000 (16:36 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 5 Nov 2018 11:50:51 +0000 (11:50 +0000)
commit664ccae524c174e6614bb3be316718d792d35835
tree5cab5a19457d011a7cf7deb66c90e08f969304b8
parent0492e50a09d41c9d3fe213b5a6cf5944ee43876b
spi: pxa2xx: Remove LPSS private register restoring during resume

Intel LPSS private register restoring in spi-pxa2xx.c: pxa2xx_spi_resume()
was added before there was no any other code restoring them. This was
changed after following commits for previous and current LPSS platforms:

528a34bcb201 ("ACPI / LPSS: custom power domain for LPSS")
eb7e8ed0a428 ("mfd: intel-lpss: Save register context on suspend")

However there is one caveat: There is no LPSS private register context
save/restore for the Intel Lynxpoint in the Linux kernel code.

I did some debugging on one Lynxpoint based device I have and on it the
LPSS register context is not lost over suspend/resume cycle (s2idle).
Which happens for instance on Intel Braswell. I'm speculating but I guess
either firmware does it or the LPSS is kept always on Lynxpoint.

Given that we haven't needed to implement Lynxpoint LPSS I2C or UART
private register context save/restore over four years time I think we are
safe to remove this LPSS private register restoring during resume here.

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c