]> 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)
commite4974478f3c6e852394d631d3e37d2c1faec7bce
treef288ce404127906f082f3b7fba713085106aee19
parent8a9ecf8354f768dcbe3ff068bf57d115269ec7e9
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: d40d1044cf9d6 ("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