Re: Linux 2.4.19-rc1-ac5

Kasper Dupont (kasperd@daimi.au.dk)
Mon, 29 Jul 2002 15:58:27 +0200


Alan Cox wrote:
>
> On Mon, 2002-07-29 at 00:06, Kasper Dupont wrote:
> roc;
> > #ifdef CONFIG_IDEDMA_AUTO
> > if (!noautodma)
> > hwif->autodma = 1;
> > #endif /* CONFIG_IDEDMA_AUTO */
> > }
> > #endif /* CONFIG_BLK_DEV_IDEDMA */
> >
> > CONFIG_IDEDMA_AUTO will always be turned off by
> > make *config, but if I enable this option by
> > changing .config with a texteditor DMA actually
> > works.
> >
>
> I'll take a look. That looks like an escaped piece of history

Hmm, I don't see where the historic part of this is.
It looks like it is a new option, but there is just
no way to enable it. Before the change the code would
work as if the option was enabled.

FYI I'm currently using this workaround:

diff -Nur linux.old/drivers/ide/alim15x3.c linux.new/drivers/ide/alim15x3.c
--- linux.old/drivers/ide/alim15x3.c Mon Jul 29 02:56:13 2002
+++ linux.new/drivers/ide/alim15x3.c Mon Jul 29 02:57:07 2002
@@ -34,6 +34,9 @@
#include <linux/stat.h>
#include <linux/proc_fs.h>

+/* For some reason this is needed and cannot be enabled in .config */
+#define CONFIG_IDEDMA_AUTO
+
static int ali_get_info(char *buffer, char **addr, off_t offset, int count);
extern int (*ali_display_info)(char *, char **, off_t, int); /* ide-proc.c */
static struct pci_dev *bmide_dev;

-- 
Kasper Dupont -- der bruger for meget tid på usenet.
For sending spam use mailto:razrep@daimi.au.dk
or mailto:mcxumhvenwblvtl@skrammel.yaboo.dk
-
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/