All of lore.kernel.org
 help / color / mirror / Atom feed
From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: max1619
Date: Thu, 19 May 2005 06:24:59 +0000	[thread overview]
Message-ID: <20040523152124.5777a192.khali@linux-fr.org> (raw)
In-Reply-To: <200405211303.18083.fishor@gmx.net>

Hi Alexey,

> I mean, i don't know C at all, i jas wont to lern it and it will be
> greate if you have and can send me  some DOC about C.

Sorry, I don't have such docs. I leant C partly in high school, but
mostly by reading existing code and discussing with people.

Frankly, if you never did C before and were already able to adapt driver
code to write your own driver, it's impressive. Keep it this way :)

> > You forgot to cgecj trhe conversion rate register . It has to be <> > 0x07. You could use the status register as well, for which reg &
> > 0x61 should be 0.
> 
> Hear i'm not sure what you mean

Maybe because I completely mispelled my first sentence and didn't even
notice it? ;)

> if ((reg_config & 0x2A) != 0x00  || reg_convrate <= 0x07 ||
> (reg_status & 0x61) != 0x00)
> 
> is it corect ?

Note quite. I'd say:

if ((reg_config & 0x03) != 0x00  || reg_convrate > 0x07
 || (reg_status & 0x61) != 0x00)

> > +	config = i2c_smbus_read_byte_data(client, MAX1619_REG_R_CONFIG);
> > +	if (config & 0x40)
> > +		i2c_smbus_write_byte_data(client, MAX1619_REG_W_CONFIG,
> > +			config & 0x0C); /* run */
> > +}
> >
> > This doesn't preserve configuration bits. You should write back
> > config & 0xBF.
>
> I can't yus 0xbf wile it bringing up OVERT output, it's mean HYST and
> CRIT can't do any think. For max1619   0x9f , this preserve and
> doesn't have OVERT bit.

Negative. Masking with 0xBF will *not* set bit 5 (POL). It will keep it
exactly the way it was. So, if the BIOS has changed that bit to match the
hardware setup, it won't be dropped.

Thanks.

-- 
Jean Delvare
http://khali.linux-fr.org/

  parent reply	other threads:[~2005-05-19  6:24 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:24 max1619 Alexey Fisher
2005-05-19  6:24 ` max1619 Jean Delvare
2005-05-19  6:24 ` max1619 Jean Delvare
2005-05-19  6:24 ` max1619 Alexey Fisher
2005-05-19  6:24 ` max1619 Jean Delvare
2005-05-19  6:24 ` max1619 Alexey Fisher
2005-05-19  6:24 ` max1619 Jean Delvare
2005-05-19  6:24 ` max1619 Alexey Fisher
2005-05-19  6:24 ` max1619 Alexey Fisher
2005-05-19  6:24 ` max1619 Alexey Fisher
2005-05-19  6:24 ` max1619 Alexey Fisher
2005-05-19  6:24 ` max1619 Alexey Fisher
2005-05-19  6:24 ` Jean Delvare [this message]
2005-05-19  6:24 ` max1619 Jean Delvare
2005-05-19  6:25 ` max1619 Alexey Fisher
2005-05-19  6:25 ` max1619 Alexey Fisher
2005-05-19  6:25 ` max1619 Greg KH
2005-05-19  6:25 ` max1619 Jean Delvare
2005-05-19  6:25 ` max1619 Jean Delvare
2005-05-19  6:25 ` max1619 Alexey Fisher
2005-05-19  6:25 ` max1619 Jean Delvare
2005-05-19  6:25 ` max1619 Jean Delvare
2005-05-19  6:25 ` max1619 Alexey Fisher
2005-05-19  6:25 ` max1619 Alexey Fisher
2005-05-19  6:25 ` max1619 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=20040523152124.5777a192.khali@linux-fr.org \
    --to=khali@linux-fr.org \
    --cc=lm-sensors@vger.kernel.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.