Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump idna from 3.4 to 3.7 in /drivers/gpu/drm/ci/xfails #12

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
8b05880
Bluetooth: btintel: Define macros for image types
kirankrishnappa-intel Mar 11, 2024
46995c2
Bluetooth: btintel: Add support to download intermediate loader
kirankrishnappa-intel Mar 11, 2024
1d22086
Bluetooth: Add support for MediaTek MT7922 device
Mar 15, 2024
2151391
Bluetooth: ISO: Don't reject BT_ISO_QOS if parameters are unset
Vudentz Mar 13, 2024
622af24
Bluetooth: btqcomsmd: Convert to platform remove callback returning void
Mar 11, 2024
24353d5
Bluetooth: hci_bcm: Convert to platform remove callback returning void
Mar 11, 2024
7ea225a
Bluetooth: hci_intel: Convert to platform remove callback returning void
Mar 11, 2024
c1bc27c
Bluetooth: Add proper definitions for scan interval and window
Vudentz Mar 28, 2024
b191fb7
Bluetooth: hci_sync: Fix using the same interval and window for Coded
Vudentz Mar 28, 2024
11ad6fe
Bluetooth: hci_event: Set DISCOVERY_FINDING on SCAN_ENABLED
Vudentz Mar 28, 2024
43d0439
Bluetooth: add support for skb TX timestamping
pv Mar 14, 2024
2e06903
Bluetooth: ISO: add TX timestamping
pv Mar 14, 2024
26af0a6
Bluetooth: L2CAP: add TX timestamping
pv Mar 14, 2024
473e231
Bluetooth: SCO: add TX timestamping
pv Mar 14, 2024
0ef86e9
Bluetooth: Fix type of len in {l2cap,sco}_sock_getsockopt_old()
nathanchance Apr 1, 2024
0184103
Bluetooth: Fix memory leak in hci_req_sync_complete()
dmantipov Apr 2, 2024
76999e2
Bluetooth: ISO: Make iso_get_sock_listen generic
iulia-tanasescu Apr 2, 2024
17ef601
Bluetooth: ISO: Handle PA sync when no BIGInfo reports are generated
iulia-tanasescu Apr 2, 2024
e6bb15d
Bluetooth: l2cap: Don't double set the HCI_CONN_MGMT_CONNECTED bit
apusaka Apr 4, 2024
3857c22
Bluetooth: hci_intel: Fix multiple issues reported by checkpatch.pl
wantyapps Apr 2, 2024
289bfd9
Bluetooth: SCO: Fix not validating setsockopt user input
Vudentz Apr 5, 2024
ee77912
Bluetooth: RFCOMM: Fix not validating setsockopt user input
Vudentz Apr 5, 2024
a95f9d2
Bluetooth: L2CAP: Fix not validating setsockopt user input
Vudentz Apr 5, 2024
5a50104
Bluetooth: ISO: Fix not validating setsockopt user input
Vudentz Apr 5, 2024
35d2c39
Bluetooth: hci_sock: Fix not validating setsockopt user input
Vudentz Apr 5, 2024
215c470
Bluetooth: L2CAP: Avoid -Wflex-array-member-not-at-end warnings
GustavoARSilva Mar 27, 2024
6093f28
Bluetooth: hci_sync: Use advertised PHYs on hci_le_ext_create_conn_sync
Vudentz Apr 5, 2024
fd6790e
Bluetooth: hci_bcm: Limit bcm43455 baudrate to 2000000
jwrdegoede Apr 6, 2024
df0d036
Bluetooth: ath3k: Fix multiple issues reported by checkpatch.pl
wantyapps Apr 5, 2024
75fe062
Bluetooth: add experimental BT_POLL_ERRQUEUE socket option
pv Apr 7, 2024
cf396a4
Bluetooth: btusb: Add Realtek RTL8852BE support ID 0x0bda:0x4853
Avenger-285714 Mar 29, 2024
e00fc27
Bluetooth: btusb: Fix triggering coredump implementation for QCA
zijun-hu Mar 25, 2024
bc4065c
build(deps): bump idna from 3.4 to 3.7 in /drivers/gpu/drm/ci/xfails
dependabot[bot] Apr 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 11 additions & 14 deletions drivers/bluetooth/ath3k.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright (c) 2008-2009 Atheros Communications Inc.
*/


