From nobody Fri Dec 19 16:36:00 2025 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7E4CC13AD13 for ; Mon, 26 Aug 2024 07:27:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724657236; cv=none; b=EU7q/kuMFbx1TqQkJs5wHAZ2A5mwwjvbeEirHeAtYz6yd1yoA8LocaMq2E6aXT0pGXZqgQNV9EsU0bsX5oKrUVIr/4UxSgZ04a91l4lv2aETJtd7BONzyaiSHbfoTQ++ZJhu/PCHY2VIA8Wqdn2O+S57GwqUlCaOP6e5tKNCZYc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724657236; c=relaxed/simple; bh=NtahUHX9CE0RzYfvV3yhtc/blBQY9V1UzWIWs/MxwLw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YPWslLz/k4HKhXcRLTmzLiVOxuiOvWF2WODZO+6A8RClLblvWysMNdgibKeusve7qUS1y4bQPIsFkOBvaLKrHKH5mwYudmqxZujOyzrlYEDJAw4XsBFd7fi2oGpWFOc6Uxx58sHmTHybYG3ZIBWdhpEHjLmkGlc1LuQ0XcVomPg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1siU7p-0005HS-SJ; Mon, 26 Aug 2024 09:26:53 +0200 Received: from [2a0a:edc0:0:1101:1d::28] (helo=dude02.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1siU7p-0038Ev-6C; Mon, 26 Aug 2024 09:26:53 +0200 Received: from localhost ([::1] helo=dude02.red.stw.pengutronix.de) by dude02.red.stw.pengutronix.de with esmtp (Exim 4.96) (envelope-from ) id 1siU7p-000hSF-0G; Mon, 26 Aug 2024 09:26:53 +0200 From: Sascha Hauer To: Francesco Dolcini Cc: Calvin Owens , Brian Norris , Kalle Valo , David Lin , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de, Sascha Hauer Subject: [PATCH 3/4] wifi: mwifiex: wait longer for SDIO card status Date: Mon, 26 Aug 2024 09:26:47 +0200 Message-Id: <20240826072648.167004-4-s.hauer@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240826072648.167004-1-s.hauer@pengutronix.de> References: <20240826072648.167004-1-s.hauer@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: s.hauer@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The IW61x needs longer than the currently used MAX_POLL_TRIES for some operations. Increase the value to 10000 * 10us =3D 100000us as done in the downstream driver as well. Signed-off-by: Sascha Hauer --- 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/wire= less/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; =20 - for (tries =3D 0; tries < MAX_POLL_TRIES; tries++) { + for (tries =3D 0; tries < 10000; tries++) { if (mwifiex_read_reg(adapter, card->reg->poll_reg, &cs)) break; else if ((cs & bits) =3D=3D bits) --=20 2.39.2