All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] get rid of i2c-isa - h now - fixes of w82627ehf
Date: Mon, 23 Apr 2007 14:14:28 +0000	[thread overview]
Message-ID: <20070423161428.4dd1c8ca@hyperion.delvare> (raw)
In-Reply-To: <45F47B44.8010108@assembler.cz>

Hi David,

Sorry for the late answer,

On Thu, 29 Mar 2007 00:30:55 -0700, David Hubbard wrote:
> > I suggest adding warning messages when the base I/O isn't set and when
> > we need to forcibly enable the device, as I did in the w83627hf driver.
> > This will make support easier.
> 
> I'm not clear on which part of the w83627hf driver does this. I can't
> find the patch in the mail archives that converts w83627hf to a
> platform driver, but I think this is the section of code
> (pre-platform-driver) that you're talking about: w83627hf.c lines
> 1399-1403:
>         /* Minimize conflicts with other winbond i2c-only clients...  */
>         /* disable i2c subclients... how to disable main i2c client?? */
>         /* force i2c address to relatively uncommon address */
>         w83627hf_write_value(client, W83781D_REG_I2C_SUBADDR, 0x89);
>         w83627hf_write_value(client, W83781D_REG_I2C_ADDR, force_i2c);
> 
> Let's make the "forcibly enable the device" a separate patch.

No, what I was referring to is something completely different:

static int __init w83627ehf_find(int sioaddr, unsigned short *addr)
{
	(...)
	/* Activate logical device if needed */
	val = superio_inb(SIO_REG_ENABLE);
	if (!(val & 0x01))
		superio_outb(SIO_REG_ENABLE, val | 0x01);
	(...)
}

Here we enable the device if we found it was disabled. My experience is
that Super-I/O logical devices which aren't enabled by the BIOS are
typically not meant to be used, they aren't wired properly. So the
least we can do if we have to enable it is to log it to serve as a hint
for users if the sensors readings don't make sense. The w83627hf driver
does this.

But I do agree that this isn't related to the platform driver
conversion and should be added in a different patch.

-- 
Jean Delvare

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

  parent reply	other threads:[~2007-04-23 14:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-11 21:57 [lm-sensors] get rid of i2c-isa - h now - fixes of w82627ehf Rudolf Marek
2007-03-12  3:28 ` David Hubbard
2007-03-12 10:27 ` Jean Delvare
2007-03-12 13:06 ` Jean Delvare
2007-03-15 15:56 ` David Hubbard
2007-03-28 17:20 ` David Hubbard
2007-03-29  7:30 ` David Hubbard
2007-03-29 19:13 ` David Hubbard
2007-04-23 14:14 ` Jean Delvare [this message]
2007-04-24 17:58 ` Jean Delvare
2007-05-20  0:57 ` David Hubbard
2007-05-22  8:35 ` 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=20070423161428.4dd1c8ca@hyperion.delvare \
    --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.