Skip to contentSkip to conversation

2.4.2-ac3 and wavelan driver

DISCUSSION Jean Tourrilhes 1 participant 1 message Feb 24, 2001

lore
Share & tools
lore
#0 lore raw

Hi Alan (and the others)

A few notes related to you *-ac* patches, the IrDA stack and
the Wavelan driver.

First, IrDA :

net/irda/irlap.c line 57

Quoted 10 lines
net/irda/irlap.c +1 -0
@@ -51,6 +51,7 @@
 hashbin_t *irlap = NULL;
 int sysctl_slot_timeout = SLOT_TIMEOUT * 1000 / HZ;
 
+extern void irlap_queue_xmit(struct irlap_cb *self, struct sk_buff *skb);
 static void __irlap_close(struct irlap_cb *self);
 
 static char *lap_reasons[] = {

The above patch is unnecessary. The definition of
irlap_queue_xmit() has been added in irlap_frame.h as part of 2.4.2 (I've just checked). So, you can drop this snipset.
By the way, I'm updating the IrDA patches in the pipeline (USB
driver and co) and will send that to Dag soon.

net/irda/irnet/Config.in line 4

Quoted 8 lines
net/irda/irnet/Config.in +4 -1
@@ -1 +1,4 @@
-dep_tristate '  IrNET protocol' CONFIG_IRNET $CONFIG_IRDA
+if [ "$CONFIG_NETDEVICES" != "n" ]; then
+   dep_tristate '  IrNET protocol' CONFIG_IRNET $CONFIG_IRDA $CONFIG_PPP
+fi
+

This one is good. As you have it, we won't resend it to Linus. By the way, thanks to whoever spent time to correct my
spelling mistakes...

Quoted 2 lines

2.4.2-ac3
o Remove dead wavelan prototype (Jeff Garzik)

I confirm again that I'm totally opposed to this patch of the
wavelan driver you have in your tree (see below).
Replacing a perfectly valid inline function with a ugly define
it totally backward. If you look closely, the initial code was correct and clean. I don't know anyone with taste who could advocate such a patch without remorse.
As we discussed earlier, this patch is only necessary because
gcc 2.96 miscompile the complex definition of udelay(). If gcc 2.96 miscompile the kernel, people should fix it or use a compiler that works properly, not uglify my driver ;-)

On the other hand, thanks infinitely to Jeff for having
updated the wavelan_cs driver (I'm still using Pcmcia outside the kernel).

Quoted 14 lines
drivers/net/wavelan.c +0 -8
@@ -405,16 +405,13 @@
  * Wait for the frequency EEPROM to complete a command.
  * I hope this one will be optimally inlined.
  */
-static inline void fee_wait(unsigned long ioaddr,	/* I/O port of the card */
-			    int delay,	/* Base delay to wait for */
-			    int number)
-{				/* Number of time to wait */
-	int count = 0;		/* Wait only a limited time */
-
-	while ((count++ < number) &&
-	       (mmc_in(ioaddr, mmroff(0, mmr_fee_status)) &

drivers/net/wavelan.c line 415

Quoted 10 lines
drivers/net/wavelan.c +7 -2
-		MMR_FEE_STATUS_BUSY)) udelay(delay);
-}
+
+#define fee_wait(ioaddr,delay,number) do {				\
+		int count = 0;		/* Wait only a limited time */	\
+		while ((count++ < number) &&				\
+		       (mmc_in(ioaddr, mmroff(0, mmr_fee_status)) &	\
+			MMR_FEE_STATUS_BUSY)) udelay(delay); 		\
+	} while (0)
 

That's it, have a good week end...

Jean