Incorrect patch merged (Fwd: [PATCH] fdomain_cs needs ISA])

From: Alan Cox
Date: Thu Jul 29 2004 - 11:32:11 EST


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@xxxxxxxxxxxxxxx>
> To: bk-commits-head@xxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxx
>
> [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@xxxxxxxx>
> Signed-off-by: Linus Torvalds <torvalds@xxxxxxxx>
>
>
>
> 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@xxxxxxxxxxxxxxx
> More majordomo info at http://vger.kernel.org/majordomo-info.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/