summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorKarl Mehltretter <kmehltretter@gmail.com>2026-10-03 21:22:56 +0200
committerJeff Chen <jeff.chen_1@nxp.com>2026-10-14 14:32:01 +0800
commitf86bc8a7421defdff701addfb66b286c13abf024 (patch)
tree4ee9b01bab220f3e0355cbbc56e67e643f8678f2 /drivers
parentcd026e68fdbf88b9cc522b76c7a9d92c9a41f709 (diff)
wifi: nxpwifi: return timeout error from nxpwifi_sdio_poll_card_status()
nxpwifi_sdio_poll_card_status() returns the result of the last register read when polling times out. If the final register read succeeds, the timeout is incorrectly reported as success. Return -ETIMEDOUT when polling runs out of retries. Fixes: 73b01e57ed3e ("wifi: nxp: add nxpwifi driver for IW61x") Assisted-by: LLM Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com> Signed-off-by: Jeff Chen <jeff.chen_1@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/nxp/nxpwifi/sdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/nxp/nxpwifi/sdio.c b/drivers/net/wireless/nxp/nxpwifi/sdio.c
index f4de494bf2f2..010f78270580 100644
--- a/drivers/net/wireless/nxp/nxpwifi/sdio.c
+++ b/drivers/net/wireless/nxp/nxpwifi/sdio.c
@@ -680,7 +680,7 @@ nxpwifi_sdio_poll_card_status(struct nxpwifi_adapter *adapter, u8 bits)
nxpwifi_dbg(adapter, ERROR, "poll card status failed, tries = %d\n", tries);
- return ret;
+ return ret ?: -ETIMEDOUT;
}
/* Disable SDIO host interrupt and release IRQ. */