Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Oct 2024 09:16:44 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 9bb9bfc76941 - stable/14 - rtw89: add missing bsddriver.name assignments for two chipsets
Message-ID:  <202410170916.49H9GiVs087560@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=9bb9bfc76941e5a72560e57499cbad6d856fc75f

commit 9bb9bfc76941e5a72560e57499cbad6d856fc75f
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2024-10-10 23:07:55 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2024-10-16 21:46:27 +0000

    rtw89: add missing bsddriver.name assignments for two chipsets
    
    On FreeBSDs we locally set bsddriver.name in struct pci_driver to have
    the same name for all chipsets.  This helps with, e.g., device
    enumeration.  For two chipsets the manual entry was missing.
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit ce15215befa1022d9a20ec15bdb0739dbe55f10f)
---
 sys/contrib/dev/rtw89/rtw8851be.c | 3 +++
 sys/contrib/dev/rtw89/rtw8852be.c | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/sys/contrib/dev/rtw89/rtw8851be.c b/sys/contrib/dev/rtw89/rtw8851be.c
index 0f7711c50bd1..76216b790450 100644
--- a/sys/contrib/dev/rtw89/rtw8851be.c
+++ b/sys/contrib/dev/rtw89/rtw8851be.c
@@ -78,6 +78,9 @@ static struct pci_driver rtw89_8851be_driver = {
 	.probe		= rtw89_pci_probe,
 	.remove		= rtw89_pci_remove,
 	.driver.pm	= &rtw89_pm_ops,
+#if defined(__FreeBSD__)
+	.bsddriver.name	= KBUILD_MODNAME,
+#endif
 };
 module_pci_driver(rtw89_8851be_driver);
 
diff --git a/sys/contrib/dev/rtw89/rtw8852be.c b/sys/contrib/dev/rtw89/rtw8852be.c
index ecf39d2d9f81..be96ff56d699 100644
--- a/sys/contrib/dev/rtw89/rtw8852be.c
+++ b/sys/contrib/dev/rtw89/rtw8852be.c
@@ -82,6 +82,9 @@ static struct pci_driver rtw89_8852be_driver = {
 	.probe		= rtw89_pci_probe,
 	.remove		= rtw89_pci_remove,
 	.driver.pm	= &rtw89_pm_ops,
+#if defined(__FreeBSD__)
+	.bsddriver.name	= KBUILD_MODNAME,
+#endif
 };
 module_pci_driver(rtw89_8852be_driver);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410170916.49H9GiVs087560>