+ via-pata-controller-xfer-fixes-update.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     via-pata-fails-on-some-atapi-drives update

has been added to the -mm tree.  Its filename is

     via-pata-controller-xfer-fixes-update.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: via-pata-fails-on-some-atapi-drives update
From: matthieu castet <castet.matthieu@xxxxxxx>


This patch correct an infinite busy loop after the first ten tries of the
previous patch.  Bug spotted by Andrew Morton.

Signed-off-by: Matthieu CASTET <castet.matthieu@xxxxxxx>
Cc: Alan Cox <alan@xxxxxxxxxxxxxxxxxxx>
Cc: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@xxxxxxxxxxxxxx>
Cc: Jeff Garzik <jeff@xxxxxxxxxx>
Cc: Tejun Heo <htejun@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/scsi/pata_via.c |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff -puN drivers/scsi/pata_via.c~via-pata-controller-xfer-fixes-update drivers/scsi/pata_via.c
--- a/drivers/scsi/pata_via.c~via-pata-controller-xfer-fixes-update
+++ a/drivers/scsi/pata_via.c
@@ -335,12 +335,15 @@ static irqreturn_t pata_via_interrupt(in
 				 */
 				int i;
 
-				for (i = 0; ata_altstatus(ap) & ATA_BUSY; i++) {
-					if (i > 10)
-						continue;
+				for (i = 0; i < 10; i++) {
+					if (!(ata_altstatus(ap) & ATA_BUSY))
+						break;
 					udelay(1);
 				}
 
+				if (ata_altstatus(ap) & ATA_BUSY)
+					continue;	/* It's stuck */
+
 				if (i)
 					ata_port_printk(ap, KERN_WARNING,
 						"ata_altstatus take %dus\n", i);
_

Patches currently in -mm which might be from castet.matthieu@xxxxxxx are

origin.patch
pnpacpi-reject-acpi_producer-resources.patch
via-pata-controller-xfer-fixes.patch
via-pata-controller-xfer-fixes-tidy.patch
via-pata-controller-xfer-fixes-update.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux