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 CD504CA5A; Tue, 26 Aug 2025 12:59:57 +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=1756213197; cv=none; b=iFoHlZ+cJ+FiBJSzzjO9qESQMGTFldA9dPGQfKNpaPrSPLpO47uxMXsYRuMgAIHSRj+rloCRgWyI54e3uWtznLfUcq2Lf2DJEiX/T3YYAHTVwkgK4aBW6cv5VxNB3OAOqAGLv0UcaQihX3eJy9S+IDzQjcosCAcNyGobBXqPAmQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756213197; c=relaxed/simple; bh=U0W1/f83JiC2po/QrTN/idoO96LplUqtiQtl+Lal7cE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=QtyVXr4h6jpseybodD7S8aSKwje3sfoM50SBNBv0gwSBUeGYlQPwU42wnrk98Z7HwCMVxBUN0iIX1A1GCqkKqso03TSNjWLFHcWEcuRvCHe/cdxEF+xfccxFIvJ7abqaPumE4g4rnbR1PlJv6BsHPHkwl+yWKDcB8JWrbhtnVf4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qC/N4K7B; 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="qC/N4K7B" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B929C4CEF1; Tue, 26 Aug 2025 12:59:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1756213197; bh=U0W1/f83JiC2po/QrTN/idoO96LplUqtiQtl+Lal7cE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qC/N4K7Bw1mFMArLxQZ9i51eJMCTntd+Dr85+wuQS2IFBtXHgSIaC9f/FHfPo74I5 MwfWbR846iRBsheuRRAFQ+bp3i1a8cKJJ+lnl1moPm+BT0vDd1+8HSKDh8XzKkMzYn c0Pn2EK34U7yZTWKj3nZCZCuoEcIe2OOR7qbkRWg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Neil Armstrong , Geraldo Nascimento , Vinod Koul , Sasha Levin Subject: [PATCH 6.6 226/587] phy: rockchip-pcie: Properly disable TEST_WRITE strobe signal Date: Tue, 26 Aug 2025 13:06:15 +0200 Message-ID: <20250826110958.684501034@linuxfoundation.org> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250826110952.942403671@linuxfoundation.org> References: <20250826110952.942403671@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: Geraldo Nascimento [ Upstream commit 25facbabc3fc33c794ad09d73f73268c0f8cbc7d ] pcie_conf is used to touch TEST_WRITE strobe signal. This signal should be enabled, a little time waited, and then disabled. Current code clearly was copy-pasted and never disables the strobe signal. Adjust the define. While at it, remove PHY_CFG_RD_MASK which has been unused since 64cdc0360811 ("phy: rockchip-pcie: remove unused phy_rd_cfg function"). Reviewed-by: Neil Armstrong Signed-off-by: Geraldo Nascimento Link: https://lore.kernel.org/r/d514d5d5627680caafa8b7548cbdfee4307f5440.1751322015.git.geraldogabriel@gmail.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/phy/rockchip/phy-rockchip-pcie.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/phy/rockchip/phy-rockchip-pcie.c b/drivers/phy/rockchip/phy-rockchip-pcie.c index 8234b83fdd88..cbf3c140a138 100644 --- a/drivers/phy/rockchip/phy-rockchip-pcie.c +++ b/drivers/phy/rockchip/phy-rockchip-pcie.c @@ -31,9 +31,8 @@ #define PHY_CFG_ADDR_SHIFT 1 #define PHY_CFG_DATA_MASK 0xf #define PHY_CFG_ADDR_MASK 0x3f -#define PHY_CFG_RD_MASK 0x3ff #define PHY_CFG_WR_ENABLE 1 -#define PHY_CFG_WR_DISABLE 1 +#define PHY_CFG_WR_DISABLE 0 #define PHY_CFG_WR_SHIFT 0 #define PHY_CFG_WR_MASK 1 #define PHY_CFG_PLL_LOCK 0x10 -- 2.39.5