mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Lionel Bouton <Lionel.Bouton@inet6.fr>
To: Daniela Engert <dani@ngrt.de>
Cc: Martin Garton <martin@wrasse.demon.co.uk>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: sis.patch.20020123_1
Date: Mon, 28 Jan 2002 11:54:08 +0100	[thread overview]
Message-ID: <20020128115408.A21844@bouton.inet6-interne.fr> (raw)
In-Reply-To: <Pine.LNX.4.33.0201271412110.32403-100000@wrasse.demon.co.uk> <200201271559.QAA28129@myway.myway.de>
In-Reply-To: <200201271559.QAA28129@myway.myway.de>; from dani@ngrt.de on Sun, Jan 27, 2002 at 04:59:43PM +0100

On Sun, Jan 27, 2002 at 04:59:43PM +0100, Daniela Engert wrote:
> Your chipset cannot be detected by the surrent SiS IDE patch because it
> takes a list based approach to find supported chips and their
> capabilities rather than a more intelligent detection scheme (I've sent
> Lionel code which shows how to do that).

I didn't even know about SiS737 before! I guess I won't rely on SiSHostChipInfo in
v0.14.
I'll check your code next week (skying starting tomorrow).

> >I did a nasty hack to get the device recognised as SiS735, and all is 
> >fine. I haven't posted my patch for this since I don't know the Right fix.
> 
> You just thave to add it to the device list. There are other chips
> missing as well.
> 
> > 		case ATA_66: p += sprintf(p, active_time[(reg01 & 0x07) >> 4]); break;
> >-		case ATA_100: p += sprintf(p, active_time[(reg00 & 0x70)]); break;
> >+		case ATA_100: p += sprintf(p, active_time[(reg00 & 0x07)]); break;
> 
> The problem is that the calculation of the index into the active time
> table is incorrect in *all* three lines above! In the ATA66 case the
> shift is wrong and causes an zero value regardless of the register
> setting. In the "old" ATA100 case the index is calculated from the
> correct bits but is missing the shift by four from the line above;
> because of the too large index you see the OOPS. The "new" ATA100 case
> is wrong because it takes the wrong bits into calculation.

Ooops. Corrected in the last patch.

http://inet6.dyn.dhs.org/sponsoring/sis5513/sis.patch.20020128_1

LB.

      reply	other threads:[~2002-01-28 10:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-27 14:31 sis.patch.20020123_1 Martin Garton
2002-01-27 15:59 ` sis.patch.20020123_1 Daniela Engert
2002-01-28 10:54   ` Lionel Bouton [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=20020128115408.A21844@bouton.inet6-interne.fr \
    --to=lionel.bouton@inet6.fr \
    --cc=dani@ngrt.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin@wrasse.demon.co.uk \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®