aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/fiq.h
diff options
context:
space:
mode:
authorDave Martin <dave.martin@linaro.org>2011-05-24 07:11:48 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2011-05-26 05:31:06 -0400
commit2846d84ffa4408c9810fabad74cb7aec410352fc (patch)
tree25e0a37c87f283e24808ecceb84bb846f9e49e07 /arch/arm/include/asm/fiq.h
parentdc2eb928a1bcf6a48f40c1f2ff21b66bdbf91a3c (diff)
ARM: 6940/1: fiq: Briefly document driver responsibilities for suspend/resume
Drivers which make use of the FIQ interrupt may require the state of the FIQ mode registers to be preserved across suspend/resume. Because the FIQ mode registers are not saved and restored automatically by the kernel, driver authors will need to do the appropriate save/restore in their own driver suspend/resume handlers. Implementing global automatic save/restore of the FIQ state does not appear appropriate, since this by itself is not sufficient for FIQ-based drivers to function correctly across suspend/resume in any case. This patch adds a brief explanatory note to fiq.h documenting the requirement placed on driver authors. Signed-off-by: Dave Martin <dave.martin@linaro.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include/asm/fiq.h')
-rw-r--r--arch/arm/include/asm/fiq.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/include/asm/fiq.h b/arch/arm/include/asm/fiq.h
index 45bb3eeeab7c..d493d0b742a1 100644
--- a/arch/arm/include/asm/fiq.h
+++ b/arch/arm/include/asm/fiq.h
@@ -4,6 +4,13 @@
4 * Support for FIQ on ARM architectures. 4 * Support for FIQ on ARM architectures.
5 * Written by Philip Blundell <philb@gnu.org>, 1998 5 * Written by Philip Blundell <philb@gnu.org>, 1998
6 * Re-written by Russell King 6 * Re-written by Russell King
7 *
8 * NOTE: The FIQ mode registers are not magically preserved across
9 * suspend/resume.
10 *
11 * Drivers which require these registers to be preserved across power
12 * management operations must implement appropriate suspend/resume handlers to
13 * save and restore them.
7 */ 14 */
8 15
9#ifndef __ASM_FIQ_H 16#ifndef __ASM_FIQ_H