Skip to content

Commit 1a280c5

Browse files
committed
Merge tag 'for-net-next-2025-01-15' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next
Luiz Augusto von Dentz says: ==================== bluetooth-next pull request for net-next: - btusb: Add new VID/PID 13d3/3610 for MT7922 - btusb: Add new VID/PID 13d3/3628 for MT7925 - btusb: Add MT7921e device 13d3:3576 - btusb: Add RTL8851BE device 13d3:3600 - btusb: Add ID 0x2c7c:0x0130 for Qualcomm WCN785x - btusb: add sysfs attribute to control USB alt setting - qca: Expand firmware-name property - qca: Fix poor RF performance for WCN6855 - L2CAP: handle NULL sock pointer in l2cap_sock_alloc - Allow reset via sysfs - ISO: Allow BIG re-sync - dt-bindings: Utilize PMU abstraction for WCN6750 - MGMT: Mark LL Privacy as stable * tag 'for-net-next-2025-01-15' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next: (23 commits) Bluetooth: MGMT: Fix slab-use-after-free Read in mgmt_remove_adv_monitor_sync Bluetooth: qca: Fix poor RF performance for WCN6855 Bluetooth: Allow reset via sysfs Bluetooth: Get rid of cmd_timeout and use the reset callback Bluetooth: Remove the cmd timeout count in btusb Bluetooth: Use str_enable_disable-like helpers Bluetooth: btmtk: Remove resetting mt7921 before downloading the fw Bluetooth: L2CAP: handle NULL sock pointer in l2cap_sock_alloc Bluetooth: btusb: Add RTL8851BE device 13d3:3600 dt-bindings: bluetooth: Utilize PMU abstraction for WCN6750 Bluetooth: btusb: Add MT7921e device 13d3:3576 Bluetooth: btrtl: check for NULL in btrtl_setup_realtek() Bluetooth: btbcm: Fix NULL deref in btbcm_get_board_name() Bluetooth: qca: Expand firmware-name to load specific rampatch Bluetooth: qca: Update firmware-name to support board specific nvm dt-bindings: net: bluetooth: qca: Expand firmware-name property Bluetooth: btusb: Add new VID/PID 13d3/3628 for MT7925 Bluetooth: btusb: Add new VID/PID 13d3/3610 for MT7922 Bluetooth: btusb: add sysfs attribute to control USB alt setting Bluetooth: btusb: Add ID 0x2c7c:0x0130 for Qualcomm WCN785x ... ==================== Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
2 parents 66cc61a + 26fbd34 commit 1a280c5

File tree

20 files changed

+340
-335
lines changed

20 files changed

+340
-335
lines changed

Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ properties:
101101
max-speed: true
102102

103103
firmware-name:
104-
description: specify the name of nvm firmware to load
104+
minItems: 1
105+
items:
106+
- description: specify the name of nvm firmware to load
107+
- description: specify the name of rampatch firmware to load
105108

106109
local-bd-address: true
107110

@@ -154,16 +157,11 @@ allOf:
154157
- qcom,wcn6750-bt
155158
then:
156159
required:
157-
- enable-gpios
158-
- swctrl-gpios
159-
- vddio-supply
160160
- vddaon-supply
161-
- vddbtcxmx-supply
162161
- vddrfacmn-supply
163162
- vddrfa0p8-supply
164163
- vddrfa1p7-supply
165164
- vddrfa1p2-supply
166-
- vddasd-supply
167165
- if:
168166
properties:
169167
compatible:

drivers/bluetooth/btbcm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,9 @@ static const char *btbcm_get_board_name(struct device *dev)
553553

554554
/* get rid of any '/' in the compatible string */
555555
board_type = devm_kstrdup(dev, tmp, GFP_KERNEL);
556+
if (!board_type)
557+
return NULL;
558+
556559
strreplace(board_type, '/', '-');
557560

558561
return board_type;

