Skip to contentSkip to conversation

Linux 2.4.20-pre6

DISCUSSION Jean Tourrilhes 2 participants 3 messages Sep 10, 2002 – Sep 11, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines · Adrian Bunk
Quoted 5 lines

...
Alan Cox <[email protected]>:
...
o more irda __FUNCTION__ stuff
...

This adds the use of TIOCM_MODEM_BITS to irtty.c but not the corresponding addition of it to asm-i386/termios.h:

I would personally would have veto'ed that change, because it
will work only on i386 (and PA-Risc), whereas the IrDA stack is routinely used on ARM and PPC and also work on Alpha.
That's the kind of shortsighted quick hack that make life
painfull for everybody, because we now have to fix a dozen platforms. Last time I heard, 2.4.X was supposed to be the "stable" kernel.
I would personally perfer the header to define a "default"
value, and only the broken architecture would need to override it (#undef + #define).
Actually, the previous solution of having the cruft hidden in
the irtty driver with #ifdef and not poluting the generic kernel was also pretty good IMHO, and I don't understand why the original author didn't go along those lines (sure he didn't told me why).

Of course, I'm opiniated...

So, as people like quick'n'dirty hacks, just make sure that
TIOCM_MODEM_BITS is also defined in ARM, SH, PPC and Alpha (at least), just to make sure I'm the only one complaining.

Thanks in advance...

Jean

#1 lore raw
Quoted 6 lines · Jean Tourrilhes
Quoted 2 lines

This adds the use of TIOCM_MODEM_BITS to irtty.c but not the corresponding addition of it to asm-i386/termios.h:

I would personally would have veto'ed that change, because it
will work only on i386 (and PA-Risc), whereas the IrDA stack is routinely used on ARM and PPC and also work on Alpha.

The change got it by accident

Quoted 3 lines

I would personally perfer the header to define a "default"
value, and only the broken architecture would need to override it (#undef + #define).

absolutely

Quoted 3 lines

So, as people like quick'n'dirty hacks, just make sure that
TIOCM_MODEM_BITS is also defined in ARM, SH, PPC and Alpha (at least), just to make sure I'm the only one complaining.

They are in my tree.

#2 lore raw
Quoted 6 lines · Alan Cox
Quoted 4 lines

So, as people like quick'n'dirty hacks, just make sure that
TIOCM_MODEM_BITS is also defined in ARM, SH, PPC and Alpha (at least), just to make sure I'm the only one complaining.

They are in my tree.

Perfect, if all architectures are covered, I'm perfectly fine
with it. Sorry for having ranted too fast ;-)

Jean