Loading drivers/pci/controller/pci-msm.c +12 −1 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ #define PCIE20_PARF_DBI_BASE_ADDR (0x350) #define PCIE20_PARF_SLV_ADDR_SPACE_SIZE (0x358) #define PCIE_GEN3_PRESET_DEFAULT (0x55555555) #define PCIE_GEN3_SPCIE_CAP (0x0154) #define PCIE_GEN3_GEN2_CTRL (0x080c) #define PCIE_GEN3_RELATED (0x0890) Loading Loading @@ -720,6 +721,7 @@ struct msm_pcie_dev_t { uint32_t phy_status_offset; uint32_t phy_status_bit; uint32_t phy_power_down_offset; uint32_t core_preset; uint32_t cpl_timeout; uint32_t current_bdf; uint32_t perst_delay_us_min; Loading Loading @@ -1377,6 +1379,8 @@ static void msm_pcie_show_status(struct msm_pcie_dev_t *dev) dev->phy_status_bit); PCIE_DBG_FS(dev, "phy_power_down_offset: 0x%x\n", dev->phy_power_down_offset); PCIE_DBG_FS(dev, "core_preset: 0x%x\n", dev->core_preset); PCIE_DBG_FS(dev, "cpl_timeout: 0x%x\n", dev->cpl_timeout); PCIE_DBG_FS(dev, "current_bdf: 0x%x\n", Loading Loading @@ -4093,7 +4097,7 @@ static int msm_pcie_link_train(struct msm_pcie_dev_t *dev) msm_pcie_write_reg_field(dev->dm_core, PCIE_GEN3_MISC_CONTROL, BIT(0), 1); msm_pcie_write_reg(dev->dm_core, PCIE_GEN3_SPCIE_CAP, 0x77777777); PCIE_GEN3_SPCIE_CAP, dev->core_preset); msm_pcie_write_reg_field(dev->dm_core, PCIE_GEN3_MISC_CONTROL, BIT(0), 0); Loading Loading @@ -6144,6 +6148,13 @@ static int msm_pcie_probe(struct platform_device *pdev) PCIE_DBG(pcie_dev, "RC%d: phy-power-down-offset: 0x%x.\n", pcie_dev->rc_idx, pcie_dev->phy_power_down_offset); pcie_dev->core_preset = PCIE_GEN3_PRESET_DEFAULT; of_property_read_u32(pdev->dev.of_node, "qcom,core-preset", &pcie_dev->core_preset); PCIE_DBG(pcie_dev, "RC%d: core-preset: 0x%x.\n", pcie_dev->rc_idx, pcie_dev->core_preset); of_property_read_u32(of_node, "qcom,cpl-timeout", &pcie_dev->cpl_timeout); PCIE_DBG(pcie_dev, "RC%d: cpl-timeout: 0x%x.\n", Loading Loading
drivers/pci/controller/pci-msm.c +12 −1 Original line number Diff line number Diff line Loading @@ -44,6 +44,7 @@ #define PCIE20_PARF_DBI_BASE_ADDR (0x350) #define PCIE20_PARF_SLV_ADDR_SPACE_SIZE (0x358) #define PCIE_GEN3_PRESET_DEFAULT (0x55555555) #define PCIE_GEN3_SPCIE_CAP (0x0154) #define PCIE_GEN3_GEN2_CTRL (0x080c) #define PCIE_GEN3_RELATED (0x0890) Loading Loading @@ -720,6 +721,7 @@ struct msm_pcie_dev_t { uint32_t phy_status_offset; uint32_t phy_status_bit; uint32_t phy_power_down_offset; uint32_t core_preset; uint32_t cpl_timeout; uint32_t current_bdf; uint32_t perst_delay_us_min; Loading Loading @@ -1377,6 +1379,8 @@ static void msm_pcie_show_status(struct msm_pcie_dev_t *dev) dev->phy_status_bit); PCIE_DBG_FS(dev, "phy_power_down_offset: 0x%x\n", dev->phy_power_down_offset); PCIE_DBG_FS(dev, "core_preset: 0x%x\n", dev->core_preset); PCIE_DBG_FS(dev, "cpl_timeout: 0x%x\n", dev->cpl_timeout); PCIE_DBG_FS(dev, "current_bdf: 0x%x\n", Loading Loading @@ -4093,7 +4097,7 @@ static int msm_pcie_link_train(struct msm_pcie_dev_t *dev) msm_pcie_write_reg_field(dev->dm_core, PCIE_GEN3_MISC_CONTROL, BIT(0), 1); msm_pcie_write_reg(dev->dm_core, PCIE_GEN3_SPCIE_CAP, 0x77777777); PCIE_GEN3_SPCIE_CAP, dev->core_preset); msm_pcie_write_reg_field(dev->dm_core, PCIE_GEN3_MISC_CONTROL, BIT(0), 0); Loading Loading @@ -6144,6 +6148,13 @@ static int msm_pcie_probe(struct platform_device *pdev) PCIE_DBG(pcie_dev, "RC%d: phy-power-down-offset: 0x%x.\n", pcie_dev->rc_idx, pcie_dev->phy_power_down_offset); pcie_dev->core_preset = PCIE_GEN3_PRESET_DEFAULT; of_property_read_u32(pdev->dev.of_node, "qcom,core-preset", &pcie_dev->core_preset); PCIE_DBG(pcie_dev, "RC%d: core-preset: 0x%x.\n", pcie_dev->rc_idx, pcie_dev->core_preset); of_property_read_u32(of_node, "qcom,cpl-timeout", &pcie_dev->cpl_timeout); PCIE_DBG(pcie_dev, "RC%d: cpl-timeout: 0x%x.\n", Loading