mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
ath.git patches for v6.9
Only some minor cleanup in ath11k and ath12k. Adding Jeff as the maintainer for ath10k, ath11k and ath12k DT bindings. -----BEGIN PGP SIGNATURE----- iQFLBAABCgA1FiEEiBjanGPFTz4PRfLobhckVSbrbZsFAmXnWpcXHHF1aWNfa3Zh bG9AcXVpY2luYy5jb20ACgkQbhckVSbrbZvJIQf+M5wX6AR9MlPNO+pyOe+PDI6z WW+TKkkHfMyMBq7XwsdQK1rwJQTZazf0ltHJ0iUJPz4a4On48i7Nt0Q2YXGXFvYF B5OOXxeItJ4KIb0PaYl6WvlZhsUwV7splq9kCbrO5jpQichJoCeizoDUvPIcGFzu ShhHoi+J2t9SCd07dGAU1iYVk4+oRfhgtK3bwXOtLaBJFGlLWEKI7cwFIdIe8h6U gWBJeWMYLqyHQrGXbYjfWsh5BtRIodMBGlDDQ/fhYvs56Knvb3EEIYac+X9V//mq bqJu294tnUL2wmG6xnWCeEz19zlCUnxhrnv44qfi+IPIelNsT06/6o1rKDB2Kw== =hsOg -----END PGP SIGNATURE----- Merge tag 'ath-next-20240305' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath ath.git patches for v6.9 Only some minor cleanup in ath11k and ath12k. Adding Jeff as the maintainer for ath10k, ath11k and ath12k DT bindings.
This commit is contained in:
commit
f654e228ed
|
|
@ -8,6 +8,7 @@ title: Qualcomm Technologies ath10k wireless devices
|
|||
|
||||
maintainers:
|
||||
- Kalle Valo <kvalo@kernel.org>
|
||||
- Jeff Johnson <jjohnson@kernel.org>
|
||||
|
||||
description:
|
||||
Qualcomm Technologies, Inc. IEEE 802.11ac devices.
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ title: Qualcomm Technologies ath11k wireless devices (PCIe)
|
|||
|
||||
maintainers:
|
||||
- Kalle Valo <kvalo@kernel.org>
|
||||
- Jeff Johnson <jjohnson@kernel.org>
|
||||
|
||||
description: |
|
||||
Qualcomm Technologies IEEE 802.11ax PCIe devices
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ title: Qualcomm Technologies ath11k wireless devices
|
|||
|
||||
maintainers:
|
||||
- Kalle Valo <kvalo@kernel.org>
|
||||
- Jeff Johnson <jjohnson@kernel.org>
|
||||
|
||||
description: |
|
||||
These are dt entries for Qualcomm Technologies, Inc. IEEE 802.11ax
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
/*
|
||||
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/module.h>
|
||||
|
|
@ -1869,10 +1869,9 @@ static int ath11k_core_reconfigure_on_crash(struct ath11k_base *ab)
|
|||
|
||||
mutex_lock(&ab->core_lock);
|
||||
ath11k_thermal_unregister(ab);
|
||||
ath11k_hif_irq_disable(ab);
|
||||
ath11k_dp_pdev_free(ab);
|
||||
ath11k_spectral_deinit(ab);
|
||||
ath11k_hif_stop(ab);
|
||||
ath11k_ce_cleanup_pipes(ab);
|
||||
ath11k_wmi_detach(ab);
|
||||
ath11k_dp_pdev_reo_cleanup(ab);
|
||||
mutex_unlock(&ab->core_lock);
|
||||
|
|
@ -2127,6 +2126,9 @@ static void ath11k_core_reset(struct work_struct *work)
|
|||
time_left = wait_for_completion_timeout(&ab->recovery_start,
|
||||
ATH11K_RECOVER_START_TIMEOUT_HZ);
|
||||
|
||||
ath11k_hif_irq_disable(ab);
|
||||
ath11k_hif_ce_irq_disable(ab);
|
||||
|
||||
ath11k_hif_power_down(ab);
|
||||
ath11k_hif_power_up(ab);
|
||||
|
||||
|
|
|
|||
|
|
@ -20,35 +20,7 @@
|
|||
#define MHI_TIMEOUT_DEFAULT_MS 20000
|
||||
#define RDDM_DUMP_SIZE 0x420000
|
||||
|
||||
static struct mhi_channel_config ath11k_mhi_channels_qca6390[] = {
|
||||
{
|
||||
.num = 0,
|
||||
.name = "LOOPBACK",
|
||||
.num_elements = 32,
|
||||
.event_ring = 0,
|
||||
.dir = DMA_TO_DEVICE,
|
||||
.ee_mask = 0x4,
|
||||
.pollcfg = 0,
|
||||
.doorbell = MHI_DB_BRST_DISABLE,
|
||||
.lpm_notify = false,
|
||||
.offload_channel = false,
|
||||
.doorbell_mode_switch = false,
|
||||
.auto_queue = false,
|
||||
},
|
||||
{
|
||||
.num = 1,
|
||||
.name = "LOOPBACK",
|
||||
.num_elements = 32,
|
||||
.event_ring = 0,
|
||||
.dir = DMA_FROM_DEVICE,
|
||||
.ee_mask = 0x4,
|
||||
.pollcfg = 0,
|
||||
.doorbell = MHI_DB_BRST_DISABLE,
|
||||
.lpm_notify = false,
|
||||
.offload_channel = false,
|
||||
.doorbell_mode_switch = false,
|
||||
.auto_queue = false,
|
||||
},
|
||||
static const struct mhi_channel_config ath11k_mhi_channels_qca6390[] = {
|
||||
{
|
||||
.num = 20,
|
||||
.name = "IPCR",
|
||||
|
|
@ -102,46 +74,18 @@ static struct mhi_event_config ath11k_mhi_events_qca6390[] = {
|
|||
},
|
||||
};
|
||||
|
||||
static struct mhi_controller_config ath11k_mhi_config_qca6390 = {
|
||||
static const struct mhi_controller_config ath11k_mhi_config_qca6390 = {
|
||||
.max_channels = 128,
|
||||
.timeout_ms = 2000,
|
||||
.use_bounce_buf = false,
|
||||
.buf_len = 0,
|
||||
.buf_len = 8192,
|
||||
.num_channels = ARRAY_SIZE(ath11k_mhi_channels_qca6390),
|
||||
.ch_cfg = ath11k_mhi_channels_qca6390,
|
||||
.num_events = ARRAY_SIZE(ath11k_mhi_events_qca6390),
|
||||
.event_cfg = ath11k_mhi_events_qca6390,
|
||||
};
|
||||
|
||||
static struct mhi_channel_config ath11k_mhi_channels_qcn9074[] = {
|
||||
{
|
||||
.num = 0,
|
||||
.name = "LOOPBACK",
|
||||
.num_elements = 32,
|
||||
.event_ring = 1,
|
||||
.dir = DMA_TO_DEVICE,
|
||||
.ee_mask = 0x14,
|
||||
.pollcfg = 0,
|
||||
.doorbell = MHI_DB_BRST_DISABLE,
|
||||
.lpm_notify = false,
|
||||
.offload_channel = false,
|
||||
.doorbell_mode_switch = false,
|
||||
.auto_queue = false,
|
||||
},
|
||||
{
|
||||
.num = 1,
|
||||
.name = "LOOPBACK",
|
||||
.num_elements = 32,
|
||||
.event_ring = 1,
|
||||
.dir = DMA_FROM_DEVICE,
|
||||
.ee_mask = 0x14,
|
||||
.pollcfg = 0,
|
||||
.doorbell = MHI_DB_BRST_DISABLE,
|
||||
.lpm_notify = false,
|
||||
.offload_channel = false,
|
||||
.doorbell_mode_switch = false,
|
||||
.auto_queue = false,
|
||||
},
|
||||
static const struct mhi_channel_config ath11k_mhi_channels_qcn9074[] = {
|
||||
{
|
||||
.num = 20,
|
||||
.name = "IPCR",
|
||||
|
|
@ -195,7 +139,7 @@ static struct mhi_event_config ath11k_mhi_events_qcn9074[] = {
|
|||
},
|
||||
};
|
||||
|
||||
static struct mhi_controller_config ath11k_mhi_config_qcn9074 = {
|
||||
static const struct mhi_controller_config ath11k_mhi_config_qcn9074 = {
|
||||
.max_channels = 30,
|
||||
.timeout_ms = 10000,
|
||||
.use_bounce_buf = false,
|
||||
|
|
@ -384,7 +328,7 @@ int ath11k_mhi_register(struct ath11k_pci *ab_pci)
|
|||
{
|
||||
struct ath11k_base *ab = ab_pci->ab;
|
||||
struct mhi_controller *mhi_ctrl;
|
||||
struct mhi_controller_config *ath11k_mhi_config;
|
||||
const struct mhi_controller_config *ath11k_mhi_config;
|
||||
int ret;
|
||||
|
||||
mhi_ctrl = mhi_alloc_controller();
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
/*
|
||||
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/elf.h>
|
||||
|
|
@ -3249,7 +3249,8 @@ static void ath11k_qmi_driver_event_work(struct work_struct *work)
|
|||
case ATH11K_QMI_EVENT_FW_INIT_DONE:
|
||||
clear_bit(ATH11K_FLAG_QMI_FAIL, &ab->dev_flags);
|
||||
if (test_bit(ATH11K_FLAG_REGISTERED, &ab->dev_flags)) {
|
||||
ath11k_hal_dump_srng_stats(ab);
|
||||
if (ab->is_reset)
|
||||
ath11k_hal_dump_srng_stats(ab);
|
||||
queue_work(ab->workqueue, &ab->restart_work);
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
/*
|
||||
* Copyright (c) 2020 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <linux/device.h>
|
||||
|
|
@ -163,6 +163,9 @@ int ath11k_thermal_register(struct ath11k_base *ab)
|
|||
struct ath11k_pdev *pdev;
|
||||
int i, ret;
|
||||
|
||||
if (test_bit(ATH11K_FLAG_REGISTERED, &ab->dev_flags))
|
||||
return 0;
|
||||
|
||||
for (i = 0; i < ab->num_radios; i++) {
|
||||
pdev = &ab->pdevs[i];
|
||||
ar = pdev->ar;
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
/*
|
||||
* Copyright (c) 2018-2019 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
#include <linux/skbuff.h>
|
||||
#include <linux/ctype.h>
|
||||
|
|
@ -4857,6 +4857,7 @@ static void ath11k_wmi_free_dbring_caps(struct ath11k_base *ab)
|
|||
{
|
||||
kfree(ab->db_caps);
|
||||
ab->db_caps = NULL;
|
||||
ab->num_db_cap = 0;
|
||||
}
|
||||
|
||||
static int ath11k_wmi_tlv_dma_ring_caps(struct ath11k_base *ab,
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
// SPDX-License-Identifier: ISC
|
||||
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* SPDX-License-Identifier: ISC */
|
||||
/* SPDX-License-Identifier: BSD-3-Clause-Clear */
|
||||
/*
|
||||
* Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved..
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -6736,18 +6736,21 @@ static int ath12k_wmi_p2p_noa_event(struct ath12k_base *ab,
|
|||
"wmi tlv p2p noa vdev_id %i descriptors %u\n",
|
||||
vdev_id, le32_get_bits(noa->noa_attr, WMI_P2P_NOA_INFO_DESC_NUM));
|
||||
|
||||
rcu_read_lock();
|
||||
ar = ath12k_mac_get_ar_by_vdev_id(ab, vdev_id);
|
||||
if (!ar) {
|
||||
ath12k_warn(ab, "invalid vdev id %d in P2P NoA event\n",
|
||||
vdev_id);
|
||||
ret = -EINVAL;
|
||||
goto out;
|
||||
goto unlock;
|
||||
}
|
||||
|
||||
ath12k_p2p_noa_update_by_vdev_id(ar, vdev_id, noa);
|
||||
|
||||
ret = 0;
|
||||
|
||||
unlock:
|
||||
rcu_read_unlock();
|
||||
out:
|
||||
kfree(tb);
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user