Re: 2.4.22-pre3 : SoundBlaster IDE interface missing

Ben Castricum (lk@bencastricum.nl)
Sat, 12 Jul 2003 18:57:49 +0200


> On Sul, 2003-07-06 at 17:56, Ben Castricum wrote:
> > I have one of those ancients ISA-PNP SoundBlaster cards with an
additional
> > IDE interface on it. It all worked perfectly up till 2.4.22-pre2 but
with
> > pre3 the IDE interface is no longer detected.
>
> Oops. I have redone the initialization for the ISAPnP IDE devices so its
> quite possible I got this bit wrong. I'll take a look at it
> today/tomorrow see why its vanished.

I took a look at it myself as well and it seems that the code was just
removed. This patch restores a couple of line from pre2 and fixes the
problem for me. It's diffed againts the current bk-2.4 tree.

Hope this helps,
Ben

diff -u linux/drivers/ide/ide-pnp.c linux-fix/drivers/ide/ide-pnp.c
--- linux/drivers/ide/ide-pnp.c 2003-07-12 18:03:05.000000000 +0200
+++ linux-fix/drivers/ide/ide-pnp.c 2003-07-12 18:26:13.000000000 +0200
@@ -99,7 +99,7 @@
* Probe for ISA PnP IDE interfaces.
*/

-static void pnpide_init(int enable)
+void __init pnpide_init(int enable)
{
struct pci_dev *dev = NULL;
struct pnp_dev_t *dev_type;
diff -u linux/drivers/ide/ide.c linux-fix/drivers/ide/ide.c
--- linux/drivers/ide/ide.c 2003-07-12 18:03:01.000000000 +0200
+++ linux-fix/drivers/ide/ide.c 2003-07-12 18:25:11.000000000 +0200
@@ -2318,6 +2318,12 @@
buddha_init();
}
#endif /* CONFIG_BLK_DEV_BUDDHA */
+#if defined(CONFIG_BLK_DEV_ISAPNP) && defined(CONFIG_ISAPNP)
+ {
+ extern void pnpide_init(int enable);
+ pnpide_init(1);
+ }
+#endif /* CONFIG_BLK_DEV_ISAPNP */
}

void __init ide_init_builtin_subdrivers (void)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/