Hi there!

On Thu, 19 Mar 2009 14:18:45 +0100, Luca Capello wrote:
> On Thu, 19 Mar 2009 02:03:35 +0100, Luca Capello wrote:
>> Same here, it seems that the battery driver is not properly working.
>> This should be reported to smartphones-kernel@, at least.
>
> With 2.6.29:
> =====
> debian-gta02:~# uname -a
> Linux debian-gta02 2.6.29-20090303.gitb9de904e #1 PREEMPT Thu Mar 19 07:10:46 
> UTC 2009 armv4tl GNU/Linux
>
> debian-gta02:~# ls -l /sys/class/power_supply/battery/
> ls: cannot access /sys/class/power_supply/battery/: No such file or directory
>
> debian-gta02:~# ls -l /sys/devices/platform/sc32440_fiq.0/
> ls: cannot access /sys/devices/platform/sc32440_fiq.0/: No such file or 
> directory
[...]
> Either there is some error from my part in the 2.6.29 .config (the same
> used for 2.6.28 [1]) or something is wrong with 2.6.29.  Any hint would
> be appreciated.

Finally, I found it:

  
http://git.openmoko.org/?p=kernel.git;a=commitdiff;h=1f06c28eaa6e77384a366c3d2ab1ccdbb8a807e0

And the config.* files were changed with:

  
http://git.openmoko.org/?p=kernel.git;a=commitdiff;h=1c6a91fef7cb2e0fc4f41ddcfff74565b2a7659e

I do not understand why BATTERY_BQ27000_HDQ does not depend on
HDQ_GPIO_BITBANG since without the latter the former is useless.  I
wanted to report it on <http://docs.opemoko.org/trac/>, but I get the
following error:

  Warning: <acct_mgr.web_ui.MessageWrapper object at 0xb6563cec>

  Error: Forbidden

  TICKET_CREATE privileges are required to perform this operation

Is this because my login is '[email protected]'?  Or do I need to ask for
permissions?

Below there is the IMHO the sensible patch against the latest
andy-tracking.  For the time being, I simply enabled the HDQ_GPI_BITBANG
option in Debian:

  
http://git.debian.org/?p=pkg-fso/linux-2.6-openmoko.git;a=commitdiff;h=503f8babb7ba82977fe54f3af2b398790cf79582

An updated Debian kernel package will follow soon :-)

Thx, bye,
Gismo / Luca

--8<---------------cut here---------------start------------->8---
From 2af530e23de1295292ad40e6e30230a3b6fcd83f Mon Sep 17 00:00:00 2001
From: Luca Capello <[email protected]>
Date: Mon, 8 Jun 2009 19:19:01 +0200
Subject: [PATCH] CONFIG_BATTERY_BQ27000_HDQ selects CONFIG_HDQ_GPIO_BITBANG

This is because of 1f06c28eaa6e77384a366c3d2ab1ccdbb8a807e0,
otherwise the battery is not available at all.
---
 drivers/power/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/power/Kconfig b/drivers/power/Kconfig
index b5332f7..f88c5aa 100644
--- a/drivers/power/Kconfig
+++ b/drivers/power/Kconfig
@@ -90,6 +90,7 @@ config CHARGER_PCF50633
 
 config BATTERY_BQ27000_HDQ
        tristate "BQ27000 HDQ battery monitor driver"
+       select HDQ_GPIO_BITBANG
        help
          Say Y to enable support for the battery on the Neo Freerunner
 
-- 
1.6.3.1

--8<---------------cut here---------------end--------------->8---

Attachment: pgp1Fd1clV8lN.pgp
Description: PGP signature

_______________________________________________
Smartphones-userland mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/smartphones-userland

Reply via email to