Skip to content

AIC: net: Add aic8800m80x2p driver - #2218

Open
liliu-aic wants to merge 1 commit into
deepin-community:linux-6.6.yfrom
liliu-aic:linux-6.6.y
Open

liliu-aic wants to merge 1 commit into
deepin-community:linux-6.6.yfrom
liliu-aic:linux-6.6.y

Conversation

@liliu-aic

Copy link
Copy Markdown

No description provided.

Signed-off-by: liliu <liliu@aicsemi.com>

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, we are unable to review this pull request

The GitHub API does not allow us to fetch diffs exceeding 20000 lines

@deepin-ci-robot

Copy link
Copy Markdown

Hi @liliu-aic. Thanks for your PR. 😃

@deepin-ci-robot

Copy link
Copy Markdown

Hi @liliu-aic. Thanks for your PR.

I'm waiting for a deepin-community member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@deepin-ci-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign lanlanxiyiji for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

One or more issues must be addressed before approval.

9 open issues
What changed in this PR

Adds AIC8800M80X2P wireless-driver support files and integrates AIC devices into the kernel’s wireless configuration.

Changes:

  • Connect AIC configuration and build targets.
  • Add bus-host and transmission interfaces.
  • Add firmware, RF, steering, and diagnostic utilities.

Driver filenames below are relative to drivers/net/wireless/aic/aic8800_fdrv_m80x2p/.

File Description
drivers/​net/​wireless/​Makefile Updated as part of this pull request.
drivers/​net/​wireless/​Kconfig Updated as part of this pull request.
drivers/​net/​wireless/​aic/​Makefile Updated as part of this pull request.
drivers/​net/​wireless/​aic/​Kconfig Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​usb_host.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​usb_host.c Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​sdio_host.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​sdio_host.c Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_version.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_version_gen.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_v7.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_v7.c Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_utils.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_tx.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_testmode.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_testmode.c Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_tdls.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_strs.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_radar.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_prof.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_pci.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_pci.c Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_mu_group.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_msg_rx.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_mod_params.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_mesh.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_mesh.c Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_main.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_irqs.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_gki.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_fw_trace.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_fw_trace.c Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_dini.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_debugfs.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_cmds.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_cfgfile.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_cfgfile.c Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_bfmer.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​rwnx_bfmer.c Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​reg_ipc_app.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​reg_access.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​pcie_host.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​md5.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​md5.c Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​lmac_types.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​Kconfig Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​ipc_compat.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_usb.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_txrxif.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_tcp_ack.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_steering.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_steering.c Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_sdio.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_rx_prealloc.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_rx_prealloc.c Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_pcie.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_pcie_api.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_manager.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_debug.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_compat_8800dc.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_compat_8800dc.c Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_compat_8800d80.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_compat_8800d80.c Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_ch_follow.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_bt_init.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aicwf_bt_init.c Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aic_priv_cmd.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aic_bsp_export.h Updated as part of this pull request.
drivers/​net/​wireless/​aic/​aic8800_fdrv_m80x2p/​aic_br_ext.h Updated as part of this pull request.

Review effort: Balanced

#include "aicwf_rx_prealloc.h"

#ifdef CONFIG_PREALLOC_RX_SKB
struct aicwf_rx_buff_list aic_rx_buff_list;
u8_l i;

AICWFDBG(LOGSTEER, STEEER_STR"%s\n", __func__);
spin_lock_init(&rwnx_vif->bsteerpriv.lock);
Comment on lines +147 to +149
if (pci_enable_msi(pci_dev)) {
dev_err(&(pci_dev->dev), "pci_enable_msi failed\n");
goto out_msi;
// No more confirmations, so put back the used index at its initial value
env->txdesc_used_idx[queue_idx] = used_idx;
AICWFDBG(LOGERROR, "ERROR:No more confirmations\r\n");
//break;
@@ -0,0 +1,11 @@
# SPDX-License-Identifier: GPL-2.0-only
config AIC8800M80X2P_WLAN_SUPPORT
tristate "AIC8800M80X2P WiFi support"
aicbt_parse_config(rwnx_hw);
#endif

aicwf_pcie_tran(rwnx_hw->pcidev, (void *)BT_INIT_DONE_ADDR, &bt_init_st, 4, AIC_TRAN_EMB2DRV, 1);
Comment on lines +128 to +142
if (patch_info.info_len == 0) {
AICWFDBG(LOGERROR, "%s, aicbt_patch_info_unpack fail\n", __func__);
return -1;
}

AICWFDBG(LOGINFO, "addr_adid 0x%x, addr_patch 0x%x\n", patch_info.addr_adid, patch_info.addr_patch);

if (rwnx_plat_bin_fw_upload_2(rwnx_hw, patch_info.addr_adid, (char *)bt_patch_file->fw_adid))
return -1;

if (rwnx_plat_bin_fw_upload_2(rwnx_hw, patch_info.addr_patch, (char *)bt_patch_file->fw_patch))
return -1;

if (aicbt_ext_patch_data_load(rwnx_hw, &patch_info))
return -1;
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include "aicwf_rx_prealloc.h"
//txhdr->hw_hdr.status = data[1];
//printk("sdio_host_tx_cfm_handler, 0x%p\r\n", env->pthis);
//if (env->cb.send_data_cfm(env->pthis, host_id) != 0)
if (rwnx_txdatacfm(env->pthis, (void *)host_id) != 0) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants