linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]: libata-core: Add support for ATA_HORKAGE_DIAGNOSTIC
@ 2007-03-08 23:18 Alan Cox
  2007-03-09 12:48 ` Jeff Garzik
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Cox @ 2007-03-08 23:18 UTC (permalink / raw)
  To: akpm, linux-ide, jgarzik

If we find the device has broken diagnostics then don't report this if we
expect it to. Needed for the Gigabyte i-RAM.

Signed-off-by: Alan Cox <alan@redhat.com>

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.21-rc3-mm2/drivers/ata/libata-core.c linux-2.6.21-rc3-mm2/drivers/ata/libata-core.c
--- linux.vanilla-2.6.21-rc3-mm2/drivers/ata/libata-core.c	2007-03-08 16:01:10.000000000 +0000
+++ linux-2.6.21-rc3-mm2/drivers/ata/libata-core.c	2007-03-08 16:02:52.000000000 +0000
@@ -1751,7 +1765,7 @@
 		/* Let the user know. We don't want to disallow opens for
 		   rescue purposes, or in case the vendor is just a blithering
 		   idiot */
-                if (print_info) {
+                if (print_info && !(ata_device_blacklisted(dev) & ATA_HORKAGE_DIAGNOSTIC)) {
 			ata_dev_printk(dev, KERN_WARNING,
 "Drive reports diagnostics failure. This may indicate a drive\n");
 			ata_dev_printk(dev, KERN_WARNING,


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-03-09 13:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-08 23:18 [PATCH]: libata-core: Add support for ATA_HORKAGE_DIAGNOSTIC Alan Cox
2007-03-09 12:48 ` Jeff Garzik
2007-03-09 14:03   ` Alan Cox
2007-03-09 13:05     ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).