All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [PATCH] Add detection for EMCD103 chip revisions
@ 2011-02-18 13:15 Guenter Roeck
  2011-02-18 14:51 ` Jean Delvare
  2011-02-18 15:42 ` Guenter Roeck
  0 siblings, 2 replies; 3+ messages in thread
From: Guenter Roeck @ 2011-02-18 13:15 UTC (permalink / raw)
  To: lm-sensors

Index: prog/detect/sensors-detect
=================================--- prog/detect/sensors-detect	(revision 5933)
+++ prog/detect/sensors-detect	(working copy)
@@ -547,11 +547,16 @@
 		i2c_addrs => [0x2c..0x2e],
 		i2c_detect => sub { lm85_detect(@_, 5); },
 	}, {
-		name => "SMSC EMC6D103",
+		name => "SMSC EMC6D103 rev A0, A1",
 		driver => "lm85",
 		i2c_addrs => [0x2c..0x2e],
 		i2c_detect => sub { lm85_detect(@_, 6); },
 	}, {
+		name => "SMSC EMC6D103 rev A2",
+		driver => "to-be-written",	# lm85
+		i2c_addrs => [0x2c..0x2e],
+		i2c_detect => sub { lm85_detect(@_, 8); },
+	}, {
 		name => "Winbond WPCD377I",
 		driver => "not-a-sensor",
 		i2c_addrs => [0x2c..0x2e],
@@ -4776,7 +4781,11 @@
 		return if $verstep != 0x65;	# EMC6D102
 	} elsif ($chip = 6) {
 		return if $vendor != 0x5c;	# SMSC
-		return if $verstep != 0x68;	# EMC6D103
+		return if $verstep != 0x68	# EMC6D103 A0
+		       && $verstep != 0x69;	# EMC6D103 A1
+	} elsif ($chip = 8) {
+		return if $vendor != 0x5c;	# SMSC
+		return if $verstep != 0x6a;	# EMC6D103 A2
 	}
 
 	if ($vendor = 0x41) {			# Analog Devices

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [lm-sensors] [PATCH] Add detection for EMCD103 chip revisions
  2011-02-18 13:15 [lm-sensors] [PATCH] Add detection for EMCD103 chip revisions Guenter Roeck
@ 2011-02-18 14:51 ` Jean Delvare
  2011-02-18 15:42 ` Guenter Roeck
  1 sibling, 0 replies; 3+ messages in thread
From: Jean Delvare @ 2011-02-18 14:51 UTC (permalink / raw)
  To: lm-sensors

Hi Guenter,

On Fri, 18 Feb 2011 05:15:45 -0800, Guenter Roeck wrote:
> Index: prog/detect/sensors-detect
> =================================> --- prog/detect/sensors-detect	(revision 5933)
> +++ prog/detect/sensors-detect	(working copy)
> @@ -547,11 +547,16 @@
>  		i2c_addrs => [0x2c..0x2e],
>  		i2c_detect => sub { lm85_detect(@_, 5); },
>  	}, {
> -		name => "SMSC EMC6D103",
> +		name => "SMSC EMC6D103 rev A0, A1",
>  		driver => "lm85",
>  		i2c_addrs => [0x2c..0x2e],
>  		i2c_detect => sub { lm85_detect(@_, 6); },
>  	}, {
> +		name => "SMSC EMC6D103 rev A2",
> +		driver => "to-be-written",	# lm85
> +		i2c_addrs => [0x2c..0x2e],
> +		i2c_detect => sub { lm85_detect(@_, 8); },
> +	}, {

For the AS99127F, where we also had to differentiate, we have the
following strings:

Asus AS99127F (rev.1)
Asus AS99127F (rev.2)

While I agree this is a minor issue, it would be nice to stay
consistent.

>  		name => "Winbond WPCD377I",
>  		driver => "not-a-sensor",
>  		i2c_addrs => [0x2c..0x2e],
> @@ -4776,7 +4781,11 @@
>  		return if $verstep != 0x65;	# EMC6D102
>  	} elsif ($chip = 6) {
>  		return if $vendor != 0x5c;	# SMSC
> -		return if $verstep != 0x68;	# EMC6D103
> +		return if $verstep != 0x68	# EMC6D103 A0
> +		       && $verstep != 0x69;	# EMC6D103 A1
> +	} elsif ($chip = 8) {
> +		return if $vendor != 0x5c;	# SMSC
> +		return if $verstep != 0x6a;	# EMC6D103 A2
>  	}
>  
>  	if ($vendor = 0x41) {			# Analog Devices

Can you please also update the "Chip to detect" comment at the top of
function lm85_detect?

Other than this, the code looks OK, please commit.

-- 
Jean Delvare

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [lm-sensors] [PATCH] Add detection for EMCD103 chip revisions
  2011-02-18 13:15 [lm-sensors] [PATCH] Add detection for EMCD103 chip revisions Guenter Roeck
  2011-02-18 14:51 ` Jean Delvare
@ 2011-02-18 15:42 ` Guenter Roeck
  1 sibling, 0 replies; 3+ messages in thread
From: Guenter Roeck @ 2011-02-18 15:42 UTC (permalink / raw)
  To: lm-sensors

On Fri, Feb 18, 2011 at 09:51:49AM -0500, Jean Delvare wrote:
> Hi Guenter,
> 
> On Fri, 18 Feb 2011 05:15:45 -0800, Guenter Roeck wrote:
> > Index: prog/detect/sensors-detect
> > =================================> > --- prog/detect/sensors-detect	(revision 5933)
> > +++ prog/detect/sensors-detect	(working copy)
> > @@ -547,11 +547,16 @@
> >  		i2c_addrs => [0x2c..0x2e],
> >  		i2c_detect => sub { lm85_detect(@_, 5); },
> >  	}, {
> > -		name => "SMSC EMC6D103",
> > +		name => "SMSC EMC6D103 rev A0, A1",
> >  		driver => "lm85",
> >  		i2c_addrs => [0x2c..0x2e],
> >  		i2c_detect => sub { lm85_detect(@_, 6); },
> >  	}, {
> > +		name => "SMSC EMC6D103 rev A2",
> > +		driver => "to-be-written",	# lm85
> > +		i2c_addrs => [0x2c..0x2e],
> > +		i2c_detect => sub { lm85_detect(@_, 8); },
> > +	}, {
> 
> For the AS99127F, where we also had to differentiate, we have the
> following strings:
> 
> Asus AS99127F (rev.1)
> Asus AS99127F (rev.2)
> 
> While I agree this is a minor issue, it would be nice to stay
> consistent.
> 
I'll list it as EMC6D103S, following the datasheet.

> >  		name => "Winbond WPCD377I",
> >  		driver => "not-a-sensor",
> >  		i2c_addrs => [0x2c..0x2e],
> > @@ -4776,7 +4781,11 @@
> >  		return if $verstep != 0x65;	# EMC6D102
> >  	} elsif ($chip = 6) {
> >  		return if $vendor != 0x5c;	# SMSC
> > -		return if $verstep != 0x68;	# EMC6D103
> > +		return if $verstep != 0x68	# EMC6D103 A0
> > +		       && $verstep != 0x69;	# EMC6D103 A1
> > +	} elsif ($chip = 8) {
> > +		return if $vendor != 0x5c;	# SMSC
> > +		return if $verstep != 0x6a;	# EMC6D103 A2
> >  	}
> >  
> >  	if ($vendor = 0x41) {			# Analog Devices
> 
> Can you please also update the "Chip to detect" comment at the top of
> function lm85_detect?
> 
Ok.

Guenter

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-18 15:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-18 13:15 [lm-sensors] [PATCH] Add detection for EMCD103 chip revisions Guenter Roeck
2011-02-18 14:51 ` Jean Delvare
2011-02-18 15:42 ` Guenter Roeck

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.