Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Issue 1637005: add battery driver in st1.5 (Closed)

Created:
10 years, 8 months ago by Horace
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, Micah C
Visibility:
Public.

Description

add battery driver in st1.5 BUG=NONE TEST=Built and ran on st1.5 Signed-off-by: Horace Fu <horace.fu@quantatw.com>;

Patch Set 1 #

Total comments: 11

Patch Set 2 : Correct errors #

Total comments: 5

Patch Set 3 : Correcting #

Total comments: 10

Patch Set 4 : Correct #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+426 lines, -0 lines) Patch
M drivers/power/Kconfig View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M drivers/power/Makefile View 1 chunk +1 line, -0 lines 0 comments Download
A drivers/power/qci_battery.h View 1 1 chunk +61 lines, -0 lines 0 comments Download
A drivers/power/qci_battery.c View 1 2 3 1 chunk +356 lines, -0 lines 2 comments Download

Messages

Total messages: 9 (0 generated)
pelcan
http://codereview.chromium.org/1637005/diff/1/2 File drivers/power/Kconfig (right): http://codereview.chromium.org/1637005/diff/1/2#newcode111 drivers/power/Kconfig:111: Say Y here if you want to use the ...
10 years, 8 months ago (2010-04-14 20:29:13 UTC) #1
Horace
On 2010/04/14 20:29:13, pelcan wrote: Dear All, Please review it again, thanks.
10 years, 8 months ago (2010-04-15 07:37:26 UTC) #2
pelcan
lgtm
10 years, 8 months ago (2010-04-15 19:53:17 UTC) #3
nleeder
http://codereview.chromium.org/1637005/diff/6001/7003 File drivers/power/qci_battery.c (right): http://codereview.chromium.org/1637005/diff/6001/7003#newcode203 drivers/power/qci_battery.c:203: return ret; Not sure what this is doing: ret ...
10 years, 8 months ago (2010-04-23 19:43:34 UTC) #4
nleeder
+msb Please can we get a review for this - thanks.
10 years, 7 months ago (2010-04-29 18:59:39 UTC) #5
Mandeep Singh Baines
http://codereview.chromium.org/1637005/diff/13001/14003 File drivers/power/qci_battery.c (right): http://codereview.chromium.org/1637005/diff/13001/14003#newcode117 drivers/power/qci_battery.c:117: if ((context->bif.mbat_status & MAIN_BATTERY_STATUS_BAT_IN)) extra parens http://codereview.chromium.org/1637005/diff/13001/14003#newcode126 drivers/power/qci_battery.c:126: if ...
10 years, 7 months ago (2010-05-03 22:53:20 UTC) #6
Mandeep Singh Baines
http://codereview.chromium.org/1637005/diff/13001/14003 File drivers/power/qci_battery.c (right): http://codereview.chromium.org/1637005/diff/13001/14003#newcode309 drivers/power/qci_battery.c:309: pr_err("[BAT] err gpio request\n"); dev_err http://codereview.chromium.org/1637005/diff/13001/14003#newcode316 drivers/power/qci_battery.c:316: pr_err("[BAT] unable ...
10 years, 7 months ago (2010-05-03 23:06:44 UTC) #7
Horace
On 2010/05/03 23:06:44, msb wrote: Please review again, thanks.
10 years, 7 months ago (2010-05-04 08:01:28 UTC) #8
Mandeep Singh Baines
10 years, 7 months ago (2010-05-11 16:59:07 UTC) #9
http://codereview.chromium.org/1637005/diff/20001/21003
File drivers/power/qci_battery.c (right):

http://codereview.chromium.org/1637005/diff/20001/21003#newcode282
drivers/power/qci_battery.c:282: context.bi2c_client = wpce_get_i2c_client();
It would be better if wpce775x exported a high-level API instead of this driver
using its i2_client.

http://codereview.chromium.org/1637005/diff/20001/21003#newcode350
drivers/power/qci_battery.c:350: late_initcall(qbat_init);
Not sure this is a good idea. Another way to guarantee initcall order would be
to write this driver as a platform driver using the device model and have it
register with the main EC driver. See wpce775x review for details.

Powered by Google App Engine
This is Rietveld 408576698