linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Drop IRDA ISA dependency
@ 2004-10-29 13:08 Andi Kleen
  2004-10-29 13:45 ` Christoph Hellwig
  0 siblings, 1 reply; 7+ messages in thread
From: Andi Kleen @ 2004-10-29 13:08 UTC (permalink / raw)
  To: akpm, linux-kernel


Make IRDA devices are not really ISA devices not depend on CONFIG_ISA.
This allows to use them on x86-64

Signed-off-by: Andi Kleen <ak@suse.de>

diff -urpN -X ../KDIFX linux/drivers/net/irda/Kconfig linux-2.6.8-amd64/drivers/net/irda/Kconfig
--- linux/drivers/net/irda/Kconfig	2004-08-15 19:45:26.000000000 +0200
+++ linux-2.6.8-amd64/drivers/net/irda/Kconfig	2004-08-05 04:23:51.000000000 +0200
@@ -310,7 +310,7 @@ config SIGMATEL_FIR
 
 config NSC_FIR
 	tristate "NSC PC87108/PC87338"
-	depends on IRDA && ISA
+	depends on IRDA
 	help
 	  Say Y here if you want to build support for the NSC PC87108 and
 	  PC87338 IrDA chipsets.  This driver supports SIR,
@@ -321,7 +321,7 @@ config NSC_FIR
 
 config WINBOND_FIR
 	tristate "Winbond W83977AF (IR)"
-	depends on IRDA && ISA
+	depends on IRDA
 	help
 	  Say Y here if you want to build IrDA support for the Winbond
 	  W83977AF super-io chipset.  This driver should be used for the IrDA
@@ -347,7 +347,7 @@ config AU1000_FIR
 
 config SMC_IRCC_FIR
 	tristate "SMSC IrCC (EXPERIMENTAL)"
-	depends on EXPERIMENTAL && IRDA && ISA
+	depends on EXPERIMENTAL && IRDA
 	help
 	  Say Y here if you want to build support for the SMC Infrared
 	  Communications Controller.  It is used in a wide variety of
@@ -357,7 +357,7 @@ config SMC_IRCC_FIR
 
 config ALI_FIR
 	tristate "ALi M5123 FIR (EXPERIMENTAL)"
-	depends on EXPERIMENTAL && IRDA && ISA
+	depends on EXPERIMENTAL && IRDA
 	help
 	  Say Y here if you want to build support for the ALi M5123 FIR
 	  Controller.  The ALi M5123 FIR Controller is embedded in ALi M1543C,
@@ -385,7 +385,7 @@ config SA1100_FIR
 
 config VIA_FIR
 	tristate "VIA VT8231/VT1211 SIR/MIR/FIR"
-	depends on IRDA && ISA && PCI
+	depends on IRDA
 	help
 	  Say Y here if you want to build support for the VIA VT8231
 	  and VIA VT1211 IrDA controllers, found on the motherboards using
diff -urpN -X ../KDIFX linux/include/net/irda/irda_device.h linux-2.6.8-amd64/include/net/irda/irda_device.h
--- linux/include/net/irda/irda_device.h	2004-08-15 19:45:52.000000000 +0200
+++ linux-2.6.8-amd64/include/net/irda/irda_device.h	2004-07-27 15:11:57.000000000 +0200
@@ -237,9 +237,7 @@ int  irda_device_register_dongle(struct 
 dongle_t *irda_device_dongle_init(struct net_device *dev, int type);
 int irda_device_dongle_cleanup(dongle_t *dongle);
 
-#ifdef CONFIG_ISA
 void irda_setup_dma(int channel, dma_addr_t buffer, int count, int mode);
-#endif
 
 void irda_task_delete(struct irda_task *task);
 struct irda_task *irda_task_execute(void *instance, 
diff -urpN -X ../KDIFX linux/net/irda/irda_device.c linux-2.6.8-amd64/net/irda/irda_device.c
--- linux/net/irda/irda_device.c	2004-08-15 19:45:58.000000000 +0200
+++ linux-2.6.8-amd64/net/irda/irda_device.c	2004-07-27 15:11:57.000000000 +0200
@@ -529,11 +529,10 @@ int irda_device_set_mode(struct net_devi
 	return ret;
 }
 
-#ifdef CONFIG_ISA
 /*
  * Function setup_dma (idev, buffer, count, mode)
  *
- *    Setup the DMA channel. Commonly used by ISA FIR drivers
+ *    Setup the DMA channel. Commonly used by LPC FIR drivers
  *
  */
 void irda_setup_dma(int channel, dma_addr_t buffer, int count, int mode)
@@ -552,4 +551,3 @@ void irda_setup_dma(int channel, dma_add
 	release_dma_lock(flags);
 }
 EXPORT_SYMBOL(irda_setup_dma);
-#endif

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

* Re: [PATCH] Drop IRDA ISA dependency
  2004-10-29 13:08 [PATCH] Drop IRDA ISA dependency Andi Kleen
@ 2004-10-29 13:45 ` Christoph Hellwig
  2004-10-29 14:03   ` Andi Kleen
  2004-10-29 20:22   ` Dave Jones
  0 siblings, 2 replies; 7+ messages in thread
