]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ethernet: 3c509: Fix AUI transceiver type selection
authorMaciej W. Rozycki <macro@orcam.me.uk>
Wed, 20 May 2026 11:18:53 +0000 (12:18 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 May 2026 15:28:56 +0000 (08:28 -0700)
commit029a6b3a14bf02e6f59ce6ecd10f9d003334c612
tree7961a9b5526e4dfa5938dcc88accdf4c4d376cb6
parent28db0338db61ec75d146192463907351907a0dbc
ethernet: 3c509: Fix AUI transceiver type selection

The transceiver type is held in bits 15:14 of the Address Configuration
Register, with the values of 0b00, 0b01, and 0b11 denoting TP, AUI, and
BNC types respectively.  Therefore switching from BNC to AUI requires
bits to be cleared before setting bit 14 or the setting won't change.

NB this has always been wrong ever since this code was added in 2.5.42.

Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Link: https://patch.msgid.link/alpine.DEB.2.21.2605201205160.1450@angie.orcam.me.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/3com/3c509.c