Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2fce1225 authored by Kumar Gala's avatar Kumar Gala
Browse files

[POWERPC] FSL: Access PCIe LTSSM register with correct size



The LTSSM register is actual 32-bits wide so we should be doing a
dword access.

Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 873553b3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -160,8 +160,8 @@ static void __init quirk_fsl_pcie_transparent(struct pci_dev *dev)

int __init fsl_pcie_check_link(struct pci_controller *hose)
{
	u16 val;
	early_read_config_word(hose, 0, 0, PCIE_LTSSM, &val);
	u32 val;
	early_read_config_dword(hose, 0, 0, PCIE_LTSSM, &val);
	if (val < PCIE_LTSSM_L0)
		return 1;
	return 0;