From: Christoph Hellwig @ 2004-10-29 13:45 UTC (permalink / raw)
  To: Andi Kleen; +Cc: akpm, linux-kernel

On Fri, Oct 29, 2004 at 03:08:46PM +0200, Andi Kleen wrote:
> 
> Make IRDA devices are not really ISA devices not depend on CONFIG_ISA.
> This allows to use them on x86-64

but this is bogus.  If it's using isa-style DMA it needs CONFIG_ISA.


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

* Re: [PATCH] Drop IRDA ISA dependency
  2004-10-29 13:45 ` Christoph Hellwig
@ 2004-10-29 14:03   ` Andi Kleen
  2004-10-29 14:15     ` Christoph Hellwig
  2004-10-29 20:22   ` Dave Jones
  1 sibling, 1 reply; 7+ messages in thread
From: Andi Kleen @ 2004-10-29 14:03 UTC (permalink / raw)
  To: Christoph Hellwig, Andi Kleen, akpm, linux-kernel

On Fri, Oct 29, 2004 at 02:45:49PM +0100, Christoph Hellwig wrote:
> On Fri, Oct 29, 2004 at 03:08:46PM +0200, Andi Kleen wrote:
> > 
> > Make IRDA devices are not really ISA devices not depend on CONFIG_ISA.
> > This allows to use them on x86-64
> 
> but this is bogus.  If it's using isa-style DMA it needs CONFIG_ISA.

No it doesn't. They work just fine with the patch applied on x86-64.

-Andi
> 

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

* Re: [PATCH] Drop IRDA ISA dependency
  2004-10-29 14:03   ` Andi Kleen
@ 2004-10-29 14:15     ` Christoph Hellwig
  0 siblings, 0 replies; 7+ messages in thread
From: Christoph Hellwig @ 2004-10-29 14:15 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Christoph Hellwig, akpm, linux-kernel

On Fri, Oct 29, 2004 at 04:03:57PM +0200, Andi Kleen wrote:
> On Fri, Oct 29, 2004 at 02:45:49PM +0100, Christoph Hellwig wrote:
> > On Fri, Oct 29, 2004 at 03:08:46PM +0200, Andi Kleen wrote:
> > > 
> > > Make IRDA devices are not really ISA devices not depend on CONFIG_ISA.
> > > This allows to use them on x86-64
> > 
> > but this is bogus.  If it's using isa-style DMA it needs CONFIG_ISA.
> 
> No it doesn't. They work just fine with the patch applied on x86-64.

It doesn't on various other architectures.


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

