From: lee.jones@linaro.org (Lee Jones)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 23/24] ab8500-bm: Fix minor niggles experienced during testing
Date: Tue, 22 Jan 2013 08:44:36 +0000 [thread overview]
Message-ID: <20130122084436.GE6857@gmail.com> (raw)
In-Reply-To: <20130121191324.GA15037@lizard.mcd01528.sjc.wayport.net>
On Mon, 21 Jan 2013, Anton Vorontsov wrote:
> On Mon, Jan 21, 2013 at 12:03:59PM +0000, Lee Jones wrote:
> > When compile testing the new AB8500 Battery Management changes
> > due for inclusion into upstream, there were a few minor niggles
> > which required repairing, or adapting for use against the
> > Mainline kernel. This patch is a collection of them all.
>
> No. This is the third time I'm saying it: the last time I checked, this is
> not how we do development in the mainline.
>
> 1. One logical change at a time;
> 2. Every patch in a sequence must be bisectable, compilable;
> 3. The patches must not "break things temporary" 'because it is easier to
> do development that way'. If you introduce a new feature, make all
> possible to not introduce regressions.
Okay, I'll fix them up instead.
> > Signed-off-by: Lee Jones <lee.jones@linaro.org>
> > ---
> > drivers/power/ab8500_fg.h | 6 ++++--
> > drivers/power/abx500_chargalg.c | 4 ++--
> > drivers/power/pm2301_charger.c | 4 ++--
> > 3 files changed, 8 insertions(+), 6 deletions(-)
> >
> > diff --git a/drivers/power/ab8500_fg.h b/drivers/power/ab8500_fg.h
> > index 946840b..bb78dc9 100644
> > --- a/drivers/power/ab8500_fg.h
> > +++ b/drivers/power/ab8500_fg.h
> > @@ -182,6 +182,7 @@ struct ab8500_fg_test {
> > * @fg_check_hw_failure_work: Work for checking HW state
> > * @cc_lock: Mutex for locking the CC
> > * @fg_kobject: Structure of type kobject
> > + * @test: Structure of type ab8500_fg_test for test purpose
> > */
> > struct ab8500_fg {
> > struct device *dev;
> > @@ -224,6 +225,7 @@ struct ab8500_fg {
> > struct delayed_work fg_check_hw_failure_work;
> > struct mutex cc_lock;
> > struct kobject fg_kobject;
> > + struct ab8500_fg_test test;
>
> You are introducing it, but I don't see any users.
>
> > };
> >
> > extern char *discharge_state[];
> > @@ -232,8 +234,8 @@ extern char *charge_state[];
> > int ab8500_fg_coulomb_counter(struct ab8500_fg *di, bool enable);
> > void ab8500_fg_charge_state_to(struct ab8500_fg *di,
> > enum ab8500_fg_charge_state new_state);
> > -void ab8500_fg_discharge_state_to(struct ab8500_fg *di,
> > - enum ab8500_fg_charge_state new_state);
> > +static void ab8500_fg_discharge_state_to(struct ab8500_fg *di,
> > + enum ab8500_fg_discharge_state new_state);
> > /* test initialization */
> > #ifdef CONFIG_AB8500_BM_DEEP_DEBUG
> > void ab8500_fg_test_init(struct ab8500_fg *di);
> > diff --git a/drivers/power/abx500_chargalg.c b/drivers/power/abx500_chargalg.c
> > index 694f592..cacf512 100644
> > --- a/drivers/power/abx500_chargalg.c
> > +++ b/drivers/power/abx500_chargalg.c
> > @@ -1664,8 +1664,8 @@ static int abx500_chargalg_get_property(struct power_supply *psy,
> > static ssize_t ab8500_chargalg_sysfs_show(struct kobject *kobj,
> > struct attribute *attr, char *buf)
> > {
> > - struct ab8500_chargalg *di = container_of(kobj,
> > - struct ab8500_chargalg, chargalg_kobject);
> > + struct abx500_chargalg *di = container_of(kobj,
> > + struct abx500_chargalg, chargalg_kobject);
>
> Spaces.
>
> >
> > return sprintf(buf, "%d\n",
> > di->susp_status.ac_suspended &&
> > diff --git a/drivers/power/pm2301_charger.c b/drivers/power/pm2301_charger.c
> > index 14e37b2..5ebae88 100644
> > --- a/drivers/power/pm2301_charger.c
> > +++ b/drivers/power/pm2301_charger.c
> > @@ -22,8 +22,8 @@
> > #include <linux/i2c.h>
> > #include <linux/workqueue.h>
> > #include <linux/kobject.h>
> > -#include <linux/mfd/ab8500.h>
> > #include <linux/mfd/abx500.h>
> > +#include <linux/mfd/abx500/ab8500.h>
> > #include <linux/mfd/abx500/ab8500-bm.h>
> > #include <linux/mfd/abx500/ab8500-gpadc.h>
> > #include <linux/mfd/abx500/ux500_chargalg.h>
> > @@ -867,7 +867,7 @@ static int __devinit pm2xxx_wall_charger_probe(struct i2c_client *i2c_client,
> >
> > /* get parent data */
> > pm2->dev = &i2c_client->dev;
> > - pm2->gpadc = ab8500_gpadc_get();
> > + pm2->gpadc = ab8500_gpadc_get("ab8500-gpadc.0");
>
> Was the driver even compilable before? You've just introduced the new
> driver in this exact series. :-/
>
> Since pm2301 is a new driver, please merge all pm2301 stuff into one
> patch.
>
> Or, if you want to preserve the development history of the new driver,
> this is also fine, but then I'd prefer to take it via a pull-request with
> only this driver.
>
> Thanks,
> Anton
--
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
next prev parent reply other threads:[~2013-01-22 8:44 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-21 12:03 [PATCH 00/24] Power: Next batch of AB8500 Battery Management patches Lee Jones
2013-01-21 12:03 ` [PATCH 01/24] pm2301: Provide u9540 support for the pm2301 charger Lee Jones
2013-01-21 12:03 ` [PATCH 02/24] ab8500-charger: AB workaround for invalid charger Lee Jones
2013-01-21 12:03 ` [PATCH 03/24] ab8500-fg: Adjust for RF bursts voltage drops Lee Jones
2013-01-21 12:03 ` [PATCH 04/24] ab8500-btemp: Adaptation to AB8505 and AB9540 platforms Lee Jones
2013-01-21 12:03 ` [PATCH 05/24] ab8500-charger: Kick watchdog Lee Jones
2013-01-21 12:03 ` [PATCH 06/24] ab8500-chargalg: Update battery health on safety timer exp Lee Jones
2013-01-21 12:03 ` [PATCH 07/24] pm2301: Add deep debug Lee Jones
2013-01-21 12:03 ` [PATCH 08/24] pm2301: Clean-up PM2301 interrupt management Lee Jones
2013-01-21 12:03 ` [PATCH 09/24] pm2301: Remove volt_now & curr_now properties Lee Jones
2013-01-21 12:03 ` [PATCH 10/24] ab8500-chargalg: Only root should have write permission on sysfs file Lee Jones
2013-01-21 19:17 ` Anton Vorontsov
2013-01-21 12:03 ` [PATCH 11/24] pm2301: Update watchdog for pm2xxx support Lee Jones
2013-01-21 12:03 ` [PATCH 12/24] ab8500-fg: Add test interface for u9540 Lee Jones
2013-01-21 12:03 ` [PATCH 13/24] abx500-chargalg: Add new sysfs interface to get current charge status Lee Jones
2013-01-21 12:03 ` [PATCH 14/24] ab8500-charger: Add support for autopower on AB8505 and AB9540 Lee Jones
2013-01-21 12:03 ` [PATCH 15/24] ab8500-fg: Go to INIT_RECOVERY when charger removed Lee Jones
2013-01-21 12:03 ` [PATCH 16/24] ab8500-bm: Flush all work queues before suspending Lee Jones
2013-01-21 19:14 ` Anton Vorontsov
2013-01-22 8:43 ` Lee Jones
2013-01-21 12:03 ` [PATCH 17/24] ab8500-fg-deepdebug: Create Deep Debug interface Lee Jones
2013-01-21 12:03 ` [PATCH 18/24] pm2301: Enable vbat low monitoring Lee Jones
2013-01-21 12:03 ` [PATCH 19/24] pm2301: LPN mode control support Lee Jones
2013-01-21 12:03 ` [PATCH 20/24] ab8500-fg: Use correct battery charge full design Lee Jones
2013-01-21 12:03 ` [PATCH 21/24] ab8500-charger: Do not touch VBUSOVV bits Lee Jones
2013-01-21 12:03 ` [PATCH 22/24] ab8500-bm: Remove individual [charger|btemp|fg|chargalg] pdata structures Lee Jones
2013-01-21 12:03 ` [PATCH 23/24] ab8500-bm: Fix minor niggles experienced during testing Lee Jones
2013-01-21 19:13 ` Anton Vorontsov
2013-01-22 8:44 ` Lee Jones [this message]
2013-01-22 9:27 ` Lee Jones
2013-01-23 6:25 ` Anton Vorontsov
2013-01-23 8:16 ` Lee Jones
2013-01-21 12:04 ` [PATCH 24/24] u8500-charger: Delay for USB enumeration Lee Jones
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=20130122084436.GE6857@gmail.com \
--to=lee.jones@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).