Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PCI: tegra194: Remove unnecessary MSI enable reg save and restore

The integrated MSI Receiver enable register is always initialized in
dw_pcie_setup_rc() which is also called in resume code path, so we
don't need to save/restore the enable register during suspend/resume.

Link: https://lore.kernel.org/r/20211226074910.2722-1-jszhang@kernel.org
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Vidya Sagar <vidyas@nvidia.com>

authored by

Jisheng Zhang and committed by
Lorenzo Pieralisi
571dda6c 88557685

-9
-9
drivers/pci/controller/dwc/pcie-tegra194.c
··· 186 186 #define N_FTS_VAL 52 187 187 #define FTS_VAL 52 188 188 189 - #define PORT_LOGIC_MSI_CTRL_INT_0_EN 0x828 190 - 191 189 #define GEN3_EQ_CONTROL_OFF 0x8a8 192 190 #define GEN3_EQ_CONTROL_OFF_PSET_REQ_VEC_SHIFT 8 193 191 #define GEN3_EQ_CONTROL_OFF_PSET_REQ_VEC_MASK GENMASK(23, 8) ··· 2187 2189 if (!pcie->link_state) 2188 2190 return 0; 2189 2191 2190 - /* Save MSI interrupt vector */ 2191 - pcie->msi_ctrl_int = dw_pcie_readl_dbi(&pcie->pci, 2192 - PORT_LOGIC_MSI_CTRL_INT_0_EN); 2193 2192 tegra_pcie_downstream_dev_to_D0(pcie); 2194 2193 tegra194_pcie_pme_turnoff(pcie); 2195 2194 tegra_pcie_unconfig_controller(pcie); ··· 2217 2222 ret = tegra194_pcie_start_link(&pcie->pci); 2218 2223 if (ret < 0) 2219 2224 goto fail_host_init; 2220 - 2221 - /* Restore MSI interrupt vector */ 2222 - dw_pcie_writel_dbi(&pcie->pci, PORT_LOGIC_MSI_CTRL_INT_0_EN, 2223 - pcie->msi_ctrl_int); 2224 2225 2225 2226 return 0; 2226 2227