Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 17 Apr 2001 11:59:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 17 Apr 2001 11:59:03 -0400 Received: from tele-post-20.mail.demon.net ([194.217.242.20]:39182 "EHLO tele-post-20.mail.demon.net") by vger.kernel.org with ESMTP id ; Tue, 17 Apr 2001 11:58:54 -0400 Date: Tue, 17 Apr 2001 16:58:49 +0100 (BST) From: Steve Hill To: linux-kernel@vger.kernel.org, becker@scyld.com cc: maurizio.quadrio@polimi.it, harry@navaho.co.uk Subject: Fix for Donald Becker's DP83815 network driver (v1.07) Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="665600-674573692-987523128=:4446" Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --665600-674573692-987523128=:4446 Content-Type: TEXT/PLAIN; charset=US-ASCII The attached patch fixes the following problems with the DP83815 driver (natsemi.c): 1. When compiled into the kernel, the cards would be registered multiple times. 2. Autonegotiation code was buggy, causing the card to stop working after autonegotiation. -- - Steve Hill System Administrator Email: steve@navaho.co.uk Navaho Technologies Ltd. Tel: +44-870-7034015 ... Alcohol and calculus don't mix - Don't drink and derive! ... --665600-674573692-987523128=:4446 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="linux-2.2.18-natsemi-fix.patch" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename="linux-2.2.18-natsemi-fix.patch" ZGlmZiAtdXJOIGxpbnV4Lm5hdHNlbWkvZHJpdmVycy9uZXQvbmF0c2VtaS5j IGxpbnV4L2RyaXZlcnMvbmV0L25hdHNlbWkuYw0KLS0tIGxpbnV4Lm5hdHNl bWkvZHJpdmVycy9uZXQvbmF0c2VtaS5jCVR1ZSBBcHIgMTcgMTM6MTI6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Jc3RhdGljIGludCBkb25lID0gMDsN CisNCisJaWYgKGRvbmUpIHJldHVybiAtRU5PREVWOw0KIAlpZiAocGNpX2Ry dl9yZWdpc3RlcigmbmF0c2VtaV9kcnZfaWQsIGRldikgPCAwKQ0KIAkJcmV0 dXJuIC1FTk9ERVY7DQorCWRvbmUgPSAxOw0KIAlwcmludGsoS0VSTl9JTkZP ICIlcyIgS0VSTl9JTkZPICIlcyIsIHZlcnNpb24xLCB2ZXJzaW9uMik7DQog CXJldHVybiAwOw0KIH0NCkBAIC02MzcsOCArNjUxLDggQEANCiAJCQlucC0+ cnhfY29uZmlnICY9IH4weDEwMDAwMDAwOw0KIAkJCW5wLT50eF9jb25maWcg Jj0gfjB4QzAwMDAwMDA7DQogCQl9DQotCQl3cml0ZXcobnAtPnR4X2NvbmZp ZywgaW9hZGRyICsgVHhDb25maWcpOw0KLQkJd3JpdGV3KG5wLT5yeF9jb25m aWcsIGlvYWRkciArIFJ4Q29uZmlnKTsNCisJCXdyaXRlbChucC0+dHhfY29u ZmlnLCBpb2FkZHIgKyBUeENvbmZpZyk7DQorCQl3cml0ZWwobnAtPnJ4X2Nv bmZpZywgaW9hZGRyICsgUnhDb25maWcpOw0KIAl9DQogfQ0KIA0K --665600-674573692-987523128=:4446-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/