From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 981852E9730; Tue, 17 Jun 2025 15:36:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750174605; cv=none; b=PS/Nxol1aMjlDE/o/S4tC8d0BykEb2zqCZXMNgoayLXAiUW4dBv04ynotlpP6J1bZVLp2Pt/1YvfqOv7PanGwiW1ubJrzlpw9fMuZQFCnO0vHAkIAMxn93/gwxempOTleSEvO9cGg3A1JHVdNTubWYiX53yh02/rNYkKMBG4LY4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750174605; c=relaxed/simple; bh=Wxz7aJbD+pcQ5erav0cvp1RmuAlJbpnFCW3h+ynjdfo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mzxn38TEnsUnM0ZZZFLcjC98aBLSVYWbZFW2eLuVgYZeqjLMyq3BkQwEGFOqfUTWFX/Q7j1Aq6hWpQbdZE9hFht3PTRX2qWgyU6KXCMHDYXgi5u/+BhzK36+4JMhVq+pkqGg7PIp/wcGHyqnndXvukQKV8h3UVKMcReQ+7vPJKo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jvSffgFa; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="jvSffgFa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2177EC4CEE3; Tue, 17 Jun 2025 15:36:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750174605; bh=Wxz7aJbD+pcQ5erav0cvp1RmuAlJbpnFCW3h+ynjdfo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jvSffgFa3HpEpE+NQzG+kZ+PsUgrVV2HGtJ+8Abw0KhPYfsfMd56m4372CP+ByH+G pgV7B25LBpOxE1UNSJk6NFrVoWi8Zc1elpqLRblZ29jx21ZBByPoGoW47CZISxhfGu tXRvTFH4aOs7lFCC6IuET6kTTIONnK97CnKPDSUI= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ping-Ke Shih , Dmitry Antipov , Sasha Levin Subject: [PATCH 6.6 093/356] wifi: rtw88: do not ignore hardware read error during DPK Date: Tue, 17 Jun 2025 17:23:28 +0200 Message-ID: <20250617152341.959106600@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250617152338.212798615@linuxfoundation.org> References: <20250617152338.212798615@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Dmitry Antipov [ Upstream commit 20d3c19bd8f9b498173c198eadf54580c8caa336 ] In 'rtw8822c_dpk_cal_coef1()', do not ignore error returned by 'check_hw_ready()' but issue a warning to denote possible DPK issue. Compile tested only. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 5227c2ee453d ("rtw88: 8822c: add SW DPK support") Suggested-by: Ping-Ke Shih Signed-off-by: Dmitry Antipov Signed-off-by: Ping-Ke Shih Link: https://patch.msgid.link/20250415090720.194048-1-dmantipov@yandex.ru Signed-off-by: Sasha Levin --- drivers/net/wireless/realtek/rtw88/rtw8822c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtw88/rtw8822c.c b/drivers/net/wireless/realtek/rtw88/rtw8822c.c index 3fe5c70ce731b..f9b2527fbeee5 100644 --- a/drivers/net/wireless/realtek/rtw88/rtw8822c.c +++ b/drivers/net/wireless/realtek/rtw88/rtw8822c.c @@ -3991,7 +3991,8 @@ static void rtw8822c_dpk_cal_coef1(struct rtw_dev *rtwdev) rtw_write32(rtwdev, REG_NCTL0, 0x00001148); rtw_write32(rtwdev, REG_NCTL0, 0x00001149); - check_hw_ready(rtwdev, 0x2d9c, MASKBYTE0, 0x55); + if (!check_hw_ready(rtwdev, 0x2d9c, MASKBYTE0, 0x55)) + rtw_warn(rtwdev, "DPK stuck, performance may be suboptimal"); rtw_write8(rtwdev, 0x1b10, 0x0); rtw_write32_mask(rtwdev, REG_NCTL0, BIT_SUBPAGE, 0x0000000c); -- 2.39.5