android_kernel_oneplus_msm8998/arch/arm/common
Russell King ac5c04ea1c ARM: sa1111: fix pcmcia suspend/resume
commit 06dfe5cc0cc684e735cb0232fdb756d30780b05d upstream.

SA1111 PCMCIA was broken when PCMCIA switched to using dev_pm_ops for
the PCMCIA socket class.  PCMCIA used to handle suspend/resume via the
socket hosting device, which happened at normal device suspend/resume
time.

However, the referenced commit changed this: much of the resume now
happens much earlier, in the noirq resume handler of dev_pm_ops.

However, on SA1111, the PCMCIA device is not accessible as the SA1111
has not been resumed at _noirq time.  It's slightly worse than that,
because the SA1111 has already been put to sleep at _noirq time, so
suspend doesn't work properly.

Fix this by converting the core SA1111 code to use dev_pm_ops as well,
and performing its own suspend/resume at noirq time.

This fixes these errors in the kernel log:

pcmcia_socket pcmcia_socket0: time out after reset
pcmcia_socket pcmcia_socket1: time out after reset

and the resulting lack of PCMCIA cards after a S2RAM cycle.

Fixes: d7646f7632 ("pcmcia: use dev_pm_ops for class pcmcia_socket_class")
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-10-07 15:23:44 +02:00
..
bL_switcher.c arm/bL_switcher: Kill tick suspend hackery 2015-04-01 14:23:00 +02:00
bL_switcher_dummy_if.c ARM: bL_switcher: add a simple /dev user interface for debugging purposes 2013-08-05 00:13:00 -04:00
dmabounce.c ARM: dma-mapping: add support for dma_get_sgtable() 2012-07-30 12:25:47 +02:00
firmware.c ARM: Add interface for registering and calling firmware-specific operations 2013-04-09 01:52:06 +09:00
icst.c ARM: 8517/1: ICST: avoid arithmetic overflow in icst_hz() 2016-02-25 12:01:19 -08:00
it8152.c genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
Kconfig ARM/dmaengine: edma: Merge the two drivers under drivers/dma/ 2015-10-14 19:57:11 +05:30
locomo.c genirq: Remove irq argument from irq flow handlers 2015-09-16 15:47:51 +02:00
Makefile ARM/dmaengine: edma: Merge the two drivers under drivers/dma/ 2015-10-14 19:57:11 +05:30
mcpm_entry.c ARM: MCPM: remove residency argument from mcpm_cpu_suspend() 2015-05-06 11:47:10 -04:00
mcpm_head.S ARM: replace BSYM() with badr assembly macro 2015-05-08 17:33:50 +01:00
mcpm_platsmp.c ARM: 8392/3: smp: Only expose /sys/.../cpuX/online if hotpluggable 2015-07-31 18:58:30 +01:00
sa1111.c ARM: sa1111: fix pcmcia suspend/resume 2016-10-07 15:23:44 +02:00
scoop.c driver:gpio remove all usage of gpio_remove retval in driver 2014-09-18 11:03:10 -07:00
sharpsl_param.c ARM: 7845/1: sharpsl_param.c: fix invalid memory access for pxa devices 2013-10-03 10:39:43 +01:00
vlock.h ARM: mcpm: Add baremetal voting mutexes 2013-04-24 10:37:01 -04:00
vlock.S ARM: mcpm: use -st dsb option prior to sev instructions 2013-08-12 12:25:45 +01:00