* Re: [PATCH] Drop IRDA ISA dependency
  2004-10-29 13:45 ` Christoph Hellwig
  2004-10-29 14:03   ` Andi Kleen
@ 2004-10-29 20:22   ` Dave Jones
  2004-10-30  0:04     ` Andi Kleen
  2004-10-30 18:58     ` Chris Wedgwood
  1 sibling, 2 replies; 7+ messages in thread
From: Dave Jones @ 2004-10-29 20:22 UTC (permalink / raw)
  To: Christoph Hellwig, Andi Kleen, akpm, linux-kernel

On Fri, Oct 29, 2004 at 02:45:49PM +0100, Christoph Hellwig wrote:
 
 > but this is bogus.  If it's using isa-style DMA it needs CONFIG_ISA.

Sounds like there is some confusion over what CONFIG_ISA means.
I always understood it to mean 'We have ISA slots on this architecture'
regardless of whether theres an ISA style LPC bus.
Its a means of disabling a whole slew of drivers that have no
meaning on a particular platform (in Andi's case, x86-64).

Or did I get confused ?

		Dave


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

* Re: [PATCH] Drop IRDA ISA dependency
  2004-10-29 20:22   ` Dave Jones
@ 2004-10-30  0:04     ` Andi Kleen
  2004-10-30 18:58     ` Chris Wedgwood
  1 sibling, 0 replies; 7+ messages in thread
From: Andi Kleen @ 2004-10-30  0:04 UTC (permalink / raw)
  To: Dave Jones, Christoph Hellwig, Andi Kleen, akpm, linux-kernel

On Fri, Oct 29, 2004 at 09:22:14PM +0100, Dave Jones wrote:
> On Fri, Oct 29, 2004 at 02:45:49PM +0100, Christoph Hellwig wrote:
>  
>  > but this is bogus.  If it's using isa-style DMA it needs CONFIG_ISA.
> 
> Sounds like there is some confusion over what CONFIG_ISA means.
> I always understood it to mean 'We have ISA slots on this architecture'
> regardless of whether theres an ISA style LPC bus.
> Its a means of disabling a whole slew of drivers that have no
> meaning on a particular platform (in Andi's case, x86-64).

That's exactly my understanding too.

> Or did I get confused ?

I don't think so.

-Andi

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

* Re: [PATCH] Drop IRDA ISA dependency
  2004-10-29 20:22   ` Dave Jones
  2004-10-30  0:04     ` Andi Kleen
@ 2004-10-30 18:58     ` Chris Wedgwood
  1 sibling, 0 replies; 7+ messages in thread
From: Chris Wedgwood @ 2004-10-30 18:58 UTC (permalink / raw)
  To: Dave Jones, Christoph Hellwig, Andi Kleen, akpm, linux-kernel

On Fri, Oct 29, 2004 at 09:22:14PM +0100, Dave Jones wrote:

> Sounds like there is some confusion over what CONFIG_ISA means.

i think it was vague / different before maybe?

> I always understood it to mean 'We have ISA slots on this
> architecture' regardless of whether theres an ISA style LPC bus.

or pc card --- but this got separate recently didn't it?

> Its a means of disabling a whole slew of drivers that have no
> meaning on a particular platform (in Andi's case, x86-64).

maybe we want CONFIG_BUS_ISA and CONFIG_SLOT_ISA, the former meaning
we have bus/semantics the latter depends on the former and means
physical slots --- which would be used to prune the driver selection
choices?


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

end of thread, other threads:[~2004-10-30 18:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-29 13:08 [PATCH] Drop IRDA ISA dependency Andi Kleen
2004-10-29 13:45 ` Christoph Hellwig
2004-10-29 14:03   ` Andi Kleen
2004-10-29 14:15     ` Christoph Hellwig
2004-10-29 20:22   ` Dave Jones
2004-10-30  0:04     ` Andi Kleen
2004-10-30 18:58     ` Chris Wedgwood

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