mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nuno Monteiro <nuno@itsari.org>
To: marcelo.tosatti@cyclades.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH][2.4] Remove ide bootup noise
Date: Sat, 17 Jan 2004 19:47:07 +0000	[thread overview]
Message-ID: <20040117194707.GC19667@hobbes.itsari.int> (raw)

Hi Marcelo,


Recently, while syncing my local tree from 2.4.22 to 2.4.25-pre I found 
this little patchlet (back from the 2.4.20 days, AFAIR) that still 
applies and looks pertinent. I believe the original author is Erik 
Andersen, although I can't say for certain since I don't have the 
original email around anymore. Also, I seem to recall that Jens Axboe 
ok'ed it, but for whatever reason it never found its way into mainline.

This will remove the pointless boot message about wether or not the drive 
supports host protected area. Since we don't report any other drive 
capabilities this should go, as it' is just pointless noise. In 2.6 this 
was killed too. Also, this information can be obtained using 'hdparm'.

Please review and apply.


Regards,


		Nuno




--- linux-2.4.25-pre5/drivers/ide/ide-disk.c.orig	2004-01-15 22:20:25.355342064 +0000
+++ linux-2.4.25-pre5/drivers/ide/ide-disk.c	2004-01-15 22:25:48.189263848 +0000
@@ -1136,10 +1136,7 @@
  */
 static inline int idedisk_supports_host_protected_area(ide_drive_t *drive)
 {
-	int flag = (drive->id->cfs_enable_1 & 0x0400) ? 1 : 0;
-	if (flag)
-		printk("%s: host protected area => %d\n", drive->name, flag);
-	return flag;
+	return ((drive->id->cfs_enable_1 & 0x0400) ? 1 : 0);
 }
 
 /*



             reply	other threads:[~2004-01-17 19:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-17 19:47 Nuno Monteiro [this message]
2004-01-17 19:57 ` Erik Andersen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040117194707.GC19667@hobbes.itsari.int \
    --to=nuno@itsari.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo.tosatti@cyclades.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®