some 2.6.39 experiences (SD card worked! suspend and sound still broken...)

Timo Juhani Lindfors timo.lindfors at iki.fi
Fri Oct 21 14:28:51 CEST 2011


Timo Juhani Lindfors <timo.lindfors at iki.fi> writes:
> More minor issues are that I can't find current_now node or "temp"
> (temperature) node for battery.

This seems to be caused by the fact that CONFIG_BATTERY_BQ27x00 is not
enabled. voltage_now is provided by arch/arm/mach-s3c2440/mach-gta02.c
but that does not know about current_now.

I enabled CONFIG_BATTERY_BQ27x00 and added some debug prints. Now I get

...
pcf50633-rtc pcf50633-rtc: rtc core: registered pcf50633-rtc as rtc0
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
i2c /dev entries driver
------------[ cut here ]------------
WARNING: at /tmpfs/linux-2.6/fs/sysfs/dir.c:455 sysfs_add_one+0x8c/0xb0()
sysfs: cannot create duplicate filename '/class/power_supply/battery'
Modules linked in:
[<c002e6b8>] (unwind_backtrace+0x0/0xf8) from [<c003f820>] (warn_slowpath_common+0x48/0x60)
[<c003f820>] (warn_slowpath_common+0x48/0x60) from [<c003f8cc>] (warn_slowpath_fmt+0x30/0x40)
[<c003f8cc>] (warn_slowpath_fmt+0x30/0x40) from [<c00eaa58>] (sysfs_add_one+0x8c/0xb0)
[<c00eaa58>] (sysfs_add_one+0x8c/0xb0) from [<c00ebbc4>] (sysfs_do_create_link+0xb8/0x1fc)
[<c00ebbc4>] (sysfs_do_create_link+0xb8/0x1fc) from [<c01e0660>] (device_add_class_symlinks+0x74/0xcc)
[<c01e0660>] (device_add_class_symlinks+0x74/0xcc) from [<c01e11fc>] (device_add+0xc8/0x2e0)
[<c01e11fc>] (device_add+0xc8/0x2e0) from [<c0227acc>] (power_supply_register+0xa8/0xf4)
[<c0227acc>] (power_supply_register+0xa8/0xf4) from [<c0228c34>] (bq27x00_powersupply_init+0x7c/0xe0)
[<c0228c34>] (bq27x00_powersupply_init+0x7c/0xe0) from [<c02d1054>] (bq27000_battery_probe+0x78/0x104)
[<c02d1054>] (bq27000_battery_probe+0x78/0x104) from [<c01e50ec>] (platform_drv_probe+0x1c/0x24)
[<c01e50ec>] (platform_drv_probe+0x1c/0x24) from [<c01e3ca0>] (really_probe+0x100/0x180)
[<c01e3ca0>] (really_probe+0x100/0x180) from [<c01e3d70>] (driver_probe_device+0x50/0x6c)
[<c01e3d70>] (driver_probe_device+0x50/0x6c) from [<c01e3fb8>] (__driver_attach+0x80/0x84)
[<c01e3fb8>] (__driver_attach+0x80/0x84) from [<c01e2f80>] (bus_for_each_dev+0x58/0x84)
[<c01e2f80>] (bus_for_each_dev+0x58/0x84) from [<c01e37cc>] (bus_add_driver+0xa0/0x1c0)
[<c01e37cc>] (bus_add_driver+0xa0/0x1c0) from [<c01e4594>] (driver_register+0x5c/0xf4)
[<c01e4594>] (driver_register+0x5c/0xf4) from [<c001e48c>] (bq27x00_battery_init+0x30/0x60)
[<c001e48c>] (bq27x00_battery_init+0x30/0x60) from [<c00293f4>] (do_one_initcall+0xac/0x100)
[<c00293f4>] (do_one_initcall+0xac/0x100) from [<c0008374>] (do_initcalls+0x24/0x3c)
[<c0008374>] (do_initcalls+0x24/0x3c) from [<c0008858>] (kernel_init+0x38/0xc4)
[<c0008858>] (kernel_init+0x38/0xc4) from [<c002a7a8>] (kernel_thread_exit+0x0/0x8)
---[ end trace a98cef82ea5ae04f ]---
bq27x00_battery_voltage: volt 4124
bq27x00_battery_current: di c7972ba0 val c781be2c di->chip 0 (1)
bq27x00_battery_current: curr 0 flags 0
bq27x00_battery_current: intval 0
bq27000-battery bq27000-battery.0: failed to register battery: -17
bq27000-battery: probe of bq27000-battery.0 failed with error -17
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
cpuidle: using governor ladder
s3c-sdi s3c2440-sdi: powered down.
s3c-sdi s3c2440-sdi: mmc0 - using pio, sw SDIO IRQ
glamo-mci glamo-mci.0: glamo_mci driver (C)2007 Openmoko, Inc
...


-Timo



More information about the openmoko-kernel mailing list