mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
To: Jeff Garzik <jeff@garzik.org>, Alan Cox <alan@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org
Subject: libata: Fix host->simplex_claimed != ap typo
Date: Thu, 08 Mar 2007 23:17:00 +0900	[thread overview]
Message-ID: <87lki7zuoz.fsf@duaron.myhome.or.jp> (raw)

Hi,

the following patch is needed to boot my laptop using pata_ali.ko, at least.
Please apply.
-- 
OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>




Fix typo. "host->simplex_claimed != ap" should be "==", not "!=".

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
---

 drivers/ata/libata-core.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/ata/libata-core.c~ata-fix-simplex-handling-fix drivers/ata/libata-core.c
--- linux-2.6/drivers/ata/libata-core.c~ata-fix-simplex-handling-fix	2007-03-08 07:31:49.000000000 +0900
+++ linux-2.6-hirofumi/drivers/ata/libata-core.c	2007-03-08 07:31:59.000000000 +0900
@@ -3455,7 +3455,7 @@ static void ata_dev_xfermask(struct ata_
 			       "device is on DMA blacklist, disabling DMA\n");
 	}
 
-	if ((host->flags & ATA_HOST_SIMPLEX) && host->simplex_claimed != ap) {
+	if ((host->flags & ATA_HOST_SIMPLEX) && host->simplex_claimed == ap) {
 		xfer_mask &= ~(ATA_MASK_MWDMA | ATA_MASK_UDMA);
 		ata_dev_printk(dev, KERN_WARNING, "simplex DMA is claimed by "
 			       "other device, disabling DMA\n");
_

             reply	other threads:[~2007-03-08 14:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-08 14:17 OGAWA Hirofumi [this message]
2007-03-08 14:24 ` Jeff Garzik
2007-03-08 16:01 ` Alan Cox
2007-03-08 15:18   ` Jeff Garzik
2007-03-08 16:25     ` Alan Cox
2007-03-08 20:24       ` OGAWA Hirofumi

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=87lki7zuoz.fsf@duaron.myhome.or.jp \
    --to=hirofumi@mail.parknet.co.jp \
    --cc=akpm@linux-foundation.org \
    --cc=alan@redhat.com \
    --cc=jeff@garzik.org \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®