]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: mvebu: Fix I/O space end address calculation
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 3 Aug 2018 14:38:44 +0000 (16:38 +0200)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 8 Aug 2018 14:50:04 +0000 (15:50 +0100)
commiteb0d8e669f1a12d7b3d4dfdbd72a0bbcfee49e26
treef288ce404127906f082f3b7fba713085106aee19
parenta151b26d8161d5cdf148278e36f80bc1e859b311
PCI: mvebu: Fix I/O space end address calculation

pcie->realio.end should be the address of last byte of the area,
therefore using resource_size() of another resource is not correct, we
must substract 1 to get the address of the last byte.

Fixes: 2c93de56bd02d ("PCI: mvebu: Adapt to the new device tree layout")
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/pci-mvebu.c