Skip to content

Commit bcc9a4a

Browse files
shawn1221bjorn-helgaas
authored andcommitted
PCI: dwc: Fix wrong PORT_LOGIC_LTSSM_STATE_MASK definition
As per DesignWare Cores PCI Express Controller Databook, section 5.50, SII: Debug Signals, cxpl_debug_info[63:0]: [5:0] smlh_ltssm_state: LTSSM current state. Encoding is same as the dedicated smlh_ltssm_state output. The mask should be 6 bits, from 0 to 5. Hence, fix the mask definition. Fixes: 23fe5bd ("PCI: keystone: Cleanup ks_pcie_link_up()") Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com> [mani: reworded description] Signed-off-by: Manivannan Sadhasivam <mani@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Link: https://patch.msgid.link/1763122140-203068-1-git-send-email-shawn.lin@rock-chips.com
1 parent 3a86608 commit bcc9a4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pci/controller/dwc/pcie-designware.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
#define PORT_LANE_SKEW_INSERT_MASK GENMASK(23, 0)
9898

9999
#define PCIE_PORT_DEBUG0 0x728
100-
#define PORT_LOGIC_LTSSM_STATE_MASK 0x1f
100+
#define PORT_LOGIC_LTSSM_STATE_MASK 0x3f
101101
#define PORT_LOGIC_LTSSM_STATE_L0 0x11
102102
#define PCIE_PORT_DEBUG1 0x72C
103103
#define PCIE_PORT_DEBUG1_LINK_UP BIT(4)

0 commit comments

Comments
 (0)