From nobody Mon Jun 29 06:34:29 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gpc2G4yFHz6k5Bq for ; Mon, 29 Jun 2026 06:34:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gpc2G1Wtvz4Gcv for ; Mon, 29 Jun 2026 06:34:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782714870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FxxnaXKUlt/d8sw8ujXzetoqYMYjnlIojp/dTYAt/1w=; b=lsGWk5tL6gz1LTMh8RJKJKCZmXQpyK0gi+tTL1E3JWfE6Ww9LjuXYLH6HDDpYcHZ0ogvyr AbTGif/Var37SXd16misYg4Xc2+DIqAoVfoxD57xStyRUT1VhJ0nqrLD3EfuK7EnrNI2ou olB9vmZUEnWY2teUndo5kVflwwCNdanhsBJ0nrn/4WYxCjQIAAyGwvInqahwtN+knd8l+0 oFVvGjA/Nr7B9TDKPzlh7XgQZ6gyuuzwRerDNPZGPNdSUcGnw5E+DsT0EgN8YiJLD8iv8O Y/+xAoKkdlMIGJ6j42mK2EDuLNqztz8DG6zvnphMsfR/t4uA5nXLwW0I9/xu+Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782714870; a=rsa-sha256; cv=none; b=KxzSJtAU7CzYtE8FJ7kUQOg+Ob3MK0BLI56Hze4NRX3Pn3FHEtXkribl+4m+0+ZLGBomHY 8kx6JB47nqcKJIaowVIPADVsW5sXo6pyTpEMgaHZMsEiReCdNrWQoWrEwvPPzN6GEQhihX 04EqxUQJPanoVqmBHZn6rUvMde+bTeLWN+JWz0EUpzsj1G9syHJtZ+b8gftabr/5h0tr04 Yqn5nmhleVXFpX4jZwkD5PexqSvDEqZAe7+t24ZsWcjgMgImnzA7JkfnWW0QbGemczwidA oftPPHy7lbvdG62qnfw1C0ZaVoIqNJ+W+JbET607coDBRd0Wa9aWNcWV2c2Inw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782714870; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FxxnaXKUlt/d8sw8ujXzetoqYMYjnlIojp/dTYAt/1w=; b=wYHKWWFGJqReyiDPCx36JzelEgwMk0+iPYWtX3sg6igk7nFsy/+AU9JFnC20OxuafBs7K4 Okqjx1kt8Kn3mk1Z/OkmyEWHKtWNZsMRceQYpHVmCJh5fiOhsiUz35id1PUCNcIoHCSowX zIp13gBoIi0C88ox39tj/DFNo02RpV96qV0DgP4qxGQ+PEMdDZme758qGCs46No84RIrYL cksl/HM9mCQdlQ89Z1VjUdnfTki3uX+HXEnl1MPnzQxWhL7u5UnempkiRnZs+zbuwJrVbt +ExDq7F59LXOEIYoO2e0+//tju+vS+jSlVNvm6QaW0xTC00GsScY/agtWPPnEA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gpc2F6fy7zmRj for ; Mon, 29 Jun 2026 06:34:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 45ab5 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 29 Jun 2026 06:34:29 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Bjoern A. Zeeb Subject: git: e28a03447456 - stable/15 - mt76: mt7921: depend on lindebugfs and turn debugfs support on List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: e28a03447456c3eb528a171f70341952e1f4bf33 Auto-Submitted: auto-generated Date: Mon, 29 Jun 2026 06:34:29 +0000 Message-Id: <6a4211f5.45ab5.3729620d@gitrepo.freebsd.org> The branch stable/15 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=e28a03447456c3eb528a171f70341952e1f4bf33 commit e28a03447456c3eb528a171f70341952e1f4bf33 Author: Bjoern A. Zeeb AuthorDate: 2026-06-10 11:24:04 +0000 Commit: Bjoern A. Zeeb CommitDate: 2026-06-29 03:53:45 +0000 mt76: mt7921: depend on lindebugfs and turn debugfs support on Add the missing MODULE_DEPEND() calls for lindebugfs. It is unfortunate that they are shared code between various bus implementations. Ideally we would leave the MODULE_DEPEND() calls in the debugfs.c file instead of adding extra #ifdef guards to the bus attachment files. Turn debugfs support on for mt76(core) and the mt7921 module for now. Sponsonred by: The FreeBSD Foundation (cherry picked from commit 134e90e01da181a6048f0ca3368e466818def1b3) --- sys/contrib/dev/mediatek/mt76/debugfs.c | 3 +++ sys/contrib/dev/mediatek/mt76/mt7921/pci.c | 3 +++ sys/contrib/dev/mediatek/mt76/mt7921/usb.c | 3 +++ sys/modules/mt76/Makefile.inc | 2 +- sys/modules/mt76/mt7921/Makefile | 2 +- 5 files changed, 11 insertions(+), 2 deletions(-) diff --git a/sys/contrib/dev/mediatek/mt76/debugfs.c b/sys/contrib/dev/mediatek/mt76/debugfs.c index a5ac6ca86735..344ccdc98293 100644 --- a/sys/contrib/dev/mediatek/mt76/debugfs.c +++ b/sys/contrib/dev/mediatek/mt76/debugfs.c @@ -124,3 +124,6 @@ mt76_register_debugfs_fops(struct mt76_phy *phy, return dir; } EXPORT_SYMBOL_GPL(mt76_register_debugfs_fops); +#if defined(__FreeBSD__) +MODULE_DEPEND(mt76_core, lindebugfs, 1, 1, 1); +#endif diff --git a/sys/contrib/dev/mediatek/mt76/mt7921/pci.c b/sys/contrib/dev/mediatek/mt76/mt7921/pci.c index b70335aba6bf..901a10986e58 100644 --- a/sys/contrib/dev/mediatek/mt76/mt7921/pci.c +++ b/sys/contrib/dev/mediatek/mt76/mt7921/pci.c @@ -609,4 +609,7 @@ MODULE_VERSION(mt7921_pci, 1); MODULE_DEPEND(mt7921_pci, mt76_core, 1, 1, 1); MODULE_DEPEND(mt7921_pci, linuxkpi, 1, 1, 1); MODULE_DEPEND(mt7921_pci, linuxkpi_wlan, 1, 1, 1); +#if defined(CONFIG_MT7921_DEBUGFS) +MODULE_DEPEND(mt7921_pci, lindebugfs, 1, 1, 1); +#endif #endif diff --git a/sys/contrib/dev/mediatek/mt76/mt7921/usb.c b/sys/contrib/dev/mediatek/mt76/mt7921/usb.c index 64881ef7cbf4..a02dd21ef557 100644 --- a/sys/contrib/dev/mediatek/mt76/mt7921/usb.c +++ b/sys/contrib/dev/mediatek/mt76/mt7921/usb.c @@ -352,4 +352,7 @@ MODULE_DEPEND(mt7921_usb, mt76_core, 1, 1, 1); MODULE_DEPEND(mt7921_usb, linuxkpi, 1, 1, 1); MODULE_DEPEND(mt7921_usb, linuxkpi_wlan, 1, 1, 1); MODULE_DEPEND(mt7921_usb, linuxkpi_usb, 1, 1, 1); +#if defined(CONFIG_MT7921_DEBUGFS) +MODULE_DEPEND(mt7921_usb, lindebugfs, 1, 1, 1); +#endif #endif diff --git a/sys/modules/mt76/Makefile.inc b/sys/modules/mt76/Makefile.inc index 5aa19fe183af..72fcacab15cd 100644 --- a/sys/modules/mt76/Makefile.inc +++ b/sys/modules/mt76/Makefile.inc @@ -14,7 +14,7 @@ MT76_USB= 0 # General options for common code so drivers can check. MT76_ACPI?= 0 MT76_CONFIG_PM?= 0 -MT76_DEBUGFS?= 0 +MT76_DEBUGFS?= 1 MT76_SOC_WED?= 0 # Other diff --git a/sys/modules/mt76/mt7921/Makefile b/sys/modules/mt76/mt7921/Makefile index b6dbe88204a3..2cf55ac506c6 100644 --- a/sys/modules/mt76/mt7921/Makefile +++ b/sys/modules/mt76/mt7921/Makefile @@ -8,7 +8,7 @@ MT7921_PCI= 1 MT7921_SDIO= 0 MT7921_USB= 0 -MT7921_DEBUGFS= 0 +MT7921_DEBUGFS= 1 # Common stuff. SRCS+= init.c main.c mac.c mcu.c