linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]: Suppress output of error messages for non-existant interfaces
@ 2005-01-12 14:04 Prarit Bhargava
  2005-01-15  1:33 ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 2+ messages in thread
From: Prarit Bhargava @ 2005-01-12 14:04 UTC (permalink / raw)
  To: linux-ide

[-- Attachment #1: Type: text/plain, Size: 212 bytes --]

Suppress output of "Wait for ready failed before probe !" messages for 
non-existant interfaces.

Please see 
http://marc.theaimsgroup.com/?l=linux-ide&m=110553792013649&w=2 for 
further context on this patch.



[-- Attachment #2: ide-probe.patch --]
[-- Type: text/plain, Size: 1022 bytes --]

--- linux-2.5.orig/drivers/ide/ide-probe.c	2005-01-12 09:00:49.000000000 -0500
+++ linux-2.5/drivers/ide/ide-probe.c	2005-01-12 09:01:25.000000000 -0500
@@ -742,21 +742,21 @@
 	 *    their reset sequence even when they are non-selected slave
 	 *    devices, thus preventing discovery of the main HD
 	 *    
 	 *  Doing this wait-for-busy should not harm any existing configuration
 	 *  (at least things won't be worse than what current code does, that
 	 *  is blindly go & talk to the drive) and fix some issues like the
 	 *  above.
 	 *  
 	 *  BenH.
 	 */
-	if (wait_hwif_ready(hwif))
+	if (wait_hwif_ready(hwif) == -EBUSY)
 		printk(KERN_DEBUG "%s: Wait for ready failed before probe !\n", hwif->name);
 
 	/*
 	 * Second drive should only exist if first drive was found,
 	 * but a lot of cdrom drives are configured as single slaves.
 	 */
 	for (unit = 0; unit < MAX_DRIVES; ++unit) {
 		ide_drive_t *drive = &hwif->drives[unit];
 		drive->dn = (hwif->channel ? 2 : 0) + unit;
 		(void) probe_for_drive(drive);

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

end of thread, other threads:[~2005-01-15  1:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-12 14:04 [PATCH]: Suppress output of error messages for non-existant interfaces Prarit Bhargava
2005-01-15  1:33 ` Bartlomiej Zolnierkiewicz

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).