linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 6/21] ide: move CONFIG_IDE_ETRAX to drivers/ide/Kconfig
@ 2007-11-18 22:17 Bartlomiej Zolnierkiewicz
  2007-11-19 19:04 ` Sergei Shtylyov
  0 siblings, 1 reply; 4+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2007-11-18 22:17 UTC (permalink / raw)
  To: linux-ide; +Cc: Mikael Starvik


* Move ETRAX_IDE and friends from arch/cris/arch-{v10,v32}/drivers/Kconfig
  to drivers/ide/Kconfig.

* Don't force selecting ide-disk and ide-cd device drivers
  (please handle this through defconfig if necessary).

* Make ETRAX_IDE depend on BROKEN for the time being
  (it doesn't even compile currently).

Cc: Mikael Starvik <starvik@axis.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
 arch/cris/arch-v10/drivers/Kconfig |   39 -------------------------------------
 arch/cris/arch-v32/drivers/Kconfig |   12 -----------
 drivers/ide/Kconfig                |   35 +++++++++++++++++++++++++++++++++
 3 files changed, 35 insertions(+), 51 deletions(-)

Index: b/arch/cris/arch-v10/drivers/Kconfig
===================================================================
--- a/arch/cris/arch-v10/drivers/Kconfig
+++ b/arch/cris/arch-v10/drivers/Kconfig
@@ -542,45 +542,6 @@ config ETRAX_RS485_DISABLE_RECEIVER
 	  loopback.  Not all products are able to do this in software only.
 	  Axis 2400/2401 must disable receiver.
 
-config ETRAX_IDE
-	bool "ATA/IDE support"
-	select IDE
-	select BLK_DEV_IDE
-	select BLK_DEV_IDEDISK
-	select BLK_DEV_IDECD
-	select BLK_DEV_IDEDMA
-	select IDE_GENERIC
-	help
-	  Enable this to get support for ATA/IDE.
-	  You can't use parallel ports or SCSI ports
-	  at the same time.
-
-
-config ETRAX_IDE_DELAY
-	int "Delay for drives to regain consciousness"
-	depends on ETRAX_IDE
-	default 15
-	help
-	  Number of seconds to wait for IDE drives to spin up after an IDE
-	  reset.
-choice
-	prompt "IDE reset pin"
-	depends on ETRAX_IDE
-	default ETRAX_IDE_PB7_RESET
-
-config ETRAX_IDE_PB7_RESET
-	bool "Port_PB_Bit_7"
-	help
-	  IDE reset on pin 7 on port B
-
-config ETRAX_IDE_G27_RESET
-	bool "Port_G_Bit_27"
-	help
-	  IDE reset on pin 27 on port G
-
-endchoice
-
-
 config ETRAX_USB_HOST
 	bool "USB host"
 	select USB
Index: b/arch/cris/arch-v32/drivers/Kconfig
===================================================================
--- a/arch/cris/arch-v32/drivers/Kconfig
+++ b/arch/cris/arch-v32/drivers/Kconfig
@@ -582,18 +582,6 @@ config ETRAX_PE_CHANGEABLE_BITS
 	  that a user can change the value on using ioctl's.
 	  Bit set = changeable.
 
-config ETRAX_IDE
-	bool "ATA/IDE support"
-	depends on ETRAX_ARCH_V32
-	select IDE
-	select BLK_DEV_IDE
-	select BLK_DEV_IDEDISK
-	select BLK_DEV_IDECD
-	select BLK_DEV_IDEDMA
-	select IDE_GENERIC
-	help
-	  Enables the ETRAX IDE driver.
-
 config ETRAX_CARDBUS
         bool "Cardbus support"
         depends on ETRAX_ARCH_V32
Index: b/drivers/ide/Kconfig
===================================================================
--- a/drivers/ide/Kconfig
+++ b/drivers/ide/Kconfig
@@ -870,6 +870,41 @@ config BLK_DEV_IDE_BAST
 	  Say Y here if you want to support the onboard IDE channels on the
 	  Simtec BAST or the Thorcom VR1000
 
+config ETRAX_IDE
+	bool "ETRAX IDE support"
+	depends on CRIS && BROKEN
+	select BLK_DEV_IDEDMA
+	select IDE_GENERIC
+	help
+	  Enables the ETRAX IDE driver.
+
+	  You can't use parallel ports or SCSI ports at the same time.
+
+config ETRAX_IDE_DELAY
+	int "Delay for drives to regain consciousness"
+	depends on ETRAX_IDE && ETRAX_ARCH_V10
+	default 15
+	help
+	  Number of seconds to wait for IDE drives to spin up after an IDE
+	  reset.
+
+choice
+	prompt "IDE reset pin"
+	depends on ETRAX_IDE && ETRAX_ARCH_V10
+	default ETRAX_IDE_PB7_RESET
+
+config ETRAX_IDE_PB7_RESET
+	bool "Port_PB_Bit_7"
+	help
+	  IDE reset on pin 7 on port B
+
+config ETRAX_IDE_G27_RESET
+	bool "Port_G_Bit_27"
+	help
+	  IDE reset on pin 27 on port G
+
+endchoice
+
 config IDE_H8300
 	bool "H8300 IDE support"
 	depends on H8300

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

* Re: [PATCH 6/21] ide: move CONFIG_IDE_ETRAX to drivers/ide/Kconfig
  2007-11-18 22:17 [PATCH 6/21] ide: move CONFIG_IDE_ETRAX to drivers/ide/Kconfig Bartlomiej Zolnierkiewicz
@ 2007-11-19 19:04 ` Sergei Shtylyov
  2007-11-20 23:10   ` Bartlomiej Zolnierkiewicz
  0 siblings, 1 reply; 4+ messages in thread
From: Sergei Shtylyov @ 2007-11-19 19:04 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz; +Cc: linux-ide, Mikael Starvik

Bartlomiej Zolnierkiewicz wrote:

> * Move ETRAX_IDE and friends from arch/cris/arch-{v10,v32}/drivers/Kconfig
>   to drivers/ide/Kconfig.

> * Don't force selecting ide-disk and ide-cd device drivers
>   (please handle this through defconfig if necessary).

> * Make ETRAX_IDE depend on BROKEN for the time being
>   (it doesn't even compile currently).

> Cc: Mikael Starvik <starvik@axis.com>
> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

> Index: b/drivers/ide/Kconfig
> ===================================================================
> --- a/drivers/ide/Kconfig
> +++ b/drivers/ide/Kconfig
> @@ -870,6 +870,41 @@ config BLK_DEV_IDE_BAST
>  	  Say Y here if you want to support the onboard IDE channels on the
>  	  Simtec BAST or the Thorcom VR1000
>  
> +config ETRAX_IDE
> +	bool "ETRAX IDE support"
> +	depends on CRIS && BROKEN
> +	select BLK_DEV_IDEDMA

    Shouldn't it be the other way around, i.e. BLK_DEV_IDEDMA is enabled by 
ETRAX_IDE as is the case with this option otherwise?

MBR, Sergei

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

* Re: [PATCH 6/21] ide: move CONFIG_IDE_ETRAX to drivers/ide/Kconfig
  2007-11-19 19:04 ` Sergei Shtylyov
