Re: [PATCH v8 12/22] wifi: nxpwifi: introduce command and event handling infrastructure
From: Sascha Hauer
Date: Fri Dec 05 2025 - 02:11:21 EST
Hi Jeff,
On Fri, Dec 05, 2025 at 02:55:35PM +0800, Jeff Chen wrote:
> +
> + /* Check init command response */
> + if (adapter->hw_status == NXPWIFI_HW_STATUS_INITIALIZING) {
> + if (ret) {
> + nxpwifi_dbg(adapter, ERROR,
> + "%s: cmd %#x failed during\t"
> + "initialization\n", __func__, cmdresp_no);
> + nxpwifi_init_fw_complete(adapter);
> + return ret;
> + } else if (adapter->last_init_cmd == cmdresp_no) {
> + adapter->hw_status = NXPWIFI_HW_STATUS_INIT_DONE;
> + }
> + }
As said before, please drop this asynchronous initialization stuff.
A patch doing this for the mxiwiex driver is here:
https://lore.kernel.org/all/20241202-mwifiex-cleanup-1-v3-12-317a6ce0dd5b@xxxxxxxxxxxxxx/
It will apply nearly as-is to the nxpwifi driver and it's much easier to
do this before it hits mainline.
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |