linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Werner Backes <wernerbackes@gmail.com>
To: jgarzik@pobox.com, linux-ide@vger.kernel.org
Subject: Combined mode on Dell Inspiron 6000 - patch for 2.6.14-rc5 - ata_piix.c
Date: Fri, 21 Oct 2005 16:15:37 -0500	[thread overview]
Message-ID: <200510211615.38029.wernerbackes@gmail.com> (raw)

Hi,

I'm no kernel expert at all, but since the combined mode for 2.6.13.x was 
working and for 2.6.14-rcx not, I looked at the differences in the code. I 
changed the following line in ata_piix.c. The original code is commented out. 
Since you only switched the values of both defines the line from 2.6.13.x 
seemed to make sense....
Without this change the drive is found, but I cannot use it. No mount, no 
burning, ...  
I hope this will help somehow ...

Werner Backes

static int piix_sata_probe (struct ata_port *ap)
{
  ....

        /* TODO: this is vaguely wrong for ICH6 combined mode,
         * where only two of the four SATA ports are mapped
         * onto a single ATA channel.  It is also vaguely inaccurate
         * for ICH5, which has only two ports.  However, this is ok,
         * as further device presence detection code will handle
         * any false positives produced here.
         */

        for (i = 0; i < 4; i++) {
                mask = (PIIX_PORT_PRESENT << i) | (PIIX_PORT_ENABLED << i);
/*              mask = (PIIX_PORT_ENABLED << i); */

                if ((orig_mask & mask) == mask)
                        if (combined || (i == ap->hard_port_no))
                                return 1;
        }




             reply	other threads:[~2005-10-21 20:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-21 21:15 Werner Backes [this message]
2005-10-21 20:36 ` Combined mode on Dell Inspiron 6000 - patch for 2.6.14-rc5 - ata_piix.c Jeff Garzik

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=200510211615.38029.wernerbackes@gmail.com \
    --to=wernerbackes@gmail.com \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).