mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-28 17:48:58 +00:00
21549dbf7b
Update patch set for new release and add required kernel option
CONFIG_ZRAM_TRACK_ENTRY_ACTIME to generic config
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.6.66
Manually rebased:
bcm27xx/patches-6.6/950-0092-MMC-added-alternative-MMC-driver.patch
bcm53xx/patches-6.6/180-usb-xhci-add-support-for-performing-fake-doorbell.patch
starfive/patches-6.6/1000-serial-8250_dw-Add-starfive-jh7100-hsuart-compatible.patch
Removed upstreamed:
bcm27xx/patches-6.6/950-0029-vc4_hdmi-Avoid-log-spam-for-audio-start-failure.patch[1]
All other patches automatically rebased.
1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.6.66&id=e0388a95736abd1f5f5a94221dd1ac24eacbd4d7
Build system: x86/64
Build-tested: bcm27xx/bcm2712, flogic/glinet_gl-mt6000, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64
Run-tested: bcm27xx/bcm2712, flogic/glinet_gl-mt6000, flogic/xiaomi_redmi-router-ax6000-ubootmod, ramips/tplink_archer-a6-v3, x86/64
Signed-off-by: John Audia <therealgraysky@proton.me>
Link: https://github.com/openwrt/openwrt/pull/17271
(cherry picked from commit 28f534d953
)
Link: https://github.com/openwrt/openwrt/pull/17302
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
41 lines
1.6 KiB
Diff
41 lines
1.6 KiB
Diff
From b6134fc75ddd8f2f6493edbb6260f0a12acb9057 Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Tue, 25 Apr 2023 11:49:41 +0100
|
|
Subject: [PATCH 0441/1085] Bluetooth: hci_sync: Add fallback-bd-address prop
|
|
|
|
The kernel Bluetooth framework understands that devices may not
|
|
be programmed with valid Bluetooth addresses. It also has the ability
|
|
to override a Bluetooth address with the value of the local-bd-address
|
|
DT property, but it ignores the validity of the existing address when
|
|
doing so.
|
|
|
|
Add a new boolean property, fallback-bd-address, which indicates that
|
|
the given local-bd-address property should only be used if the device
|
|
does not already have a valid BDADDR.
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
|
---
|
|
net/bluetooth/hci_sync.c | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
--- a/net/bluetooth/hci_sync.c
|
|
+++ b/net/bluetooth/hci_sync.c
|
|
@@ -4872,6 +4872,7 @@ static const struct {
|
|
*/
|
|
static int hci_dev_setup_sync(struct hci_dev *hdev)
|
|
{
|
|
+ struct fwnode_handle *fwnode = dev_fwnode(hdev->dev.parent);
|
|
int ret = 0;
|
|
bool invalid_bdaddr;
|
|
size_t i;
|
|
@@ -4900,7 +4901,8 @@ static int hci_dev_setup_sync(struct hci
|
|
test_bit(HCI_QUIRK_USE_BDADDR_PROPERTY, &hdev->quirks);
|
|
if (!ret) {
|
|
if (test_bit(HCI_QUIRK_USE_BDADDR_PROPERTY, &hdev->quirks) &&
|
|
- !bacmp(&hdev->public_addr, BDADDR_ANY))
|
|
+ !bacmp(&hdev->public_addr, BDADDR_ANY) &&
|
|
+ (invalid_bdaddr || !fwnode_property_present(fwnode, "fallback-bd-address")))
|
|
hci_dev_get_bd_addr_from_property(hdev);
|
|
|
|
if (invalid_bdaddr && bacmp(&hdev->public_addr, BDADDR_ANY) &&
|