ARM: common: edma: add suspend resume hook
authorDaniel Mack <zonque@gmail.com>
Tue, 26 Aug 2014 08:52:53 +0000 (10:52 +0200)
committerSekhar Nori <nsekhar@ti.com>
Tue, 18 Nov 2014 15:56:02 +0000 (21:26 +0530)
commita2b1175131ccb5d4a15456f4f31836356abbce09
tree4e5feb3d5f95c01dfcf21e8184e810fd7a5aea9c
parentf114040e3ea6e07372334ade75d1ee0775c355e1
ARM: common: edma: add suspend resume hook

This patch makes the edma driver resume correctly after suspend. Tested
on an AM33xx platform with cyclic audio streams and omap_hsmmc.

All information can be reconstructed by already known runtime
information.

As we now use some functions that were previously only used from __init
context, annotations had to be dropped.

[nm@ti.com: added error handling for runtime + suspend_late/early_resume]
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Daniel Mack <zonque@gmail.com>
Tested-by: Joel Fernandes <joelf@ti.com>
Acked-by: Joel Fernandes <joelf@ti.com>
[nsekhar@ti.com: remove unneeded pm_runtime_get_sync() from resume]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
arch/arm/common/edma.c