#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
Expand Down Expand Up @@ -128,7 +127,6 @@ MODULE_DEVICE_TABLE(usb, ath3k_table);
* for AR3012
*/
static const struct usb_device_id ath3k_blist_tbl[] = {

/* Atheros AR3012 with sflash firmware*/
{ USB_DEVICE(0x0489, 0xe04e), .driver_info = BTUSB_ATH3012 },
{ USB_DEVICE(0x0489, 0xe04d), .driver_info = BTUSB_ATH3012 },
Expand Down Expand Up @@ -202,7 +200,7 @@ static inline void ath3k_log_failed_loading(int err, int len, int size,
#define TIMEGAP_USEC_MAX 100

static int ath3k_load_firmware(struct usb_device *udev,
const struct firmware *firmware)
const struct firmware *firmware)
{
u8 *send_buf;
int len = 0;
Expand Down Expand Up @@ -237,9 +235,9 @@ static int ath3k_load_firmware(struct usb_device *udev,
memcpy(send_buf, firmware->data + sent, size);

err = usb_bulk_msg(udev, pipe, send_buf, size,
&len, 3000);
&len, 3000);

if (err || (len != size)) {
if (err || len != size) {
ath3k_log_failed_loading(err, len, size, count);
goto error;
}
Expand All @@ -262,7 +260,7 @@ static int ath3k_get_state(struct usb_device *udev, unsigned char *state)
}

static int ath3k_get_version(struct usb_device *udev,
struct ath3k_version *version)
struct ath3k_version *version)
{
return usb_control_msg_recv(udev, 0, ATH3K_GETVERSION,
USB_TYPE_VENDOR | USB_DIR_IN, 0, 0,
Expand All @@ -271,7 +269,7 @@ static int ath3k_get_version(struct usb_device *udev,
}

static int ath3k_load_fwfile(struct usb_device *udev,
const struct firmware *firmware)
const struct firmware *firmware)
{
u8 *send_buf;
int len = 0;
Expand Down Expand Up @@ -310,8 +308,8 @@ static int ath3k_load_fwfile(struct usb_device *udev,
memcpy(send_buf, firmware->data + sent, size);

err = usb_bulk_msg(udev, pipe, send_buf, size,
&len, 3000);
if (err || (len != size)) {
&len, 3000);
if (err || len != size) {
ath3k_log_failed_loading(err, len, size, count);
kfree(send_buf);
return err;
Expand Down Expand Up @@ -425,7 +423,6 @@ static int ath3k_load_syscfg(struct usb_device *udev)
}

switch (fw_version.ref_clock) {

case ATH3K_XTAL_FREQ_26M:
clk_value = 26;
break;
Expand All @@ -441,7 +438,7 @@ static int ath3k_load_syscfg(struct usb_device *udev)
}

snprintf(filename, ATH3K_NAME_LEN, "ar3k/ramps_0x%08x_%d%s",
le32_to_cpu(fw_version.rom_version), clk_value, ".dfu");
le32_to_cpu(fw_version.rom_version), clk_value, ".dfu");

ret = request_firmware(&firmware, filename, &udev->dev);
if (ret < 0) {
Expand All @@ -456,7 +453,7 @@ static int ath3k_load_syscfg(struct usb_device *udev)
}

static int ath3k_probe(struct usb_interface *intf,
const struct usb_device_id *id)
const struct usb_device_id *id)
{
const struct firmware *firmware;
struct usb_device *udev = interface_to_usbdev(intf);
Expand Down Expand Up @@ -505,10 +502,10 @@ static int ath3k_probe(struct usb_interface *intf,
if (ret < 0) {
if (ret == -ENOENT)
BT_ERR("Firmware file \"%s\" not found",
ATH3K_FIRMWARE);
ATH3K_FIRMWARE);
else
BT_ERR("Firmware file \"%s\" request failed (err=%d)",
ATH3K_FIRMWARE, ret);
ATH3K_FIRMWARE, ret);
return ret;
}

Expand Down
50 changes: 43 additions & 7 deletions drivers/bluetooth/btintel.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ static int btintel_version_info_tlv(struct hci_dev *hdev,
}

switch (version->img_type) {
case 0x01:
case BTINTEL_IMG_BOOTLOADER:
variant = "Bootloader";
/* It is required that every single firmware fragment is acknowledged
* with a command complete event. If the boot parameters indicate
Expand Down Expand Up @@ -521,7 +521,10 @@ static int btintel_version_info_tlv(struct hci_dev *hdev,
version->min_fw_build_nn, version->min_fw_build_cw,
2000 + version->min_fw_build_yy);
break;
case 0x03:
case BTINTEL_IMG_IML:
variant = "Intermediate loader";
break;
case BTINTEL_IMG_OP:
variant = "Firmware";
break;
default:
Expand All @@ -535,7 +538,7 @@ static int btintel_version_info_tlv(struct hci_dev *hdev,
bt_dev_info(hdev, "%s timestamp %u.%u buildtype %u build %u", variant,
2000 + (version->timestamp >> 8), version->timestamp & 0xff,
version->build_type, version->build_num);
if (version->img_type == 0x03)
if (version->img_type == BTINTEL_IMG_OP)
bt_dev_info(hdev, "Firmware SHA1: 0x%8.8x", version->git_sha1);

return 0;
Expand Down Expand Up @@ -1172,7 +1175,7 @@ static int btintel_download_fw_tlv(struct hci_dev *hdev,
* If the firmware version has changed that means it needs to be reset
* to bootloader when operational so the new firmware can be loaded.
*/
if (ver->img_type == 0x03)
if (ver->img_type == BTINTEL_IMG_OP)
return -EINVAL;

/* iBT hardware variants 0x0b, 0x0c, 0x11, 0x12, 0x13, 0x14 support
Expand Down Expand Up @@ -2194,10 +2197,26 @@ static void btintel_get_fw_name_tlv(const struct intel_version_tlv *ver,
char *fw_name, size_t len,
const char *suffix)
{
const char *format;
/* The firmware file name for new generation controllers will be
* ibt-<cnvi_top type+cnvi_top step>-<cnvr_top type+cnvr_top step>
*/
snprintf(fw_name, len, "intel/ibt-%04x-%04x.%s",
switch (ver->cnvi_top & 0xfff) {
/* Only Blazar product supports downloading of intermediate loader
* image
*/
case BTINTEL_CNVI_BLAZARI:
if (ver->img_type == BTINTEL_IMG_BOOTLOADER)
format = "intel/ibt-%04x-%04x-iml.%s";
else
format = "intel/ibt-%04x-%04x.%s";
break;
default:
format = "intel/ibt-%04x-%04x.%s";
break;
}

snprintf(fw_name, len, format,
INTEL_CNVX_TOP_PACK_SWAB(INTEL_CNVX_TOP_TYPE(ver->cnvi_top),
INTEL_CNVX_TOP_STEP(ver->cnvi_top)),
INTEL_CNVX_TOP_PACK_SWAB(INTEL_CNVX_TOP_TYPE(ver->cnvr_top),
Expand Down Expand Up @@ -2230,7 +2249,7 @@ static int btintel_prepare_fw_download_tlv(struct hci_dev *hdev,
* It is not possible to use the Secure Boot Parameters in this
* case since that command is only available in bootloader mode.
*/
if (ver->img_type == 0x03) {
if (ver->img_type == BTINTEL_IMG_OP) {
btintel_clear_flag(hdev, INTEL_BOOTLOADER);
btintel_check_bdaddr(hdev);
} else {
Expand Down Expand Up @@ -2600,13 +2619,30 @@ static int btintel_bootloader_setup_tlv(struct hci_dev *hdev,
return err;

/* check if controller is already having an operational firmware */
if (ver->img_type == 0x03)
if (ver->img_type == BTINTEL_IMG_OP)
goto finish;

err = btintel_boot(hdev, boot_param);
if (err)
return err;

err = btintel_read_version_tlv(hdev, ver);
if (err)
return err;

/* If image type returned is BTINTEL_IMG_IML, then controller supports
* intermediae loader image
*/
if (ver->img_type == BTINTEL_IMG_IML) {
err = btintel_prepare_fw_download_tlv(hdev, ver, &boot_param);
if (err)
return err;

err = btintel_boot(hdev, boot_param);
if (err)
return err;
}

btintel_clear_flag(hdev, INTEL_BOOTLOADER);

btintel_get_fw_name_tlv(ver, ddcname, sizeof(ddcname), "ddc");
Expand Down
6 changes: 6 additions & 0 deletions drivers/bluetooth/btintel.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@ struct intel_tlv {
u8 val[];
} __packed;

#define BTINTEL_CNVI_BLAZARI 0x900

#define BTINTEL_IMG_BOOTLOADER 0x01 /* Bootloader image */
#define BTINTEL_IMG_IML 0x02 /* Intermediate image */
#define BTINTEL_IMG_OP 0x03 /* Operational image */

struct intel_version_tlv {
u32 cnvi_top;
u32 cnvr_top;
Expand Down
6 changes: 2 additions & 4 deletions drivers/bluetooth/btqcomsmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ static int btqcomsmd_probe(struct platform_device *pdev)
return ret;
}

static int btqcomsmd_remove(struct platform_device *pdev)
static void btqcomsmd_remove(struct platform_device *pdev)
{
struct btqcomsmd *btq = platform_get_drvdata(pdev);

Expand All @@ -206,8 +206,6 @@ static int btqcomsmd_remove(struct platform_device *pdev)

rpmsg_destroy_ept(btq->cmd_channel);
rpmsg_destroy_ept(btq->acl_channel);

return 0;
}

static const struct of_device_id btqcomsmd_of_match[] = {
Expand All @@ -218,7 +216,7 @@ MODULE_DEVICE_TABLE(of, btqcomsmd_of_match);

static struct platform_driver btqcomsmd_driver = {
.probe = btqcomsmd_probe,
.remove = btqcomsmd_remove,
.remove_new = btqcomsmd_remove,
.driver = {
.name = "btqcomsmd",
.of_match_table = btqcomsmd_of_match,
Expand Down
16 changes: 11 additions & 5 deletions drivers/bluetooth/btusb.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,8 @@ static const struct usb_device_id quirks_table[] = {
/* Realtek 8852BE Bluetooth devices */
{ USB_DEVICE(0x0cb8, 0xc559), .driver_info = BTUSB_REALTEK |
BTUSB_WIDEBAND_SPEECH },
{ USB_DEVICE(0x0bda, 0x4853), .driver_info = BTUSB_REALTEK |
BTUSB_WIDEBAND_SPEECH },
{ USB_DEVICE(0x0bda, 0x887b), .driver_info = BTUSB_REALTEK |
BTUSB_WIDEBAND_SPEECH },
{ USB_DEVICE(0x0bda, 0xb85b), .driver_info = BTUSB_REALTEK |
Expand Down Expand Up @@ -617,6 +619,11 @@ static const struct usb_device_id quirks_table[] = {
BTUSB_WIDEBAND_SPEECH |
BTUSB_VALID_LE_STATES },

/* MediaTek MT7922 Bluetooth devices */
{ USB_DEVICE(0x13d3, 0x3585), .driver_info = BTUSB_MEDIATEK |
BTUSB_WIDEBAND_SPEECH |
BTUSB_VALID_LE_STATES },

/* MediaTek MT7922A Bluetooth devices */
{ USB_DEVICE(0x0489, 0xe0d8), .driver_info = BTUSB_MEDIATEK |
BTUSB_WIDEBAND_SPEECH |
Expand Down Expand Up @@ -3480,13 +3487,12 @@ static void btusb_dump_hdr_qca(struct hci_dev *hdev, struct sk_buff *skb)

static void btusb_coredump_qca(struct hci_dev *hdev)
{
int err;
static const u8 param[] = { 0x26 };
struct sk_buff *skb;

skb = __hci_cmd_sync(hdev, 0xfc0c, 1, param, HCI_CMD_TIMEOUT);
if (IS_ERR(skb))
bt_dev_err(hdev, "%s: triggle crash failed (%ld)", __func__, PTR_ERR(skb));
kfree_skb(skb);
err = __hci_cmd_send(hdev, 0xfc0c, 1, param);
if (err < 0)
bt_dev_err(hdev, "%s: triggle crash failed (%d)", __func__, err);
}

/*
Expand Down
8 changes: 3 additions & 5 deletions drivers/bluetooth/hci_bcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1293,7 +1293,7 @@ static int bcm_probe(struct platform_device *pdev)
return 0;
}

static int bcm_remove(struct platform_device *pdev)
static void bcm_remove(struct platform_device *pdev)
{
struct bcm_device *dev = platform_get_drvdata(pdev);

Expand All @@ -1302,8 +1302,6 @@ static int bcm_remove(struct platform_device *pdev)
mutex_unlock(&bcm_device_lock);

dev_info(&pdev->dev, "%s device unregistered.\n", dev->name);

return 0;
}

static const struct hci_uart_proto bcm_proto = {
Expand Down Expand Up @@ -1487,7 +1485,7 @@ static const struct acpi_device_id bcm_acpi_match[] = {
{ "BCM2EA1" },
{ "BCM2EA2", (long)&bcm43430_device_data },
{ "BCM2EA3", (long)&bcm43430_device_data },
{ "BCM2EA4" },
{ "BCM2EA4", (long)&bcm43430_device_data }, /* bcm43455 */
{ "BCM2EA5" },
{ "BCM2EA6" },
{ "BCM2EA7" },
Expand All @@ -1509,7 +1507,7 @@ static const struct dev_pm_ops bcm_pm_ops = {

static struct platform_driver bcm_driver = {
.probe = bcm_probe,
.remove = bcm_remove,
.remove_new = bcm_remove,
.driver = {
.name = "hci_bcm",
.acpi_match_table = ACPI_PTR(bcm_acpi_match),
Expand Down
Loading