Received: by mail.netbsd.org (Postfix, from userid 605) id 2BD5684D88; Tue, 28 Jan 2020 11:04:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id A558A84D85 for ; Tue, 28 Jan 2020 11:04:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id tbOUKENUr3Th for ; Tue, 28 Jan 2020 11:04:14 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 3FFDA84CDF for ; Tue, 28 Jan 2020 11:04:14 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 335ACFBF4; Tue, 28 Jan 2020 11:04:14 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Tue, 28 Jan 2020 11:04:14 +0000 From: "Martin Husemann" Subject: CVS commit: [netbsd-9] src/sys/dev/mii To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200128110414.335ACFBF4@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Martin Husemann" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: martin Date: Tue Jan 28 11:04:14 UTC 2020 Modified Files: src/sys/dev/mii [netbsd-9]: makphy.c makphyreg.h Log Message: Pull up the following, requested by msaitoh in ticket #663: sys/dev/mii/makphy.c 1.61, 1.63-1.64 via patch sys/dev/mii/makphyreg.h 1.10 - Remove ESSR_FIBER_LINK bit check in makphyattach(). This bit is valid only when the link is up, so it's not good to check in the attach function. - There is an environment that both copper and fiber bits are set in EXTSR but it support copper only. To resolve this problem, check the ESSR register's HWCFG_MODE bit and drop unsupported bits. - If the chip is in Fiber/Copper auto select mode, check which media is selected. Currently, the code supports 88E1011, 88E1111 and 88E1112 only. - Fix comment. KNF. To generate a diff of this commit: cvs rdiff -u -r1.60 -r1.60.2.1 src/sys/dev/mii/makphy.c cvs rdiff -u -r1.9 -r1.9.6.1 src/sys/dev/mii/makphyreg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.