diff options
Diffstat (limited to 'recipes/linux/linux-openmoko-2.6.32/0018-glamo-core-initialize-engine-states-as-disabled.patch')
-rw-r--r-- | recipes/linux/linux-openmoko-2.6.32/0018-glamo-core-initialize-engine-states-as-disabled.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes/linux/linux-openmoko-2.6.32/0018-glamo-core-initialize-engine-states-as-disabled.patch b/recipes/linux/linux-openmoko-2.6.32/0018-glamo-core-initialize-engine-states-as-disabled.patch new file mode 100644 index 0000000000..4888b94cd5 --- /dev/null +++ b/recipes/linux/linux-openmoko-2.6.32/0018-glamo-core-initialize-engine-states-as-disabled.patch @@ -0,0 +1,36 @@ +From 9615f587ce8ac94732b6473a44d776473c120af6 Mon Sep 17 00:00:00 2001 +From: Thibaut Girka <thib@sitedethib.com> +Date: Fri, 25 Jun 2010 20:17:18 +0200 +Subject: [PATCH 18/22] glamo-core: initialize engine states as disabled + +This should fix random init failures such as white screen on boot. +--- + drivers/mfd/glamo/glamo-core.c | 5 ++++- + 1 files changed, 4 insertions(+), 1 deletions(-) + +diff --git a/drivers/mfd/glamo/glamo-core.c b/drivers/mfd/glamo/glamo-core.c +index 33a7a59..f6674f4 100644 +--- a/drivers/mfd/glamo/glamo-core.c ++++ b/drivers/mfd/glamo/glamo-core.c +@@ -916,7 +916,7 @@ static int __devinit glamo_supported(struct glamo_core *glamo) + + static int __devinit glamo_probe(struct platform_device *pdev) + { +- int ret = 0, irq, irq_base; ++ int ret = 0, n, irq, irq_base; + struct glamo_core *glamo; + struct resource *mem; + +@@ -924,6 +924,9 @@ static int __devinit glamo_probe(struct platform_device *pdev) + if (!glamo) + return -ENOMEM; + ++ for (n = 0; n < __NUM_GLAMO_ENGINES; n++) ++ glamo->engine_state[n] = GLAMO_ENGINE_DISABLED; ++ + spin_lock_init(&glamo->lock); + + glamo->pdev = pdev; +-- +1.7.1.1 + |