It is currently 19 Jun 2013, 12:41

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Linux kernel 2.6.8.1 and libsensors keywest configuration
PostPosted: 31 Aug 2004, 19:37 
Offline

Joined: 03 Feb 2004, 03:55
Posts: 46
Cedric Pradalier wrote:
There have been a report on debian-powerpc saying that
the i2c bus on which the adm1030 is plugged is not considered as a
sensor bus by default.


http://lists.debian.org/debian-powerpc/ ... html#00356

Quote:



Luca Bigliardi - shammash (translated) wrote:
at first I started to look for docs about how configuring that bus with lmsensors
because I didn't manage to make it work and I though I wasn't able to
configure it (I had never used lmsensors before)

I understood it was a problem in ben's code ed
indeed, talking with the lm-sensors developers,
it became clear that the bus wasn't properly initialized.
then the patch.


Code:
--- linux-2.6.8.1/drivers/i2c/busses/i2c-keywest.c.orig 2004-07-24 22:39:04.000000000 +0200
+++ linux-2.6.8.1/drivers/i2c/busses/i2c-keywest.c      2004-08-17 21:03:23.000000000 +0200
@@ -618,6 +618,8 @@
                chan->iface = iface;
                chan->chan_no = i;
                chan->adapter.id = I2C_ALGO_SMBUS;
+               if (i==1)
+                       chan->adapter.class = I2C_CLASS_HWMON;
                chan->adapter.algo = &keywest_algorithm;
                chan->adapter.algo_data = NULL;
                chan->adapter.client_register = NULL;



Luca Bigliardi - shammash (translated) wrote:
yes, now everything works, in the end the only thing to do is to patch
and then to tweak a bit the sensors.conf file: I put 10 degrees less
in the system fan because it seemed impossible to me that the
temperature was higher than the processor : )




Best regards.


Last edited by ncrfgs on 01 Sep 2004, 21:50, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: 01 Sep 2004, 21:47 
Offline

Joined: 03 Feb 2004, 03:55
Posts: 46
The problem was fixed with the last Linux kernel 2.6.9-rc1 release candidate.

http://kernel.org/pub/linux/kernel/v2.6 ... |27339.txt

Quote:
ChangeSet 2004/08/25 21:31:10-07:00, torvalds @ ppc970.osdl.org [diffview]

Revert I2C keywest class fixup

Benh says: "Please revert that for now, I need to figure out what they
were exactly trying to do and will come up with something if it makes
sense but the patch as-is doesn't"

Cset exclude: khali@linux-fr.org|ChangeSet|20040825202122|07524



http://lists.debian.org/debian-powerpc/ ... html#00356

Quote:




Best regards.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron