Skip to content

Commit

Permalink
rpardini: config: rk35xx kernel patches: fixes pci/nvme rk_pcie_link_…
Browse files Browse the repository at this point in the history
  • Loading branch information
rpardini committed Sep 20, 2024
1 parent b2db8e8 commit 0e0ad17
Showing 1 changed file with 26 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: amazingfate <[email protected]>
Date: Fri, 20 Sep 2024 01:47:53 +0800
Subject: PCI: rockchip: use conditions from mainline for rk_pcie_link_up

---
drivers/pci/controller/dwc/pcie-dw-rockchip.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/pci/controller/dwc/pcie-dw-rockchip.c b/drivers/pci/controller/dwc/pcie-dw-rockchip.c
index 111111111111..222222222222 100644
--- a/drivers/pci/controller/dwc/pcie-dw-rockchip.c
+++ b/drivers/pci/controller/dwc/pcie-dw-rockchip.c
@@ -280,7 +280,8 @@ static int rk_pcie_link_up(struct dw_pcie *pci)
u32 val;

val = rk_pcie_readl_apb(rk_pcie, PCIE_CLIENT_LTSSM_STATUS);
- if ((val & (RDLH_LINKUP | SMLH_LINKUP)) == 0x30000)
+ if ((val & (RDLH_LINKUP | SMLH_LINKUP)) == 0x30000 &&
+ (val & GENMASK(5, 0)) == 0x11)
return 1;

return 0;
--
Armbian

0 comments on commit 0e0ad17

Please sign in to comment.