@ 2007-11-20 23:10   ` Bartlomiej Zolnierkiewicz
  2007-11-21 11:07     ` Sergei Shtylyov
  0 siblings, 1 reply; 4+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2007-11-20 23:10 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: linux-ide, Mikael Starvik

On Monday 19 November 2007, Sergei Shtylyov wrote:
> Bartlomiej Zolnierkiewicz wrote:
> 
> > * Move ETRAX_IDE and friends from arch/cris/arch-{v10,v32}/drivers/Kconfig
> >   to drivers/ide/Kconfig.
> 
> > * Don't force selecting ide-disk and ide-cd device drivers
> >   (please handle this through defconfig if necessary).
> 
> > * Make ETRAX_IDE depend on BROKEN for the time being
> >   (it doesn't even compile currently).
> 
> > Cc: Mikael Starvik <starvik@axis.com>
> > Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> 
> > Index: b/drivers/ide/Kconfig
> > ===================================================================
> > --- a/drivers/ide/Kconfig
> > +++ b/drivers/ide/Kconfig
> > @@ -870,6 +870,41 @@ config BLK_DEV_IDE_BAST
> >  	  Say Y here if you want to support the onboard IDE channels on the
> >  	  Simtec BAST or the Thorcom VR1000
> >  
> > +config ETRAX_IDE
> > +	bool "ETRAX IDE support"
> > +	depends on CRIS && BROKEN
> > +	select BLK_DEV_IDEDMA
> 
>     Shouldn't it be the other way around, i.e. BLK_DEV_IDEDMA is enabled by 
> ETRAX_IDE as is the case with this option otherwise?

Well, having a simple

config BLK_DEV_IDEDMA
	bool

and making the other options select it seems to be a better solution.

Thanks,
Bart

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

* Re: [PATCH 6/21] ide: move CONFIG_IDE_ETRAX to drivers/ide/Kconfig
  2007-11-20 23:10   ` Bartlomiej Zolnierkiewicz
@ 2007-11-21 11:07     ` Sergei Shtylyov
  0 siblings, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2007-11-21 11:07 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz; +Cc: linux-ide, Mikael Starvik

Bartlomiej Zolnierkiewicz wrote:

>>>* Move ETRAX_IDE and friends from arch/cris/arch-{v10,v32}/drivers/Kconfig
>>>  to drivers/ide/Kconfig.

>>>* Don't force selecting ide-disk and ide-cd device drivers
>>>  (please handle this through defconfig if necessary).

>>>* Make ETRAX_IDE depend on BROKEN for the time being
>>>  (it doesn't even compile currently).

>>>Cc: Mikael Starvik <starvik@axis.com>
>>>Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

>>>Index: b/drivers/ide/Kconfig
>>>===================================================================
>>>--- a/drivers/ide/Kconfig
>>>+++ b/drivers/ide/Kconfig
>>>@@ -870,6 +870,41 @@ config BLK_DEV_IDE_BAST
>>> 	  Say Y here if you want to support the onboard IDE channels on the
>>> 	  Simtec BAST or the Thorcom VR1000
>>> 
>>>+config ETRAX_IDE
>>>+	bool "ETRAX IDE support"
>>>+	depends on CRIS && BROKEN
>>>+	select BLK_DEV_IDEDMA

>>    Shouldn't it be the other way around, i.e. BLK_DEV_IDEDMA is enabled by 
>>ETRAX_IDE as is the case with this option otherwise?

> Well, having a simple

> config BLK_DEV_IDEDMA
> 	bool

> and making the other options select it seems to be a better solution.

    Well, then

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>

MBR, Sergei

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

end of thread, other threads:[~2007-11-21 11:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-18 22:17 [PATCH 6/21] ide: move CONFIG_IDE_ETRAX to drivers/ide/Kconfig Bartlomiej Zolnierkiewicz
2007-11-19 19:04 ` Sergei Shtylyov
2007-11-20 23:10   ` Bartlomiej Zolnierkiewicz
2007-11-21 11:07     ` Sergei Shtylyov

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