From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ni.piap.pl ([195.187.100.4]:59146 "EHLO ni.piap.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729721AbeLTFk6 (ORCPT ); Thu, 20 Dec 2018 00:40:58 -0500 From: khalasa@piap.pl (Krzysztof =?utf-8?Q?Ha=C5=82asa?=) To: Koen Vandeputte Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Bjorn Helgaas , Olof Johansson , Robin Leblon , Rob Herring , Russell King , Tim Harvey , stable@vger.kernel.org Subject: Re: [PATCH] arm: cns3xxx: fix writing to wrong PCI registers after alignment References: <20181218111743.25566-1-koen.vandeputte@ncentric.com> Date: Thu, 20 Dec 2018 06:34:48 +0100 In-Reply-To: <20181218111743.25566-1-koen.vandeputte@ncentric.com> (Koen Vandeputte's message of "Tue, 18 Dec 2018 12:17:43 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain Sender: stable-owner@vger.kernel.org List-ID: Koen Vandeputte writes: > --- a/arch/arm/mach-cns3xxx/pcie.c > +++ b/arch/arm/mach-cns3xxx/pcie.c > @@ -83,7 +83,7 @@ static void __iomem *cns3xxx_pci_map_bus(struct pci_bus *bus, > } else /* remote PCI bus */ > base = cnspci->cfg1_regs + ((busno & 0xf) << 20); > > - return base + (where & 0xffc) + (devfn << 12); > + return base + where + (devfn << 12); > } > > static int cns3xxx_pci_read_config(struct pci_bus *bus, unsigned int devfn, Acked-by: Krzysztof Halasa -- Krzysztof Halasa Industrial Research Institute for Automation and Measurements PIAP Al. Jerozolimskie 202, 02-486 Warsaw, Poland