All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <guenter.roeck@ericsson.com>
To: Jean Delvare <khali@linux-fr.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"lm-sensors@lm-sensors.org" <lm-sensors@lm-sensors.org>
Subject: Re: [lm-sensors] [PATCH v2 5/7] hwmon: (lm90) Introduce 3rd set of
Date: Tue, 14 Sep 2010 12:38:36 +0000	[thread overview]
Message-ID: <20100914123836.GA4710@ericsson.com> (raw)
In-Reply-To: <20100914134659.5a9e72df@hyperion.delvare>

Hi Jean,

On Tue, Sep 14, 2010 at 07:46:59AM -0400, Jean Delvare wrote:
> On Tue, 14 Sep 2010 12:51:37 +0200, Jean Delvare wrote:
> > On Thu, 9 Sep 2010 06:25:48 -0700, Guenter Roeck wrote:
> > > @@ -818,6 +839,9 @@ static int lm90_detect(struct i2c_client *new_client,
> > >  
> > >  static void lm90_remove_files(struct i2c_client *client, struct lm90_data *data)
> > >  {
> > > +	if (data->flags & LM90_HAVE_EMERGENCY)
> > > +		sysfs_remove_group(&client->dev.kobj,
> > > +				   &lm90_emergency_group);
> > >  	if (data->flags & LM90_HAVE_OFFSET)
> > >  		device_remove_file(&client->dev,
> > >  				   &sensor_dev_attr_temp2_offset.dev_attr);
> > 
> > But this flag is never set?
> 
> Oh, I get it now, it's set in the next patch. That's not OK, each patch
> should do something useful in its own right. This suggests that you
> have to swap patches 5/7 and 6/7 in the series, first adding a separate
> type for the MAX6659, then adding support for the emergency limits.
> 
Ok.

> Or if this is too much work for you, you may decide to merge both
> patches (hint: "quilt fold" is quite helpful for this, if you're using
> quilt).
> 
I typically use git rebase -i. That lets me do the same, including merging
and reordering patches.

Guenter

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

WARNING: multiple messages have this Message-ID (diff)
From: Guenter Roeck <guenter.roeck@ericsson.com>
To: Jean Delvare <khali@linux-fr.org>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"lm-sensors@lm-sensors.org" <lm-sensors@lm-sensors.org>
Subject: Re: [lm-sensors] [PATCH v2 5/7] hwmon: (lm90) Introduce 3rd set of upper temperature limits
Date: Tue, 14 Sep 2010 05:38:36 -0700	[thread overview]
Message-ID: <20100914123836.GA4710@ericsson.com> (raw)
In-Reply-To: <20100914134659.5a9e72df@hyperion.delvare>

Hi Jean,

On Tue, Sep 14, 2010 at 07:46:59AM -0400, Jean Delvare wrote:
> On Tue, 14 Sep 2010 12:51:37 +0200, Jean Delvare wrote:
> > On Thu, 9 Sep 2010 06:25:48 -0700, Guenter Roeck wrote:
> > > @@ -818,6 +839,9 @@ static int lm90_detect(struct i2c_client *new_client,
> > >  
> > >  static void lm90_remove_files(struct i2c_client *client, struct lm90_data *data)
> > >  {
> > > +	if (data->flags & LM90_HAVE_EMERGENCY)
> > > +		sysfs_remove_group(&client->dev.kobj,
> > > +				   &lm90_emergency_group);
> > >  	if (data->flags & LM90_HAVE_OFFSET)
> > >  		device_remove_file(&client->dev,
> > >  				   &sensor_dev_attr_temp2_offset.dev_attr);
> > 
> > But this flag is never set?
> 
> Oh, I get it now, it's set in the next patch. That's not OK, each patch
> should do something useful in its own right. This suggests that you
> have to swap patches 5/7 and 6/7 in the series, first adding a separate
> type for the MAX6659, then adding support for the emergency limits.
> 
Ok.

> Or if this is too much work for you, you may decide to merge both
> patches (hint: "quilt fold" is quite helpful for this, if you're using
> quilt).
> 
I typically use git rebase -i. That lets me do the same, including merging
and reordering patches.

Guenter

  reply	other threads:[~2010-09-14 12:38 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-09 13:25 [lm-sensors] [PATCH v2 0/7] hwmon: Add support for MAX6695/6696 to Guenter Roeck
2010-09-09 13:25 ` [PATCH v2 0/7] hwmon: Add support for MAX6695/6696 to lm90 driver Guenter Roeck
2010-09-09 13:25 ` [lm-sensors] [PATCH v2 1/7] hwmon: Add tempX_emergency_alarm Guenter Roeck
2010-09-09 13:25   ` [PATCH v2 1/7] hwmon: Add tempX_emergency_alarm attribute to sysfs ABI Guenter Roeck
2010-09-13 16:17   ` [lm-sensors] [PATCH v2 1/7] hwmon: Add tempX_emergency_alarm Jean Delvare
2010-09-13 16:17     ` [PATCH v2 1/7] hwmon: Add tempX_emergency_alarm attribute to sysfs ABI Jean Delvare
2010-09-13 16:54     ` [lm-sensors] [PATCH v2 1/7] hwmon: Add tempX_emergency_alarm Guenter Roeck
2010-09-13 16:54       ` [PATCH v2 1/7] hwmon: Add tempX_emergency_alarm attribute to sysfs ABI Guenter Roeck
2010-09-16  1:52   ` [lm-sensors] [PATCH v2 1/7] hwmon: Add tempX_emergency_alarm Guenter Roeck
2010-09-09 13:25 ` [lm-sensors] [PATCH v2 2/7] hwmon: (lm90) Introduce device feature Guenter Roeck
2010-09-09 13:25   ` [PATCH v2 2/7] hwmon: (lm90) Introduce device feature bits Guenter Roeck
2010-09-13 19:30   ` [lm-sensors] [PATCH v2 2/7] hwmon: (lm90) Introduce device Jean Delvare
2010-09-13 19:30     ` [PATCH v2 2/7] hwmon: (lm90) Introduce device feature bits Jean Delvare
2010-09-13 20:32     ` [lm-sensors] [PATCH v2 2/7] hwmon: (lm90) Introduce device Guenter Roeck
2010-09-13 20:32       ` [PATCH v2 2/7] hwmon: (lm90) Introduce device feature bits Guenter Roeck
2010-09-09 13:25 ` [lm-sensors] [PATCH v2 3/7] hwmon: (lm90) Introduce function to Guenter Roeck
2010-09-09 13:25   ` [PATCH v2 3/7] hwmon: (lm90) Introduce function to delete sysfs files Guenter Roeck
2010-09-13 19:48   ` [lm-sensors] [PATCH v2 3/7] hwmon: (lm90) Introduce function to Jean Delvare
2010-09-13 19:48     ` [PATCH v2 3/7] hwmon: (lm90) Introduce function to delete sysfs files Jean Delvare
2010-09-16  1:52   ` [lm-sensors] [PATCH v2 3/7] hwmon: (lm90) Introduce function to Guenter Roeck
2010-09-09 13:25 ` [lm-sensors] [PATCH v2 4/7] hwmon: (lm90) Simplify set_temp11 Guenter Roeck
2010-09-09 13:25   ` [PATCH v2 4/7] hwmon: (lm90) Simplify set_temp11 register calculations Guenter Roeck
2010-09-14  9:18   ` [lm-sensors] [PATCH v2 4/7] hwmon: (lm90) Simplify set_temp11 Jean Delvare
2010-09-14  9:18     ` [PATCH v2 4/7] hwmon: (lm90) Simplify set_temp11 register calculations Jean Delvare
2010-09-09 13:25 ` [lm-sensors] [PATCH v2 5/7] hwmon: (lm90) Introduce 3rd set of Guenter Roeck
2010-09-09 13:25   ` [PATCH v2 5/7] hwmon: (lm90) Introduce 3rd set of upper temperature limits Guenter Roeck
2010-09-14 10:51   ` [lm-sensors] [PATCH v2 5/7] hwmon: (lm90) Introduce 3rd set of Jean Delvare
2010-09-14 10:51     ` [PATCH v2 5/7] hwmon: (lm90) Introduce 3rd set of upper temperature limits Jean Delvare
2010-09-14 11:46     ` [lm-sensors] [PATCH v2 5/7] hwmon: (lm90) Introduce 3rd set of Guenter Roeck
2010-09-14 11:46       ` [PATCH v2 5/7] hwmon: (lm90) Introduce 3rd set of upper temperature limits Guenter Roeck
2010-09-14 11:46     ` [lm-sensors] [PATCH v2 5/7] hwmon: (lm90) Introduce 3rd set of Jean Delvare
2010-09-14 11:46       ` [lm-sensors] [PATCH v2 5/7] hwmon: (lm90) Introduce 3rd set of upper temperature limits Jean Delvare
2010-09-14 12:38       ` Guenter Roeck [this message]
2010-09-14 12:38         ` Guenter Roeck
2010-09-09 13:25 ` [lm-sensors] [PATCH v2 6/7] hwmon: (lm90) Add support for Guenter Roeck
2010-09-09 13:25   ` [PATCH v2 6/7] hwmon: (lm90) Add support for additional features of max6659 Guenter Roeck
2010-09-14 11:52   ` [lm-sensors] [PATCH v2 6/7] hwmon: (lm90) Add support for Jean Delvare
2010-09-14 11:52     ` [PATCH v2 6/7] hwmon: (lm90) Add support for additional features of max6659 Jean Delvare
2010-09-14 16:08     ` [lm-sensors] [PATCH v2 6/7] hwmon: (lm90) Add support for Guenter Roeck
2010-09-14 16:08       ` [PATCH v2 6/7] hwmon: (lm90) Add support for additional features of max6659 Guenter Roeck
2010-09-09 13:25 ` [lm-sensors] [PATCH v2 7/7] hwmon: (lm90) Add support for max6695 Guenter Roeck
2010-09-09 13:25   ` [PATCH v2 7/7] hwmon: (lm90) Add support for max6695 and max6696 Guenter Roeck
2010-09-15 11:20   ` [lm-sensors] [PATCH v2 7/7] hwmon: (lm90) Add support for Jean Delvare
2010-09-15 11:20     ` [PATCH v2 7/7] hwmon: (lm90) Add support for max6695 and max6696 Jean Delvare
2010-09-15 14:29     ` [lm-sensors] [PATCH v2 7/7] hwmon: (lm90) Add support for Guenter Roeck
2010-09-15 14:29       ` [PATCH v2 7/7] hwmon: (lm90) Add support for max6695 and max6696 Guenter Roeck
2010-09-15 14:34       ` [lm-sensors] [PATCH v2 7/7] hwmon: (lm90) Add support for Jean Delvare
2010-09-15 14:34         ` [PATCH v2 7/7] hwmon: (lm90) Add support for max6695 and max6696 Jean Delvare

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=20100914123836.GA4710@ericsson.com \
    --to=guenter.roeck@ericsson.com \
    --cc=akpm@linux-foundation.org \
    --cc=khali@linux-fr.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lm-sensors@lm-sensors.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.