public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Incorrect patch merged (Fwd: [PATCH] fdomain_cs needs ISA])
@ 2004-07-29 15:19 Alan Cox
  0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2004-07-29 15:19 UTC (permalink / raw)
  To: torvalds, akpm, pluto, linux-kernel

fdomain_cs only needs PCMCIA, PCMCIA _is_ ISA bus with wrappers. The
problem arises because the driver uses isa_readb not ioremap when doing
bios scans that are only in the non PCMCIA code path. This broken patch
breaks fdomain_cs on platforms that it supports just fine.

The real fix is 

--- drivers/scsi/fdomain.c~	2004-07-29 17:17:10.133762816 +0100
+++ drivers/scsi/fdomain.c	2004-07-29 17:17:10.133762816 +0100
@@ -681,6 +681,7 @@
 
 static int fdomain_isa_detect( int *irq, int *iobase )
 {
+#ifndef PCMCIA
    int i, j;
    int base = 0xdeadbeef;
    int flag = 0;
@@ -786,6 +787,9 @@
    *iobase = base;
 
    return 1;			/* success */
+#else
+   return 0;
+#endif   
 }
 
 /* PCI detection function: int fdomain_pci_bios_detect(int* irq, int*


-----Forwarded Message-----
> From: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
> To: bk-commits-head@vger.kernel.org
> Subject: [PATCH] fdomain_cs needs ISA
> Date: Thu, 29 Jul 2004 06:02:05 +0000
> 
> ChangeSet 1.1844, 2004/07/28 23:02:05-07:00, pluto@pld-linux.org
> 
> 	[PATCH] fdomain_cs needs ISA
> 	
> 	drivers/scsi/pcmcia/fdomain_cs.ko needs unknown symbol isa_memcpy_fromio
> 	drivers/scsi/pcmcia/fdomain_cs.ko needs unknown symbol isa_readb
> 	
> 	iirc the isa bus isn't available on ppc.
> 	
> 	Signed-off-by: Andrew Morton <akpm@osdl.org>
> 	Signed-off-by: Linus Torvalds <torvalds@osdl.org>
> 
> 
> 
>  Kconfig |    2 +-
>  1 files changed, 1 insertion(+), 1 deletion(-)
> 
> 
> diff -Nru a/drivers/scsi/pcmcia/Kconfig b/drivers/scsi/pcmcia/Kconfig
> --- a/drivers/scsi/pcmcia/Kconfig	2004-07-29 00:17:32 -07:00
> +++ b/drivers/scsi/pcmcia/Kconfig	2004-07-29 00:17:32 -07:00
> @@ -17,7 +17,7 @@
>  
>  config PCMCIA_FDOMAIN
>  	tristate "Future Domain PCMCIA support"
> -	depends on m
> +	depends on m && ISA
>  	help
>  	  Say Y here if you intend to attach this type of PCMCIA SCSI host
>  	  adapter to your computer.
> -
> To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-07-29 16:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-29 15:19 Incorrect patch merged (Fwd: [PATCH] fdomain_cs needs ISA]) Alan Cox

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