[PATCH] Fix for missing possibility to power on GSM in om-gta02-2.6.34

Gennady Kupava gb at bsdmn.com
Mon Aug 2 13:08:51 CEST 2010


In om-gta02-2.6.34, i had problem with impossibility to power on gsm.
Problem were that no sysfs node exited.

Kernel logs (with debugging) for working .32:
www.bsdmn.com/openmoko/gsm/32.log

Kernel logs (with debugging) for .34 without fix:
www.bsdmn.com/openmoko/gsm/34unfixed.log

Kernel logs (with debugging) for .34 with fix:
www.bsdmn.com/openmoko/gsm/34fixed.log

to power on gsm use:
echo 1
> /sys/bus/platform/devices/reg-fixed-voltage.1/gta02-pm-gsm.0/power_on

Problem were introduced by diff:
in .34:
pcf50633-gpio     264 drivers/mfd/pcf50633-core.c
PCF50633_CELL("pcf50633-gpio"),
in .32:
pcf50633-gpio     624 drivers/mfd/pcf50633-core.c
pcf50633_client_dev_register(pcf, "pcf50633-gpio",

Patch renames board-specific platform bus device pattern to match new
device name.

Patch: 
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c
b/arch/arm/mach-s3c2440/mach-gta02.c
index b23b011..bad9b08 100644
--- a/arch/arm/mach-s3c2440/mach-gta02.c
+++ b/arch/arm/mach-s3c2440/mach-gta02.c
@@ -1153,7 +1153,7 @@ static struct platform_device*
gta02_hdq_children[] = {

 static struct gta02_device_children gta02_device_children[] = {
        {
-               .dev_name = "pcf50633-gpio",
+               .dev_name = "pcf50633-gpio.0",
                .num_children = 1,
                .children = gta02_pcf50633_gpio_children,
        },


and copy in attachment.

Gennady.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gsm_power_fix_34.patch
Type: text/x-patch
Size: 484 bytes
Desc: not available
Url : http://lists.openmoko.org/pipermail/openmoko-kernel/attachments/20100802/70a7e080/attachment.bin 


More information about the openmoko-kernel mailing list