]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Fix regression on PCI link speed
authorKleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
Fri, 17 Jan 2014 13:56:51 +0000 (11:56 -0200)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 17 Feb 2014 00:19:34 +0000 (11:19 +1100)
commit24a69a603c8a184c3d41827ca1a36eadadb66de2
tree8ddd545c500e1837a941fa36da95beb15f41a790
parente8778b3eff1e7bf4e7efbb2f6bae45d504e5867c
powerpc/pseries: Fix regression on PCI link speed

Commit b9aa576 (powerpc/pseries: Fix PCIE link speed endian issue)
introduced a regression on the PCI link speed detection using the
device-tree property. The ibm,pcie-link-speed-stats property is composed
of two 32-bit integers, the first one being the maxinum link speed and
the second the current link speed. The changes introduced by the
aforementioned commit are considering just the first integer.

Fix this issue by changing how the property is accessed, using the
helper functions to properly access the array of values. The explicit
byte swapping is not needed anymore here, since it's done by the helper
functions.

Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/pci.c