git: 81f86c9a9417 - main - smsc: Allow 10BASE-T1L/-T1S media

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Sat, 24 Oct 2026 18:54:39 UTC
The branch main has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=81f86c9a9417d7ad7445d46739e19a26ab916e6b

commit 81f86c9a9417d7ad7445d46739e19a26ab916e6b
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2026-10-14 17:12:34 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2026-10-24 18:54:11 +0000

    smsc: Allow 10BASE-T1L/-T1S media
    
    These are Single-Pair Ethernet types (SPE) from 802.3cg. smsc sets the
    link flag only if mii_media_active is one of a known set of media types.
    
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D60745
---
 sys/dev/usb/net/if_smsc.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/dev/usb/net/if_smsc.c b/sys/dev/usb/net/if_smsc.c
index f1e1c0d58961..4ab853a48466 100644
--- a/sys/dev/usb/net/if_smsc.c
+++ b/sys/dev/usb/net/if_smsc.c
@@ -554,6 +554,8 @@ smsc_miibus_statchg(device_t dev)
 	    (IFM_ACTIVE | IFM_AVALID)) {
 		switch (IFM_SUBTYPE(mii->mii_media_active)) {
 			case IFM_10_T:
+			case IFM_10_T1L:
+			case IFM_10_T1S:
 			case IFM_100_TX:
 				sc->sc_flags |= SMSC_FLAG_LINK;
 				break;