[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20240826072648.167004-4-s.hauer@pengutronix.de>
Date: Mon, 26 Aug 2024 09:26:47 +0200
From: Sascha Hauer <s.hauer@...gutronix.de>
To: Francesco Dolcini <francesco@...cini.it>
Cc: Calvin Owens <calvin@...nvd.org>,
Brian Norris <briannorris@...omium.org>,
Kalle Valo <kvalo@...nel.org>,
David Lin <yu-hao.lin@....com>,
linux-wireless@...r.kernel.org,
linux-kernel@...r.kernel.org,
kernel@...gutronix.de,
Sascha Hauer <s.hauer@...gutronix.de>
Subject: [PATCH 3/4] wifi: mwifiex: wait longer for SDIO card status
The IW61x needs longer than the currently used MAX_POLL_TRIES for some
operations. Increase the value to 10000 * 10us = 100000us as done in the
downstream driver as well.
Signed-off-by: Sascha Hauer <s.hauer@...gutronix.de>
---
drivers/net/wireless/marvell/mwifiex/sdio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/marvell/mwifiex/sdio.c b/drivers/net/wireless/marvell/mwifiex/sdio.c
index 490ffd981164d..cbcb5674b8036 100644
--- a/drivers/net/wireless/marvell/mwifiex/sdio.c
+++ b/drivers/net/wireless/marvell/mwifiex/sdio.c
@@ -1265,7 +1265,7 @@ mwifiex_sdio_poll_card_status(struct mwifiex_adapter *adapter, u8 bits)
u32 tries;
u8 cs;
- for (tries = 0; tries < MAX_POLL_TRIES; tries++) {
+ for (tries = 0; tries < 10000; tries++) {
if (mwifiex_read_reg(adapter, card->reg->poll_reg, &cs))
break;
else if ((cs & bits) == bits)
--
2.39.2
Powered by blists - more mailing lists