]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
PCI: rockchip: Fix negotiated lanes calculation
authorShawn Lin <shawn.lin@rock-chips.com>
Wed, 7 Dec 2016 21:05:59 +0000 (15:05 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:39:35 +0000 (11:39 +0100)
commit6e4bcf8539afce37430c4e56b1520535f0f5ea7a
tree0e034f180df967295898ead72d796eb78c1678ab
parent257349bedca317b10b25d489082bd32a38480aae
PCI: rockchip: Fix negotiated lanes calculation

commit 45e9320f3a4ef9588ee50a2eb1891c4bfdbb07df upstream.

The calculation of negotiated lanes is wrong: it should be shifted by
PCIE_CORE_PL_CONF_LANE_SHIFT, but it is shifted by
PCIE_CORE_PL_CONF_LANE_MASK instead.  Let's fix it.

Fixes: e77f847df54c ("PCI: rockchip: Add Rockchip PCIe controller support")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pci/host/pcie-rockchip.c