Thread (2 messages) 2 messages, 2 authors, 2007-05-10

Re: Please pull 'upstream-rtl8187' branch of wireless-2.6

From: David Miller <davem@davemloft.net>
Date: 2007-05-10 11:36:09
Also in: linux-wireless

From: Michael Buesch <redacted>
Date: Thu, 10 May 2007 13:23:40 +0200
Nah, Jeff. Please don't go this path.
If we have to remove all magic numbers from drivers, we'd have to either
*) Drop reverse engineered drivers like bcm43xx completely.
*) Clutter them with completely useless defines such as
   #define RADIO_UNKNOWN97A_REG	0x97A

Better leave such magic registers/values in the code as-is
and probably convert them to good defines later, if reverse engineering
found out the meaning. That's what I'm doing for bcm43xx and it makes
a _whole_ lot more sense.
One good point I'd like to bring up is that someone reading this code
might not know any of this.

If you use a macro name that says it's a register you don't know the
meaning of, that's information and useful information at that.

This isn't for you, it's for other people reading the driver.

If you are suddenly unable to do any work on the driver at all, the
more information you leave around the better even if it seems trite
and useless to you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help