lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20070510.043612.112287450.davem@davemloft.net>
Date:	Thu, 10 May 2007 04:36:12 -0700 (PDT)
From:	David Miller <davem@...emloft.net>
To:	mb@...sch.de
Cc:	flamingice@...rmilk.net, jeff@...zik.org, linville@...driver.com,
	netdev@...r.kernel.org, linux-wireless@...r.kernel.org
Subject: Re: Please pull 'upstream-rtl8187' branch of wireless-2.6

From: Michael Buesch <mb@...sch.de>
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.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