From: Paul Parsons <lost.distance@yahoo.com>
To: Anton Vorontsov <cbouatmailru@gmail.com>,
Dmitry Artamonow <mad_soft@inbox.ru>
Cc: linux-kernel@vger.kernel.org, dwmw2@infradead.org,
Philipp Zabel <philipp.zabel@gmail.com>
Subject: Re: [PATCH] ds2760_battery: Fix rated capacity of the hx4700 1800mAh battery
Date: Fri, 20 May 2011 19:34:32 +0100 (BST) [thread overview]
Message-ID: <931974.15363.qm@web29013.mail.ird.yahoo.com> (raw)
In-Reply-To: <20110520174546.GA27734@rainbow>
> BTW, hx4700 also have extended batteries. I personally have
> one that rated
> 3600mAh with my hx4700. Sadly I dropped it on the floor
> some time ago and
> battery lock got broken, so I currently can't use it. But I
> hope to fix it
> some day.
I knew about the 3600mAh battery but unfortunately I don't possess one, so was not able to add it to the patch. I only have the default 1800mAh battery which shipped with the hx4700.
If anybody here does have an hx4700 with the 3600mAh battery and is able to run Linux on it, it would be a big help if they could apply the following patch to discover the rated capacity register value via dmesg:
--- clean-2.6.39/drivers/power/ds2760_battery.c 2011-05-19 05:06:34.000000000 +0100
+++ linux-2.6.39/drivers/power/ds2760_battery.c 2011-05-20 19:20:11.533136179 +0100
@@ -136,6 +136,9 @@ static int ds2760_battery_read_status(st
return 1;
}
+ if (di->update_time == 0)
+ printk("%s: rated capacity = %d\n", __func__, di->raw[DS2760_RATED_CAPACITY]);
+
di->update_time = jiffies;
/* DS2760 reports voltage in units of 4.88mV, but the battery class
Or perhaps HaRET has some means of dumping the register?
next prev parent reply other threads:[~2011-05-20 18:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-25 13:45 Paul Parsons
2011-05-20 15:47 ` Anton Vorontsov
2011-05-20 17:45 ` Dmitry Artamonow
2011-05-20 18:34 ` Paul Parsons [this message]
2011-05-20 19:14 ` Dmitry Artamonow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=931974.15363.qm@web29013.mail.ird.yahoo.com \
--to=lost.distance@yahoo.com \
--cc=cbouatmailru@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mad_soft@inbox.ru \
--cc=philipp.zabel@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®