You are not logged in.
My new pc came with windows and WiFI was working properly there.
I removed secure boot from BIOS and disinstalled Windows for Arch Linux
As you can see on lspci, it doesn't seem to recognize the card and loads another internal one: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader
I've tried to:
- googling a solution:
https://bbs.archlinux.org/viewtopic.php?id=286981
- re-install everything
- modprobe mt7921e
- power-off by holding 40sec and 60sec to hard reset it many times
Since the laptop itself does not support the wired connection of its adapter, I use an external Wi-Fi adapter. I have updated all packages and kernels.
Looking forward to your thoughts! Thanks!
➜ ~ neofetch
-` lorenzo@lorenzo-arch
.o+` --------------------
`ooo/ OS: Arch Linux x86_64
`+oooo: Host: Redmi Book Pro 15 2023
`+oooooo: Kernel: 6.5.9-arch2-1
-+oooooo+: Uptime: 1 min
`/:-:++oooo+: Packages: 705 (pacman)
`/++++/+++++++: Shell: zsh 5.9
`/++++++++++++++: Resolution: 3840x2160
`/+++ooooooooooooo/` DE: Plasma 5.27.9
./ooosssso++osssssso+` WM: kwin
.oossssso-````/ossssss+` Theme: [Plasma], Breeze [GTK2/3]
-osssssso. :ssssssso. Icons: Papirus [Plasma], Papirus [GTK2/3]
:osssssss/ osssso+++. Terminal: konsole
/ossssssss/ +ssssooo/- CPU: AMD Ryzen 7 7840HS w/ Radeon 780M Graphics (16) @ 5.137GHz
`/ossssso+/:- -:/+osssso+- GPU: AMD ATI 04:00.0 Phoenix1
`+sso+:-` `.-/+oso: Memory: 4188MiB / 15158MiB
`++:. `-/+/
.` `/ ➜ ~ sudo journalctl -b > journal.txt
➜ ~ cat journal.txt | curl -F 'f:1=<-' ix.io
http://ix.io/4KTv➜ ~ lspci -k
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14e8
Subsystem: Xiaomi Device 2209
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 14e9
Subsystem: Xiaomi Device 2209
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14ee
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
Kernel driver in use: pcieport
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14ee
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
Kernel driver in use: pcieport
00:02.4 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14ee
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1453
Kernel driver in use: pcieport
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14ea
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14eb
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 14eb
Kernel driver in use: pcieport
00:08.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14eb
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 14eb
Kernel driver in use: pcieport
00:08.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 14eb
pcilib: Error reading /sys/bus/pci/devices/0000:00:08.3/label: Operation not permitted
Subsystem: Advanced Micro Devices, Inc. [AMD] Device 14eb
Kernel driver in use: pcieport
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 71)
Subsystem: Xiaomi FCH SMBus Controller
Kernel driver in use: piix4_smbus
Kernel modules: i2c_piix4, sp5100_tco
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
Subsystem: Xiaomi FCH LPC Bridge
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f3
Kernel driver in use: k10temp
Kernel modules: k10temp
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 14f7
01:00.0 Network controller: Device 0b48:7922
Subsystem: Device 0b48:7922
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader (rev 01)
Subsystem: Realtek Semiconductor Co., Ltd. RTS525A PCI Express Card Reader
Kernel driver in use: rtsx_pci
Kernel modules: rtsx_pci
03:00.0 Non-Volatile memory controller: KIOXIA Corporation NVMe SSD Controller BG5 (DRAM-less)
DeviceName: Realtek
Subsystem: KIOXIA Corporation Device 0001
Kernel driver in use: nvme
Kernel modules: nvme
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 (rev c7)
Subsystem: Xiaomi Phoenix1
Kernel driver in use: amdgpu
Kernel modules: amdgpu
04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller
Subsystem: Xiaomi Rembrandt Radeon High Definition Audio Controller
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
04:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 19h (Model 74h) CCP/PSP 3.0 Device
Subsystem: Xiaomi Device 2209
Kernel driver in use: ccp
Kernel modules: ccp
04:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15b9
Subsystem: Xiaomi Device 2209
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
04:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15ba
Subsystem: Xiaomi Device 2209
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
04:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 63)
Subsystem: Xiaomi ACP/ACP3X/ACP6x Audio Coprocessor
Kernel driver in use: snd_pci_ps
Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir, snd_sof_amd_rembrandt
04:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
Subsystem: Xiaomi Family 17h/19h HD Audio Controller
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
04:00.7 Signal processing controller: Advanced Micro Devices, Inc. [AMD] Device 164a
Subsystem: Xiaomi Device 2209
Kernel driver in use: pcie_mp2_amd
Kernel modules: amd_sfh
05:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 14ec
Subsystem: Xiaomi Device 2209
06:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 14ec
Subsystem: Xiaomi Device 2209
06:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15c0
Subsystem: Xiaomi Device 2209
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
06:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Device 15c1
Subsystem: Xiaomi Device 2209
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci➜ ~ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 10a5:9201 FPC FPC Sensor Controller L:0001 FW:021.26.2.040
Bus 001 Device 005: ID 35f5:7922 MediaTek Inc. Wireless_Device
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 2b7e:c687 SunplusIT Inc XiaoMi USB 2.0 Webcam
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub➜ ~ hwinfo | grep Media -A 40
manufacturer = "MediaTek Inc."
product = "Wireless_Device"
serial = "000000000"
bcdDevice = 0100
speed = "480"
usb device: name = 1-3:1.0
path = /devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-3/1-3:1.0
modalias = "usb:v10A5p9201d0240dc00dsc00dp00icFFiscFFipFFin00"
bInterfaceNumber = 0
bInterfaceClass = 255
bInterfaceSubClass = 255
bInterfaceProtocol = 255
if: 1-3:1.0 @ /devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-3
bDeviceClass = 0
bDeviceSubClass = 0
bDeviceProtocol = 0
idVendor = 0x10a5
idProduct = 0x9201
manufacturer = "FPC"
product = "FPC Sensor Controller L:0001 FW:021.26.2.040"
bcdDevice = 0240
speed = "480"
usb device: name = usb6
path = /devices/pci0000:00/0000:00:08.3/0000:06:00.3/usb6
usb device: name = 1-2.2
path = /devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-2/1-2.2
usb device: name = 3-1:1.0
path = /devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb3/3-1/3-1:1.0
modalias = "usb:v2B7EpC687d0016dcEFdsc02dp01ic0Eisc01ip01in00"
bInterfaceNumber = 0
bInterfaceClass = 14
bInterfaceSubClass = 1
bInterfaceProtocol = 1
if: 3-1:1.0 @ /devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb3/3-1
bDeviceClass = 239
bDeviceSubClass = 2
bDeviceProtocol = 1
idVendor = 0x2b7e
idProduct = 0xc687
manufacturer = "SunplusIT Inc"
product = "XiaoMi USB 2.0 Webcam"
--
manufacturer = "MediaTek Inc."
product = "Wireless_Device"
serial = "000000000"
bcdDevice = 0100
speed = "480"
usb device: name = usb7
path = /devices/pci0000:00/0000:00:08.3/0000:06:00.4/usb7
usb device: name = 1-2
path = /devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-2
usb device: name = 1-2.2:1.0
path = /devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-2/1-2.2/1-2.2:1.0
modalias = "usb:v0BDAp8812d0000dc00dsc00dp00icFFiscFFipFFin00"
bInterfaceNumber = 0
bInterfaceClass = 255
bInterfaceSubClass = 255
bInterfaceProtocol = 255
if: 1-2.2:1.0 @ /devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-2/1-2.2
bDeviceClass = 0
bDeviceSubClass = 0
bDeviceProtocol = 0
idVendor = 0x0bda
idProduct = 0x8812
manufacturer = "Realtek"
product = "802.11n NIC"
serial = "123456"
bcdDevice = 0000
speed = "480"
usb device: name = 3-1:1.1
path = /devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb3/3-1/3-1:1.1
modalias = "usb:v2B7EpC687d0016dcEFdsc02dp01ic0Eisc02ip01in01"
bInterfaceNumber = 1
bInterfaceClass = 14
bInterfaceSubClass = 2
bInterfaceProtocol = 1
if: 3-1:1.1 @ /devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb3/3-1
bDeviceClass = 239
bDeviceSubClass = 2
bDeviceProtocol = 1
idVendor = 0x2b7e
idProduct = 0xc687
manufacturer = "SunplusIT Inc"
--
manufacturer = "MediaTek Inc."
product = "Wireless_Device"
serial = "000000000"
bcdDevice = 0100
speed = "480"
removed: /devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb3/3-1/3-1:1.0
removed: /devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb3/3-1/3-1:1.1
removed: /devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-5/1-5:1.2
removed: /devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-5/1-5:1.0
>> usb.3.1: joydev mod
>> usb.3.2: evdev mod
----- exec: "/sbin/modprobe evdev " -----
----- return code: ? -----
>> usb.3.3: input
input: name = input14, path = /devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1/input14
no dev - ignored
input: name = event9, path = /devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1/input13/event9
dev = 13:73
input device: bus = sound, bus_id = card1 driver = (null)
path = /devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1
input: name = input7, path = /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:16/LNXVIDEO:00/input/input7
no dev - ignored
input: name = event15, path = /devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-2/1-2.1/1-2.1:1.1/0003:25A7:FA67.0008/input/input31/event15
dev = 13:79
input device: bus = hid, bus_id = 0003:25A7:FA67.0008 driver = hid-generic
path = /devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-2/1-2.1/1-2.1:1.1/0003:25A7:FA67.0008
input: name = mice, path = /devices/virtual/input/mice
dev = 13:63
input: name = input12, path = /devices/pci0000:00/0000:00:08.1/0000:04:00.1/sound/card0/input12
no dev - ignored
input: name = event7, path = /devices/pci0000:00/0000:00:08.1/0000:04:00.1/sound/card0/input11/event7
dev = 13:71
input device: bus = sound, bus_id = card0 driver = (null)
path = /devices/pci0000:00/0000:00:08.1/0000:04:00.1/sound/card0
input: name = input30, path = /devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-2/1-2.1/1-2.1:1.1/0003:25A7:FA67.0008/input/input30
no dev - ignored
input: name = event13, path = /devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-2/1-2.1/1-2.1:1.1/0003:25A7:FA67.0008/input/input29/event13
dev = 13:77
input device: bus = hid, bus_id = 0003:25A7:FA67.0008 driver = hid-generic
path = /devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-2/1-2.1/1-2.1:1.1/0003:25A7:FA67.0008
input: name = input10, path = /devices/platform/AMDI0010:00/i2c-0/i2c-ELAN2310:00/0018:04F3:3238.0001/input/input10
--
E: ID_SERIAL=MediaTek_Inc._Wireless_Device_000000000
E: ID_SERIAL_SHORT=000000000
E: ID_VENDOR=MediaTek_Inc.
E: ID_VENDOR_ENC=MediaTek\x20Inc.
E: ID_VENDOR_ID=35f5
E: ID_REVISION=0100
E: ID_USB_MODEL=Wireless_Device
E: ID_USB_MODEL_ENC=Wireless_Device
E: ID_USB_MODEL_ID=7922
E: ID_USB_SERIAL=MediaTek_Inc._Wireless_Device_000000000
E: ID_USB_SERIAL_SHORT=000000000
E: ID_USB_VENDOR=MediaTek_Inc.
E: ID_USB_VENDOR_ENC=MediaTek\x20Inc.
E: ID_USB_VENDOR_ID=35f5
E: ID_USB_REVISION=0100
E: ID_USB_INTERFACES=:e00101:
E: ID_PATH_WITH_USB_REVISION=pci-0000:04:00.3-usbv2-0:5
E: ID_PATH=pci-0000:04:00.3-usb-0:5
E: ID_PATH_TAG=pci-0000_04_00_3-usb-0_5
P: /devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-5/1-5:1.0
M: 1-5:1.0
R: 0
U: usb
T: usb_interface
V: btusb
E: DEVPATH=/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-5/1-5:1.0
E: SUBSYSTEM=usb
E: DEVTYPE=usb_interface
E: DRIVER=btusb
E: PRODUCT=35f5/7922/100
E: TYPE=239/2/1
E: INTERFACE=224/1/1
E: MODALIAS=usb:v35F5p7922d0100dcEFdsc02dp01icE0isc01ip01in00
E: USEC_INITIALIZED=2189134
E: ID_USB_CLASS_FROM_DATABASE=Miscellaneous Device
E: ID_USB_PROTOCOL_FROM_DATABASE=Interface Association
E: ID_PATH_WITH_USB_REVISION=pci-0000:04:00.3-usbv2-0:5:1.0
E: ID_PATH=pci-0000:04:00.3-usb-0:5:1.0
E: ID_PATH_TAG=pci-0000_04_00_3-usb-0_5_1_0
P: /devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-5/1-5:1.0/bluetooth/hci0
M: hci0
R: 0
U: bluetooth
T: host
E: DEVPATH=/devices/pci0000:00/0000:00:08.1/0000:04:00.3/usb1/1-5/1-5:1.0/bluetooth/hci0
E: SUBSYSTEM=bluetooth
E: DEVTYPE=host
E: USEC_INITIALIZED=2369694
E: SYSTEMD_ALIAS=/sys/subsystem/bluetooth/devices/hci0
E: SYSTEMD_WANTS=bluetooth.target
E: SYSTEMD_USER_WANTS=bluetooth.target
--
Model: "MediaTek Wireless_Device"
Hotplug: USB
Vendor: usb 0x35f5 "MediaTek Inc."
Device: usb 0x7922 "Wireless_Device"
Revision: "1.00"
Serial ID: "000000000"
Driver: "btusb"
Driver Modules: "btusb"
Speed: 480 Mbps
Module Alias: "usb:v35F5p7922d0100dcEFdsc02dp01icE0isc01ip01in01"
Driver Info #0:
Driver Status: btusb is active
Driver Activation Cmd: "modprobe btusb"
Config Status: cfg=new, avail=yes, need=no, active=unknown
Attached to: #80 (Hub)
~ sudo dmesg | grep mt79
EMPTY
➜ ~ hwinfo | grep Media -A 5
manufacturer = "MediaTek Inc."
product = "Wireless_Device"
serial = "000000000"
bcdDevice = 0100
speed = "480"
usb device: name = 1-3:1.0
--
manufacturer = "MediaTek Inc."
product = "Wireless_Device"
serial = "000000000"
bcdDevice = 0100
speed = "480"
usb device: name = usb7
--
manufacturer = "MediaTek Inc."
product = "Wireless_Device"
serial = "000000000"
bcdDevice = 0100
speed = "480"
removed: /devices/pci0000:00/0000:00:08.1/0000:04:00.4/usb3/3-1/3-1:1.0
--
E: ID_SERIAL=MediaTek_Inc._Wireless_Device_000000000
E: ID_SERIAL_SHORT=000000000
E: ID_VENDOR=MediaTek_Inc.
E: ID_VENDOR_ENC=MediaTek\x20Inc.
E: ID_VENDOR_ID=35f5
E: ID_REVISION=0100
E: ID_USB_MODEL=Wireless_Device
E: ID_USB_MODEL_ENC=Wireless_Device
E: ID_USB_MODEL_ID=7922
E: ID_USB_SERIAL=MediaTek_Inc._Wireless_Device_000000000
E: ID_USB_SERIAL_SHORT=000000000
E: ID_USB_VENDOR=MediaTek_Inc.
E: ID_USB_VENDOR_ENC=MediaTek\x20Inc.
E: ID_USB_VENDOR_ID=35f5
E: ID_USB_REVISION=0100
E: ID_USB_INTERFACES=:e00101:
E: ID_PATH_WITH_USB_REVISION=pci-0000:04:00.3-usbv2-0:5
E: ID_PATH=pci-0000:04:00.3-usb-0:5
--
Model: "MediaTek Wireless_Device"
Hotplug: USB
Vendor: usb 0x35f5 "MediaTek Inc."
Device: usb 0x7922 "Wireless_Device"
Revision: "1.00"
Serial ID: "000000000"
Driver: "btusb"
Driver Modules: "btusb"Offline
I think the hardware is too new and will need patching for WiFi [1] and bluetooth [2].
[1] https://lore.kernel.org/all/20231101095 … metal.dev/
[2] https://lore.kernel.org/all/20231101094 … metal.dev/
Offline
you're right, I hope it won't take too long to release
Offline
you're right, I hope it won't take too long to release
The patches have not been accepted yet. In the mean time you can apply the patches locally.
linux-6.5.9.arch2 linked below is built with the patches applied. Diff of changes also below.
https://drive.google.com/file/d/1Tz8Jxg … sp=sharing linux-6.5.9.arch2-1.2-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1PnstQI … sp=sharing linux-headers-6.5.9.arch2-1.2-x86_64.pkg.tar.zst
diff --git a/0001-wifi-mt76-mt7921-Add-a-new-VID-PID-0b48-7922-for-MT7.patch b/0001-wifi-mt76-mt7921-Add-a-new-VID-PID-0b48-7922-for-MT7.patch
new file mode 100644
index 0000000..7f1162c
--- /dev/null
+++ b/0001-wifi-mt76-mt7921-Add-a-new-VID-PID-0b48-7922-for-MT7.patch
@@ -0,0 +1,30 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Tom Waldron <tom@baremetal.dev>
+Date: Wed, 1 Nov 2023 09:55:33 +0000
+Subject: [PATCH 1/2] wifi: mt76: mt7921: Add a new VID/PID 0b48/7922 for
+ MT7922
+
+Add VID/PID 0b48/7922 for MediaTek MT7922 wifi chip.
+Change tested on Redmi Book Pro 15 2023 (Fedora 38).
+
+Signed-off-by: Tom Waldron <tom@baremetal.dev>
+---
+ drivers/net/wireless/mediatek/mt76/mt7921/pci.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c
+index 95610a117d2f..c639000c07e2 100644
+--- a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c
++++ b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c
+@@ -21,6 +21,8 @@ static const struct pci_device_id mt7921_pci_device_table[] = {
+ .driver_data = (kernel_ulong_t)MT7921_FIRMWARE_WM },
+ { PCI_DEVICE(PCI_VENDOR_ID_MEDIATEK, 0x0616),
+ .driver_data = (kernel_ulong_t)MT7922_FIRMWARE_WM },
++ { PCI_DEVICE(0x0b48, 0x7922),
++ .driver_data = (kernel_ulong_t)MT7922_FIRMWARE_WM },
+ { },
+ };
+
+--
+2.42.0
+
diff --git a/0002-Bluetooth-btusb-Add-a-new-VID-PID-35f5-7922-for-MT79.patch b/0002-Bluetooth-btusb-Add-a-new-VID-PID-35f5-7922-for-MT79.patch
new file mode 100644
index 0000000..4da56fa
--- /dev/null
+++ b/0002-Bluetooth-btusb-Add-a-new-VID-PID-35f5-7922-for-MT79.patch
@@ -0,0 +1,30 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Tom Waldron <tom@baremetal.dev>
+Date: Wed, 1 Nov 2023 09:40:43 +0000
+Subject: [PATCH 2/2] Bluetooth: btusb: Add a new VID/PID 35f5/7922 for MT7922
+
+Add VID/PID 35f5/7922 for MediaTek MT7922 USB Bluetooth chip.
+Change tested on Redmi Book Pro 15 2023 (Fedora 38).
+
+Signed-off-by: Tom Waldron <tom@baremetal.dev>
+---
+ drivers/bluetooth/btusb.c | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
+index ca9e2a210fff..46251b4d88e3 100644
+--- a/drivers/bluetooth/btusb.c
++++ b/drivers/bluetooth/btusb.c
+@@ -643,6 +643,9 @@ static const struct usb_device_id blacklist_table[] = {
+ { USB_DEVICE(0x04ca, 0x3804), .driver_info = BTUSB_MEDIATEK |
+ BTUSB_WIDEBAND_SPEECH |
+ BTUSB_VALID_LE_STATES },
++ { USB_DEVICE(0x35f5, 0x7922), .driver_info = BTUSB_MEDIATEK |
++ BTUSB_WIDEBAND_SPEECH |
++ BTUSB_VALID_LE_STATES },
+
+ /* Additional Realtek 8723AE Bluetooth devices */
+ { USB_DEVICE(0x0930, 0x021d), .driver_info = BTUSB_REALTEK },
+--
+2.42.0
+
diff --git a/PKGBUILD b/PKGBUILD
index 2b0f6d9..c95664c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgbase=linux
pkgver=6.5.9.arch2
-pkgrel=1
+pkgrel=1.2
pkgdesc='Linux'
url='https://github.com/archlinux/linux'
arch=(x86_64)
@@ -17,12 +17,6 @@ makedepends=(
python
tar
xz
-
- # htmldocs
- graphviz
- imagemagick
- python-sphinx
- texlive-latexextra
)
options=('!strip')
_srcname=linux-${pkgver%.*}
@@ -30,6 +24,8 @@ _srctag=v${pkgver%.*}-${pkgver##*.}
source=(
https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/${_srcname}.tar.{xz,sign}
$url/releases/download/$_srctag/linux-$_srctag.patch.zst{,.sig}
+ 0001-wifi-mt76-mt7921-Add-a-new-VID-PID-0b48-7922-for-MT7.patch
+ 0002-Bluetooth-btusb-Add-a-new-VID-PID-35f5-7922-for-MT79.patch
config # the main kernel config file
)
validpgpkeys=(
@@ -42,11 +38,15 @@ sha256sums=('c6662f64713f56bf30e009c32eac15536fad5fd1c02e8a3daf62a0dc2f058fd5'
'SKIP'
'98c8e04079699a9316c37ed299a363c80ff9625388c492116683b929f35dcab6'
'SKIP'
+ '3be1a3ccb0f07f26699393d934e54106abd879c64d993925101f689a61eda4a2'
+ '736c6510fbcec15324d815609ea8ea7ebfb8f8ae152afa34c342e2c4ea932a72'
'5aff0f8584e01165dc20cd107df338f57a13ce7f0da14e07f4c9097cd748469f')
b2sums=('fb5fcc0dc79e2f615a550283481492a8185414d65369cbe805909112735593e5fc8bdbd482a347dc4cb3dcac979bea21cd03c503932e9321856eeea685d31c65'
'SKIP'
'2b8309c03ae0dd7582b471e39b459fbcb653bd3971eda91576791b1dabe73aad89d4b468a59d0cf3e834f6085ad33ac5449b60a567960835f6f56dd739411262'
'SKIP'
+ '9cde95d293a49b28c4de3f2248767ddd468f3f3a1377caada434ba3b0cc944857e1481c4c3be2b1a3dfb639045ced1aacbe9ab2b3953221c352076a0302a863e'
+ '14ee398ee75edf91183191f8fc56dc62672f43c9bc305ca995eadf95dd15872f2062b15e897a86b1dc5501bcdcf571676e3ef720fcd7ae4ddbda38f86fe77d00'
'1445dc90cf8bd3f2b9493e9e48eb76247bd37de412bdb247b132694e047ec260c25203836888ce6c1c864f46dab80b453b3f47d8b3a92f1f9dffc5589d7bc320')
export KBUILD_BUILD_HOST=archlinux
@@ -82,7 +82,6 @@ prepare() {
build() {
cd $_srcname
make all
- make htmldocs
}
_package() {
@@ -207,29 +206,9 @@ _package-headers() {
ln -sr "$builddir" "$pkgdir/usr/src/$pkgbase"
}
-_package-docs() {
- pkgdesc="Documentation for the $pkgdesc kernel"
-
- cd $_srcname
- local builddir="$pkgdir/usr/lib/modules/$(<version)/build"
-
- echo "Installing documentation..."
- local src dst
- while read -rd '' src; do
- dst="${src#Documentation/}"
- dst="$builddir/Documentation/${dst#output/}"
- install -Dm644 "$src" "$dst"
- done < <(find Documentation -name '.*' -prune -o ! -type d -print0)
-
- echo "Adding symlink..."
- mkdir -p "$pkgdir/usr/share/doc"
- ln -sr "$builddir/Documentation" "$pkgdir/usr/share/doc/$pkgbase"
-}
-
pkgname=(
"$pkgbase"
"$pkgbase-headers"
- "$pkgbase-docs"
)
for _p in "${pkgname[@]}"; do
eval "package_$_p() {Offline