]> git.karo-electronics.de Git - linux-beck.git/commit
PCI: designware: Fix PORT_LOGIC_LINK_WIDTH_MASK
authorZhou Wang <wangzhou1@hisilicon.com>
Wed, 26 Aug 2015 03:17:34 +0000 (11:17 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 18 Sep 2015 18:54:21 +0000 (13:54 -0500)
commited8b472df44af6dc4cb18e828dc9bb2d57f14b9e
tree37ecaf3c7813f9c758be6430e0f82a0eb31a12d9
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
PCI: designware: Fix PORT_LOGIC_LINK_WIDTH_MASK

The value under PORT_LOGIC_LINK_WIDTH_MASK is 0x1, 0x2, 0x4, 0x8.  In IP
v4.2, bits [16:8] are defined for NUM_OF_LANES.  But in IP v4.4, bits[12:8]
are defined for NUM_OF_LANES, bits [16:13] are for other usages (bit 16 is
AUTO_LANE_FLIP_CTRL_EN, bits [15:13] are PRE_DET_LANE).

As there is no conflict about NUM_OF_LANES between v4.2 and v4.4, change
the mask value to avoid future problems.

Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Jingoo Han <jingoohan1@gmail.com>
drivers/pci/host/pcie-designware.c