drivers/bluetooth/btintel.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <linux/module.h>
1010
#include <linux/firmware.h>
1111
#include <linux/regmap.h>
12+
#include <linux/string_choices.h>
1213
#include <linux/acpi.h>
1314
#include <acpi/acpi_bus.h>
1415
#include <linux/unaligned.h>
@@ -506,13 +507,13 @@ int btintel_version_info_tlv(struct hci_dev *hdev,
506507

507508
bt_dev_info(hdev, "Device revision is %u", version->dev_rev_id);
508509
bt_dev_info(hdev, "Secure boot is %s",
509-
version->secure_boot ? "enabled" : "disabled");
510+
str_enabled_disabled(version->secure_boot));
510511
bt_dev_info(hdev, "OTP lock is %s",
511-
version->otp_lock ? "enabled" : "disabled");
512+
str_enabled_disabled(version->otp_lock));
512513
bt_dev_info(hdev, "API lock is %s",
513-
version->api_lock ? "enabled" : "disabled");
514+
str_enabled_disabled(version->api_lock));
514515
bt_dev_info(hdev, "Debug lock is %s",
515-
version->debug_lock ? "enabled" : "disabled");
516+
str_enabled_disabled(version->debug_lock));
516517
bt_dev_info(hdev, "Minimum firmware build %u week %u %u",
517518
version->min_fw_build_nn, version->min_fw_build_cw,
518519
2000 + version->min_fw_build_yy);
@@ -927,16 +928,16 @@ int btintel_read_boot_params(struct hci_dev *hdev,
927928
le16_to_cpu(params->dev_revid));
928929

929930
bt_dev_info(hdev, "Secure boot is %s",
930-
params->secure_boot ? "enabled" : "disabled");
931+
str_enabled_disabled(params->secure_boot));
931932

932933
bt_dev_info(hdev, "OTP lock is %s",
933-
params->otp_lock ? "enabled" : "disabled");
934+
str_enabled_disabled(params->otp_lock));
934935

935936
bt_dev_info(hdev, "API lock is %s",
936-
params->api_lock ? "enabled" : "disabled");
937+
str_enabled_disabled(params->api_lock));
937938

938939
bt_dev_info(hdev, "Debug lock is %s",
939-
params->debug_lock ? "enabled" : "disabled");
940+
str_enabled_disabled(params->debug_lock));
940941

941942
bt_dev_info(hdev, "Minimum firmware build %u week %u %u",
942943
params->min_fw_build_nn, params->min_fw_build_cw,

drivers/bluetooth/btmrvl_main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include <linux/module.h>
99
#include <linux/of.h>
10+
#include <linux/string_choices.h>
1011
#include <net/bluetooth/bluetooth.h>
1112
#include <net/bluetooth/hci_core.h>
1213
#include <linux/mmc/sdio_func.h>
@@ -88,7 +89,7 @@ int btmrvl_process_event(struct btmrvl_private *priv, struct sk_buff *skb)
8889
else
8990
adapter->psmode = 0;
9091
BT_DBG("PS Mode:%s",
91-
(adapter->psmode) ? "Enable" : "Disable");
92+
str_enable_disable(adapter->psmode));
9293
} else {
9394
BT_DBG("PS Mode command failed");
9495
}

drivers/bluetooth/btmtk.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,15 +1329,15 @@ int btmtk_usb_setup(struct hci_dev *hdev)
13291329
fwname = FIRMWARE_MT7668;
13301330
break;
13311331
case 0x7922:
1332-
case 0x7961:
13331332
case 0x7925:
13341333
/* Reset the device to ensure it's in the initial state before
13351334
* downloading the firmware to ensure.
13361335
*/
13371336

13381337
if (!test_bit(BTMTK_FIRMWARE_LOADED, &btmtk_data->flags))
13391338
btmtk_usb_subsys_reset(hdev, dev_id);
1340-
1339+
fallthrough;
1340+
case 0x7961:
13411341
btmtk_fw_get_filename(fw_bin_name, sizeof(fw_bin_name), dev_id,
13421342
fw_version, fw_flavor);
13431343

drivers/bluetooth/btmtksdio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ static int btmtksdio_send_frame(struct hci_dev *hdev, struct sk_buff *skb)
12491249
return 0;
12501250
}
12511251

1252-
static void btmtksdio_cmd_timeout(struct hci_dev *hdev)
1252+
static void btmtksdio_reset(struct hci_dev *hdev)
12531253
{
12541254
struct btmtksdio_dev *bdev = hci_get_drvdata(hdev);
12551255
u32 status;
@@ -1360,7 +1360,7 @@ static int btmtksdio_probe(struct sdio_func *func,
13601360

13611361
hdev->open = btmtksdio_open;
13621362
hdev->close = btmtksdio_close;
1363-
hdev->cmd_timeout = btmtksdio_cmd_timeout;
1363+
hdev->reset = btmtksdio_reset;
13641364
hdev->flush = btmtksdio_flush;
13651365
hdev->setup = btmtksdio_setup;
13661366
hdev->shutdown = btmtksdio_shutdown;

0 commit comments

Comments
 (0)