Alan Cox wrote:

diff -uprdN linux/drivers/ata/libata-core.c linux/drivers/ata/libata-core.c
--- linux/drivers/ata/libata-core.c     2007-03-07 22:13:24.000000000 -0800
+++ linux/drivers/ata/libata-core.c     2007-03-08 00:15:37.000000000 -0800
@@ -3455,7 +3455,8 @@ 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 && host->simplex_claimed != ap) {

A different version of this fix just went upstream for 2.6.21 via Jeff.
Which of the two is correct?

I believe the other one looks like this:

-       if ((host->flags & ATA_HOST_SIMPLEX) && host->simplex_claimed != ap) {
-       if ((host->flags & ATA_HOST_SIMPLEX) && host->simplex_claimed == ap) {

Cheers
-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to