public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mark Tomich <tomichm@bellsouth.net>
To: linux-kernel@vger.kernel.org
Cc: jgarzik@pobox.com
Subject: patch to add a config option to enable SATA ATAPI by default
Date: Sun, 30 Oct 2005 11:55:28 -0500	[thread overview]
Message-ID: <1130691328.8303.8.camel@localhost> (raw)

Below is a very straight-forward patch to add a config option to
enabling SATA ATAPI by default.
Please CC me with any comments.

diff -u -r linux-2.6.14-rc5/drivers/scsi/Kconfig
linux-2.6.14-rc5-patched/drivers/scsi/Kconfig
--- linux-2.6.14-rc5/drivers/scsi/Kconfig	2005-10-30 11:09:15.533533419
-0500
+++ linux-2.6.14-rc5-patched/drivers/scsi/Kconfig	2005-10-30
11:21:39.735696058 -0500
@@ -445,6 +445,17 @@
 
 	  If unsure, say N.
 
+config SCSI_SATA_ENABLE_ATAPI
+	bool "Enable SATA ATAPI by default"
+	depends on SCSI_SATA
+	help
+	  SATA ATAPI is disabled by default.
+	  Use this option to enable it by default.
+	  
+	  You probably want this if you have a CDROM attached on the SATA bus.
+
+	  If unsure, say Y.
+
 config SCSI_SATA_AHCI
 	tristate "AHCI SATA support"
 	depends on SCSI_SATA && PCI
diff -u -r linux-2.6.14-rc5/drivers/scsi/libata-core.c
linux-2.6.14-rc5-patched/drivers/scsi/libata-core.c
--- linux-2.6.14-rc5/drivers/scsi/libata-core.c	2005-10-30
11:09:15.614522543 -0500
+++ linux-2.6.14-rc5-patched/drivers/scsi/libata-core.c	2005-10-30
11:44:45.776652352 -0500
@@ -75,7 +75,12 @@
 static unsigned int ata_unique_id = 1;
 static struct workqueue_struct *ata_wq;
 
+#ifdef CONFIG_SCSI_SATA_ENABLE_ATAPI
+int atapi_enabled = 1;
+#else
 int atapi_enabled = 0;
+#endif
+
 module_param(atapi_enabled, int, 0444);
 MODULE_PARM_DESC(atapi_enabled, "Enable discovery of ATAPI devices
(0=off, 1=on)");
 



             reply	other threads:[~2005-10-30 16:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-30 16:55 Mark Tomich [this message]
2005-10-31 10:27 ` patch to add a config option to enable SATA ATAPI by default Olaf Hering
2005-10-31 11:26   ` Jeff Garzik
2005-11-01  2:09     ` Mark Tomich
2005-11-01  7:35       ` Olaf Hering
2005-11-01 12:53         ` Mark Tomich

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=1130691328.8303.8.camel@localhost \
    --to=tomichm@bellsouth.net \
    --cc=jgarzik@pobox.com \
    --cc=linux-kernel@vger.kernel.org \
    /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