Jean Tourrilhes <[EMAIL PROTECTED]> writes:
> Kernel 2.4.10 works for me (irsock and irnet). I don't have
> much patches pending, but I plan to send what I have to Linus next
> week anyway, because of the critical bug in the USB driver.
> If you have other thing you want me to include, that's your
> chance.
well, I still need the attached patch to get smc-ircc working on my
Compaq Armada M300. I don't know if a parameter is the best way to
support controllers on non-default addresses, but at least it won't
break anything else.
Bj�rn
--- linux/drivers/net/irda/smc-ircc.c~ Fri Aug 17 14:40:54 2001
+++ linux/drivers/net/irda/smc-ircc.c Fri Aug 17 14:44:47 2001
@@ -158,6 +158,7 @@
static int ircc_dma=255;
static int ircc_fir=0;
static int ircc_sir=0;
+static int ircc_cfg=0;
static unsigned short dev_count=0;
@@ -393,6 +394,13 @@
return -ENODEV;
}
+ /* try user provided configuration register base address */
+ if (ircc_cfg>0) {
+ MESSAGE(" Overriding configuration address 0x%04x\n", ircc_cfg);
+ if (!smc_superio_fdc(ircc_cfg))
+ ret=0;
+ }
+
/* Trys to open for all the SMC chipsets we know about */
IRDA_DEBUG(0, __FUNCTION__
@@ -1227,5 +1235,7 @@
MODULE_PARM_DESC(ircc_fir, "FIR Base Address");
MODULE_PARM(ircc_sir, "1-4i");
MODULE_PARM_DESC(ircc_sir, "SIR Base Address");
+MODULE_PARM(ircc_cfg, "1-4i");
+MODULE_PARM_DESC(ircc_cfg, "Configuration register base address");
#endif /* MODULE */
_______________________________________________
Linux-IrDA mailing list - [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda