All of lore.kernel.org
 help / color / mirror / Atom feed
From: bjorn@mork.no (Bjørn Mork)
To: lm-sensors@vger.kernel.org
Subject: SOLVED: Ticket #1409
Date: Thu, 19 May 2005 06:24:20 +0000	[thread overview]
Message-ID: <hv8yo2wjvt.fsf@rasputin.ws.nextra.no> (raw)
In-Reply-To: <hvvfr8digc.fsf@rasputin.ws.nextra.no>

Mark Studebaker <mds@paradyne.com> writes:

> We already have similar super i/o detection in sensors-detect
> and in 3 drivers: vt1211, smsc47m1, and w83627hf.
> There's also super i/o detection in sensors-detect for the it8705, 

ah, right, so it is.  Embarrassing.  I should have noticed.

> but it is commented out because the "exit" value is different than
> for other chips and I didn't want to leave other chips stuck in PnP
> mode

This is somewhat icky, but I believe it wouldn't matter much if you
wrote an extra 0xaa to 0x2e either before or after exiting the ITE
way.  The ITE chips shouldn't mind since you either address a
non-existing register or have already left config mode.

> (although I wonder if your 8712 gets stuck in PnP mode when running
> sensors-detect??).

Hmm, I don't think it will unless you write the exact magic key
sequence and you don't do that.  Let me just test.  This should fail
unless the chip is in config mode: 

#include <sys/io.h> 
int main() {
    if (!ioperm(0x2e, 2, 1)) {
        outb(0x20, 0x2e);
        printf("chip id = 0x%02x", inb(0x2f));
        outb(0x21, 0x2e);
        printf("%02x\n", inb(0x2f));

        return 0;
    }
}

And it fails after running sensors-detect as expected.  No problem.  

Since sensors-detect always writes 0xaa to 0x2e after a failed superIO
probe, the ITE chips will never get stuck in config mode unless there
is some other chip using the exact same magic key with another exit
sequence. I tried with this possible sequence:

 0x87,0x87,0x20,0xaa,0x01,0x55,0x55

which does *not* bring the IT8712F into config mode. 


> If you port over the super i/o code from one of the 3 drivers listed
> above
> and send us a patch we'll include it.

OK.  Will do.


Bj?rn

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

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-19  6:24 SOLVED: Ticket #1409 Bjørn Mork
2005-05-19  6:24 ` Bjørn Mork
2005-05-19  6:24 ` Mark Studebaker
2005-05-19  6:24 ` Jean Delvare
2005-05-19  6:24 ` Bjørn Mork [this message]

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=hv8yo2wjvt.fsf@rasputin.ws.nextra.no \
    --to=bjorn@mork.no \
    --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.