Skip to contentSkip to conversation

libata: Fix host->simplex_claimed != ap typo

DISCUSSION NAK OGAWA Hirofumi 3 participants 6 messages Mar 8, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

the following patch is needed to boot my laptop using pata_ali.ko, at least. Please apply.

Signature · 26 lines
OGAWA Hirofumi <[email protected]>




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

Signed-off-by: OGAWA Hirofumi <[email protected]>
---

 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");
_
#1 lore raw
Quoted 4 lines · OGAWA Hirofumi

Hi,

the following patch is needed to boot my laptop using pata_ali.ko, at least. Please apply.

Someone else caught this as well. This will go upstream today.

Jeff

#2 lore raw
In reply to OGAWA Hirofumi
Quoted 4 lines · On Thu, 08 Mar 2007 23:17:00 +0900 OGAWA Hirofumi…

Hi,

the following patch is needed to boot my laptop using pata_ali.ko, at least. Please apply.

NAK - correct fix is to check != && != NULL. The correct fix was posted to the list earlier by Vojtech.

Alan

#3 lore raw
Quoted 10 lines · Alan Cox
Quoted 4 lines · On Thu, 08 Mar 2007 23:17:00 +0900 OGAWA Hirofumi…

Hi,

the following patch is needed to boot my laptop using pata_ali.ko, at least. Please apply.

NAK - correct fix is to check != && != NULL. The correct fix was posted to the list earlier by Vojtech.

You mean Petr Vandrovec I presume?

Jeff

#4 lore raw
Quoted 6 lines · On Thu, 08 Mar 2007 10:18:24 -0500 Jeff Garzik <[email protected]> wrote:
Quoted 5 lines · Alan Cox
Quoted 2 lines · On Thu, 08 Mar 2007 23:17:00 +0900 OGAWA Hirofumi…

Hi,

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

the following patch is needed to boot my laptop using pata_ali.ko, at least. Please apply.

NAK - correct fix is to check != && != NULL. The correct fix was posted to the list earlier by Vojtech.

You mean Petr Vandrovec I presume?

Sorry got the wrong person - I do indeed

#5 lore raw
Quoted 12 lines · Alan Cox
Quoted 9 lines · On Thu, 08 Mar 2007 10:18:24 -0500 Jeff Garzik <[email protected]> wrote:
Quoted 8 lines · Alan Cox
Quoted 4 lines · On Thu, 08 Mar 2007 23:17:00 +0900 OGAWA Hirofumi…

Hi,

the following patch is needed to boot my laptop using pata_ali.ko, at least. Please apply.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

NAK - correct fix is to check != && != NULL. The correct fix was posted to the list earlier by Vojtech.

You mean Petr Vandrovec I presume?

Sorry got the wrong person - I do indeed

I found the Petr's patch in linux-ide and confirmed it. Thanks.

Signature · 1 line
OGAWA Hirofumi <[email protected]>