Subject: Please apply kern/5673 before its first anniversary (and before 1.4)
To: None <current-users@netbsd.org>
From: Martin Husemann <martin@rumolt.teuto.de>
List: current-users
Date: 03/28/1999 11:41:30
This is a multi-part message in MIME format.

------=_NextPart_000_0011_01BE790F.EBEB76A0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I asked on port-i386 about a problem with an ethernet card clone. There is
already an open pr about it with a patch provided:

	>Number:	 5673
	>Category:	 kern
	>Synopsis:	 wd8003 clones with 16bit support won't work


Could someone with commit access please commit the patch provided (one line
added) in that PR?

I don't know details about the we driver chipsets, but in case that patch
breaks on some supported card, here is a version safe in all cases, I think.
At least this version doesn't change anything if "flags 4" is not specified
in the config file.


Martin


------=_NextPart_000_0011_01BE790F.EBEB76A0
Content-Type: application/octet-stream;
	name="we.patch"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="we.patch"

KioqIC91c3Ivc3JjL3N5cy9kZXYvaXNhL2lmX3dlLmMJV2VkIE9jdCAyOCAxMzoxMjozMSAxOTk4
Ci0tLSBpZl93ZS5jCVN1biBNYXIgMjggMTA6NDk6NDcgMTk5OQoqKioqKioqKioqKioqKioKKioq
IDM0NCwzNTcgKioqKgogIAlzdHJ1Y3QgaXNhX2F0dGFjaF9hcmdzICppYSA9IGF1eDsKICAJYnVz
X3NwYWNlX3RhZ190IG5pY3QsIGFzaWN0LCBtZW10OwogIAlidXNfc3BhY2VfaGFuZGxlX3Qgbmlj
aCwgYXNpY2gsIG1lbWg7CiAgCWNvbnN0IGNoYXIgKnR5cGVzdHI7CiAgCXVfaW50OF90IHg7CiEg
CWludCBpOwogIAogIAlwcmludGYoIlxuIik7CiAgCiAgCW5pY3QgPSBhc2ljdCA9IGlhLT5pYV9p
b3Q7CiAgCW1lbXQgPSBpYS0+aWFfbWVtdDsKICAKICAJLyogTWFwIHRoZSBkZXZpY2UuICovCiAg
CWlmIChidXNfc3BhY2VfbWFwKGFzaWN0LCBpYS0+aWFfaW9iYXN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