From: Tejun Heo Date: Wed, 23 May 2007 09:58:52 +0000 (+0200) Subject: libata: -ENODEV during prereset isn't an error X-Git-Tag: v2.6.22-rc3~10^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6dffaf61e22d21e539ae7e30c2e33e41230c3d52;p=linux-2.6-omap-h63xx.git libata: -ENODEV during prereset isn't an error During prereset, -ENODEV return from ata_wait_ready() is not an error. This causes unnecessary bug message on controllers which uses 0xff to indicate empty port. Fix it. Signed-off-by: Tejun Heo Cc: Paul Mundt Signed-off-by: Jeff Garzik --- diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 5788a9dd044..3ca9c610c11 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -3368,7 +3368,7 @@ int ata_std_prereset(struct ata_port *ap, unsigned long deadline) */ if (!(ap->flags & ATA_FLAG_SKIP_D2H_BSY) && !ata_port_offline(ap)) { rc = ata_wait_ready(ap, deadline); - if (rc) { + if (rc && rc != -ENODEV) { ata_port_printk(ap, KERN_WARNING, "device not ready " "(errno=%d), forcing hardreset\n", rc); ehc->i.action |= ATA_EH_HARDRESET;