Devicetree
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Madhavan Ganesan" <madhavan.ganesan@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH ath-next v4 14/14] wifi: ath12k: add Wi-Fi 8 PCI driver scaffolding for QCN9575
Date: Tue, 24 Nov 2026 16:56:33 +0000	[thread overview]
Message-ID: <sashiko-outbox-231627@kernel.org> (raw)
In-Reply-To: <20261124-wifi8_qcn9575_bringup-v4-14-1f5b87ece6a3@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [High] wifi: ath12k: ath12k_wifi8_pci_init() fails due to NULL
  arch_init/arch_deinit
--

commit ca6bfb87b9d6ad76af31eb7c52a0bf5c4357ce9c
Author: Madhavan Ganesan <madhavan.ganesan@oss.qualcomm.com>

wifi: ath12k: add Wi-Fi 8 PCI driver scaffolding for QCN9575

This commit adds Wi-Fi 8 PCI window register definitions, the QCN9575
probe callback, and PCI driver registration in ath12k_wifi8_pci_init().

> diff --git a/drivers/net/wireless/ath/ath12k/wifi8/pci.c b/drivers/net/wireless/ath/ath12k/wifi8/pci.c
> index 3975081d167b8..fd0489f8333f4 100644
> --- a/drivers/net/wireless/ath/ath12k/wifi8/pci.c
> +++ b/drivers/net/wireless/ath/ath12k/wifi8/pci.c
> @@ -5,14 +5,101 @@

[ ... ]

> +static struct ath12k_pci_driver ath12k_wifi8_pci_driver = {
> +	.name = "ath12k_wifi8_pci",
> +	.id_table = ath12k_wifi8_pci_id_table,
> +	.ops.probe = ath12k_wifi8_pci_probe,
> +	.reg_base = &ath12k_wifi8_reg_base,
> +};
> +
>  int ath12k_wifi8_pci_init(void)
>  {
> -	/* Wi-Fi 8 PCI driver registration will be added in follow-up patches. */
> +	int ret;
> +
> +	ret = ath12k_pci_register_driver(ATH12K_DEVICE_FAMILY_WIFI8,
> +					 &ath12k_wifi8_pci_driver);
> +	if (ret) {
> +		pr_err("Failed to register ath12k Wi-Fi 8 driver: %d\n", ret);
> +		return ret;
> +	}
> +
>  	return 0;
>  }

[Severity: High]
Does ath12k_wifi8_pci_init() always fail with -EINVAL because
ath12k_wifi8_pci_driver leaves .ops.arch_init and .ops.arch_deinit NULL?

drivers/net/wireless/ath/ath12k/pci.c:ath12k_pci_register_driver() {
    ...
	if (!driver || !driver->ops.probe ||
	    !driver->ops.arch_init || !driver->ops.arch_deinit)
		return -EINVAL;
    ...
}

Because ath12k_wifi8_init() calls ath12k_wifi8_pci_init() during module
initialization, loading or initializing ath12k_wifi8 will fail on every
boot or modprobe even without QCN9575 hardware present.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261124-wifi8_qcn9575_bringup-v4-0-1f5b87ece6a3@oss.qualcomm.com?part=14

  reply	other threads:[~2026-11-24 16:56 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 16:43 [PATCH ath-next v4 00/14] wifi: ath12k: add initial Wi-Fi 8 support for QCN9575 Madhavan Ganesan
2026-11-24 16:43 ` [PATCH ath-next v4 01/14] wifi: ath12k: refactor PCI window selection to per-device layout Madhavan Ganesan
2026-11-24 16:43 ` [PATCH ath-next v4 02/14] wifi: ath12k: add extended QMI WLAN cfg for CE and service pipes Madhavan Ganesan
2026-11-24 16:43 ` [PATCH ath-next v4 03/14] wifi: ath12k: add QMI support for extended firmware binary download Madhavan Ganesan
2026-11-24 16:58   ` sashiko-bot
2026-11-24 16:43 ` [PATCH ath-next v4 04/14] wifi: ath12k: add Wi-Fi 8 directory and base module scaffolding Madhavan Ganesan
2026-11-24 16:43 ` [PATCH ath-next v4 05/14] wifi: ath12k: add initial Wi-Fi 8 hw params and init helper for QCN9575 Madhavan Ganesan
2026-11-24 16:43 ` [PATCH ath-next v4 06/14] wifi: ath12k: add Wi-Fi 8 HAL register table and hal init hook " Madhavan Ganesan
2026-11-24 16:43 ` [PATCH ath-next v4 07/14] wifi: ath12k: add Wi-Fi 8 HAL ops and descriptor definitions " Madhavan Ganesan
2026-11-24 16:53   ` sashiko-bot
2026-11-24 16:43 ` [PATCH ath-next v4 08/14] wifi: ath12k: add unified firmware image support " Madhavan Ganesan
2026-11-24 16:43 ` [PATCH ath-next v4 09/14] wifi: ath12k: add Wi-Fi 8 MHI config " Madhavan Ganesan
2026-11-24 16:43 ` [PATCH ath-next v4 10/14] wifi: ath12k: add Wi-Fi 8 CE config and service pipe map " Madhavan Ganesan
2026-11-24 16:43 ` [PATCH ath-next v4 11/14] wifi: ath12k: add Wi-Fi 8 WMI init " Madhavan Ganesan
2026-11-24 16:43 ` [PATCH ath-next v4 12/14] wifi: ath12k: add Wi-Fi 8 hw ops " Madhavan Ganesan
2026-11-24 16:43 ` [PATCH ath-next v4 13/14] wifi: ath12k: add and hook Wi-Fi 8 mac80211 ops skeleton " Madhavan Ganesan
2026-11-24 17:06   ` sashiko-bot
2026-11-24 16:43 ` [PATCH ath-next v4 14/14] wifi: ath12k: add Wi-Fi 8 PCI driver scaffolding " Madhavan Ganesan
2026-11-24 16:56   ` sashiko-bot [this message]
2026-11-24 17:10 ` [PATCH ath-next v4 00/14] wifi: ath12k: add initial Wi-Fi 8 support " Vasanthakumar Thiagarajan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-231627@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=madhavan.ganesan@oss.qualcomm.com \
    --cc=robh@kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox