diff options
Diffstat (limited to 'recipes-kernel/linux/linux-ti-staging/0002-ARM-OMAP2-omap_hwmod-Add-context-ops-to-am43xx-soc_o.patch')
-rw-r--r-- | recipes-kernel/linux/linux-ti-staging/0002-ARM-OMAP2-omap_hwmod-Add-context-ops-to-am43xx-soc_o.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti-staging/0002-ARM-OMAP2-omap_hwmod-Add-context-ops-to-am43xx-soc_o.patch b/recipes-kernel/linux/linux-ti-staging/0002-ARM-OMAP2-omap_hwmod-Add-context-ops-to-am43xx-soc_o.patch new file mode 100644 index 00000000..02581421 --- /dev/null +++ b/recipes-kernel/linux/linux-ti-staging/0002-ARM-OMAP2-omap_hwmod-Add-context-ops-to-am43xx-soc_o.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | From 8ec77cd15997749f51912e75bd47fad032cd3afe Mon Sep 17 00:00:00 2001 | ||
2 | From: Dave Gerlach <d-gerlach@ti.com> | ||
3 | Date: Wed, 12 Feb 2014 16:05:30 -0600 | ||
4 | Subject: [PATCH 2/2] ARM: OMAP2+: omap_hwmod: Add context ops to am43xx | ||
5 | soc_ops | ||
6 | |||
7 | AM43XX contains PRM_*_CONTEXT registers like OMAP4 did to track loss | ||
8 | of context in modules so utilize the same soc_ops present for OMAP4. | ||
9 | |||
10 | Certain drivers use the context loss count to determine if context was | ||
11 | truly lost during a suspend operation to decide whether or not a | ||
12 | context restore is truly necessary. Without this, some drivers may | ||
13 | choose not to restore context when they have actually lost it and fail | ||
14 | to properly resume. | ||
15 | |||
16 | Signed-off-by: Dave Gerlach <d-gerlach@ti.com> | ||
17 | --- | ||
18 | arch/arm/mach-omap2/omap_hwmod.c | 2 ++ | ||
19 | 1 file changed, 2 insertions(+) | ||
20 | |||
21 | diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c | ||
22 | index 1f766fd..c03c54d 100644 | ||
23 | --- a/arch/arm/mach-omap2/omap_hwmod.c | ||
24 | +++ b/arch/arm/mach-omap2/omap_hwmod.c | ||
25 | @@ -4296,6 +4296,8 @@ void __init omap_hwmod_init(void) | ||
26 | soc_ops.deassert_hardreset = _omap4_deassert_hardreset; | ||
27 | soc_ops.is_hardreset_asserted = _omap4_is_hardreset_asserted; | ||
28 | soc_ops.init_clkdm = _init_clkdm; | ||
29 | + soc_ops.update_context_lost = _omap4_update_context_lost; | ||
30 | + soc_ops.get_context_lost = _omap4_get_context_lost; | ||
31 | } else if (soc_is_am33xx()) { | ||
32 | soc_ops.enable_module = _am33xx_enable_module; | ||
33 | soc_ops.disable_module = _am33xx_disable_module; | ||
34 | -- | ||
35 | 1.7.9.5 | ||
36 | |||