]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
phy: airoha: Fix REG_PCIE_PMA_TX_RESET config in airoha_pcie_phy_init_csr_2l()
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 18 Sep 2024 13:32:53 +0000 (15:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:53:55 +0000 (13:53 +0100)
[ Upstream commit f9c5d6369d3e8e36b7beb15e86b1ef0911ace85f ]

Fix typos configuring REG_PCIE_PMA_TX_RESET register in
airoha_pcie_phy_init_csr_2l routine for lane0 and lane1

Fixes: d7d2818b9383 ("phy: airoha: Add PCIe PHY driver for EN7581 SoC.")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://lore.kernel.org/r/20240918-airoha-en7581-phy-fixes-v1-2-8291729a87f8@kernel.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/phy-airoha-pcie.c

index 3113be0a0e5b6266f327be79aa9b198c67dd251d..3e5f49d9942a6b37d7b8aab2d70ddf1bb3a1ac94 100644 (file)
@@ -468,9 +468,9 @@ static void airoha_pcie_phy_init_csr_2l(struct airoha_pcie_phy *pcie_phy)
                                 PCIE_SW_XFI_RXPCS_RST | PCIE_SW_REF_RST |
                                 PCIE_SW_RX_RST);
        airoha_phy_pma0_set_bits(pcie_phy, REG_PCIE_PMA_TX_RESET,
-                                PCIE_TX_TOP_RST | REG_PCIE_PMA_TX_RESET);
+                                PCIE_TX_TOP_RST | PCIE_TX_CAL_RST);
        airoha_phy_pma1_set_bits(pcie_phy, REG_PCIE_PMA_TX_RESET,
-                                PCIE_TX_TOP_RST | REG_PCIE_PMA_TX_RESET);
+                                PCIE_TX_TOP_RST | PCIE_TX_CAL_RST);
 }
 
 static void airoha_pcie_phy_init_rx(struct airoha_pcie_phy *pcie_phy)