public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* patch to add a config option to enable SATA ATAPI by default
@ 2005-10-30 16:55 Mark Tomich
  2005-10-31 10:27 ` Olaf Hering
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Tomich @ 2005-10-30 16:55 UTC (permalink / raw)
  To: linux-kernel; +Cc: jgarzik

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)");
 



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

* Re: patch to add a config option to enable SATA ATAPI by default
  2005-10-30 16:55 patch to add a config option to enable SATA ATAPI by default Mark Tomich
@ 2005-10-31 10:27 ` Olaf Hering
  2005-10-31 11:26   ` Jeff Garzik
  0 siblings, 1 reply; 6+ messages in thread
From: Olaf Hering @ 2005-10-31 10:27 UTC (permalink / raw)
  To: jgarzik; +Cc: linux-kernel, Mark Tomich

 On Sun, Oct 30, Mark Tomich wrote:

> Below is a very straight-forward patch to add a config option to
> enabling SATA ATAPI by default.

> 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"

Jeff, will you apply this?

-- 
short story of a lazy sysadmin:
 alias appserv=wotan

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

* Re: patch to add a config option to enable SATA ATAPI by default
  2005-10-31 10:27 ` Olaf Hering
@ 2005-10-31 11:26   ` Jeff Garzik
  2005-11-01  2:09     ` Mark Tomich
  0 siblings, 1 reply; 6+ messages in thread
From: Jeff Garzik @ 2005-10-31 11:26 UTC (permalink / raw)
  To: Olaf Hering; +Cc: linux-kernel, Mark Tomich

Olaf Hering wrote:
>  On Sun, Oct 30, Mark Tomich wrote:
> 
> 
>>Below is a very straight-forward patch to add a config option to
>>enabling SATA ATAPI by default.
> 
> 
>>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"
> 
> 
> Jeff, will you apply this?

Nope.  It's already a runtime option.  The runtime option will default 
to enabled when ATAPI is working 100%.

	Jeff




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

* Re: patch to add a config option to enable SATA ATAPI by default
  2005-10-31 11:26   ` Jeff Garzik
@ 2005-11-01  2:09     ` Mark Tomich
  2005-11-01  7:35       ` Olaf Hering
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Tomich @ 2005-11-01  2:09 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Olaf Hering, linux-kernel

Maybe I'm just not doing it properly, but I wasn't able to specify the
"atapi_enabled" option on the kernel command line.  I tried it, but it
still didn't see my  CD-ROM drive.  That's why I wrote the patch.
Anyway, thanks for all your work on LIBATA.

On Mon, 2005-10-31 at 06:26 -0500, Jeff Garzik wrote:
> Olaf Hering wrote:
> >  On Sun, Oct 30, Mark Tomich wrote:
> > 
> > 
> >>Below is a very straight-forward patch to add a config option to
> >>enabling SATA ATAPI by default.
> > 
> > 
> >>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"
> > 
> > 
> > Jeff, will you apply this?
> 
> Nope.  It's already a runtime option.  The runtime option will default 
> to enabled when ATAPI is working 100%.
> 
> 	Jeff
> 
> 
> 


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

* Re: patch to add a config option to enable SATA ATAPI by default
  2005-11-01  2:09     ` Mark Tomich
@ 2005-11-01  7:35       ` Olaf Hering
  2005-11-01 12:53         ` Mark Tomich
  0 siblings, 1 reply; 6+ messages in thread
From: Olaf Hering @ 2005-11-01  7:35 UTC (permalink / raw)
  To: Mark Tomich; +Cc: Jeff Garzik, linux-kernel

 On Mon, Oct 31, Mark Tomich wrote:

> Maybe I'm just not doing it properly, but I wasn't able to specify the
> "atapi_enabled" option on the kernel command line.  I tried it, but it
> still didn't see my  CD-ROM drive.  That's why I wrote the patch.

Use modulename.moduleoption=value, libata.atapi_enabled=1 will likely work.

-- 
short story of a lazy sysadmin:
 alias appserv=wotan

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

* Re: patch to add a config option to enable SATA ATAPI by default
  2005-11-01  7:35       ` Olaf Hering
@ 2005-11-01 12:53         ` Mark Tomich
  0 siblings, 0 replies; 6+ messages in thread
From: Mark Tomich @ 2005-11-01 12:53 UTC (permalink / raw)
  To: Olaf Hering; +Cc: Jeff Garzik, linux-kernel

Sounds good.  Thanks again!

On Tue, 2005-11-01 at 08:35 +0100, Olaf Hering wrote:
>  On Mon, Oct 31, Mark Tomich wrote:
> 
> > Maybe I'm just not doing it properly, but I wasn't able to specify the
> > "atapi_enabled" option on the kernel command line.  I tried it, but it
> > still didn't see my  CD-ROM drive.  That's why I wrote the patch.
> 
> Use modulename.moduleoption=value, libata.atapi_enabled=1 will likely work.
> 


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

end of thread, other threads:[~2005-11-01 12:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-30 16:55 patch to add a config option to enable SATA ATAPI by default Mark Tomich
2005-10-31 10:27 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox