summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2014-04-02 11:40:46 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-04-02 21:43:06 +0000
commit5dbff5487aeb9fc005e759e8f7c07b4b4eea2780 (patch)
treee61780faca73685ac3655b9b2bf7605fb9f53683
parenta13edcc0382e852329f55cd4eacb3e34c4410351 (diff)
downloadchrome-ec-5dbff5487aeb9fc005e759e8f7c07b4b4eea2780.tar.gz
Update some comments to reflect newly-filed bugs
I've filed several new bugs for things that need doing to common/charge_state_v2.c. This just adds those bug numbers to the comments. BUG=none BRANCH=ToT TEST=make buildall No new functionality; changes to comments only. Change-Id: I980d743e2bcad81e469a4dd99b542b7cf223ef60 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/192882 Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--common/charge_state_v2.c34
1 files changed, 12 insertions, 22 deletions
diff --git a/common/charge_state_v2.c b/common/charge_state_v2.c
index e28a31c3ad..567ec29fa1 100644
--- a/common/charge_state_v2.c
+++ b/common/charge_state_v2.c
@@ -66,8 +66,8 @@ enum problem_type {
};
/*
- * TODO(wfrichar): When do we decide a problem is real and not just
- * intermittent? And what do we do about it?
+ * TODO(crosbug.com/p/27639): When do we decide a problem is real and not
+ * just intermittent? And what do we do about it?
*/
static void problem(enum problem_type p, int v)
{
@@ -266,8 +266,8 @@ static int charge_request(int voltage, int current)
{
int r1, r2;
+ /* TODO(crosbug.com/p/27640): should we call charger_set_mode() too? */
if (!voltage || !current)
- /* TODO(wfrichar): should we call charger_set_mode() too? */
voltage = current = 0;
CPRINTF("[%T %s(%dmV, %dmA)]\n", __func__, voltage, current);
@@ -311,19 +311,15 @@ static void prevent_hot_discharge(void)
return;
/*
- * TODO(wfrichar): Shouldn't we do this in stages, like
+ * TODO(crosbug.com/p/27641): Shouldn't we do this in stages, like
* prevent_deep_discharge()? Send an event, give the AP time to react,
* maybe even hibernate the EC if things are really bad?
*
- * TODO(wfrichar): The thermal loop should watch the battery temp
- * anyway, so it can turn fans on. It could also force an AP shutdown
- * if it's too hot, but AFAIK we don't have anything in place to do a
- * battery shutdown if it's really really hot. We probably should, just
- * in case.
- *
- * TODO(wfrichar): It'd also be nice if we had a persistent error log
- * for that somewhere too. It would have to be in the EC's eeprom and
- * not in the nvram if we're going to cut the battery.
+ * TODO(crosbug.com/p/27642): The thermal loop should watch the battery
+ * temp anyway, so it can turn fans on. It could also force an AP
+ * shutdown if it's too hot, but AFAIK we don't have anything in place
+ * to do a battery shutdown if it's really really hot. We probably
+ * should, just in case.
*/
batt_temp_c = DECI_KELVIN_TO_CELSIUS(curr.batt.temperature);
if (batt_temp_c > batt_info->discharging_max_c ||
@@ -471,12 +467,7 @@ void charger_task(void)
/* Okay, we're on AC and we should have a battery. */
- /* Needed for factory tests.
- *
- * TODO(wfrichar): But see chrome-os-partner:26418. Can we do
- * away with state_machine_force_idle if DPTF current=0 does
- * the same thing?
- */
+ /* Used for factory tests. */
if (state_machine_force_idle) {
curr.state = ST_IDLE;
goto wait_for_it;
@@ -518,9 +509,8 @@ void charger_task(void)
}
/*
- * TODO(wfrichar): Quit trying if charging too long without
- * getting full. See CONFIG_CHARGER_TIMEOUT_HOURS,
- * chrome-os-partner:20145
+ * TODO(crosbug.com/p/27643): Quit trying if charging too long
+ * without getting full (CONFIG_CHARGER_TIMEOUT_HOURS).
*/
#ifdef CONFIG_CHARGER_PROFILE_OVERRIDE