From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 333CDC7618E for ; Thu, 20 Apr 2023 19:45:48 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A1EAD85F06; Thu, 20 Apr 2023 21:45:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="VxQRKaA8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E8E3686350; Thu, 20 Apr 2023 21:45:44 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C7BA885DFC for ; Thu, 20 Apr 2023 21:45:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7239964B95; Thu, 20 Apr 2023 19:45:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B93DCC433EF; Thu, 20 Apr 2023 19:45:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682019940; bh=WCAVI7g9ducxJww/K+ktaD3pllLCgTW8MeoeaYSo7ps=; h=From:To:Cc:Subject:Date:From; b=VxQRKaA87lurs+8QNTB/v0jS+ayk5cyrkf0nBmmR4i9rVkpOXfmpfbBlAA07tqU4J bhwCsSI9G65N0WattkQi+yor6CDIUOk4476coYarSBAQhHstfr9g0uSKhMoe1kItHj U44l8sSuMYmnkkMaLTAe8AyWHfzyww9JV4AOcKPuXQsWe+/jjKG2aqILbUcJT2C8Kr TVRZP1wClf+RPokWlWghW2M7CwtZOSLcZ9QHdQvbC/SY+9rFnGi5p8Rs5fcPbNhYod nijLeqcuOhJic4lFV8bcOG1yfPHaiOAEwI6x74/clI7jPNpDJbfgJa5rP+pOwLSvnM QcRZcAgioq6KQ== Received: by pali.im (Postfix) id 0716068A; Thu, 20 Apr 2023 21:45:38 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Heiko Schocher Cc: u-boot@lists.denx.de Subject: [PATCH u-boot 0/3] pci: Do not access Freescale PCI controllers BARs registers Date: Thu, 20 Apr 2023 21:44:22 +0200 Message-Id: <20230420194425.25224-1-pali@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Freescale PCI and PCIe controllers export in config space in BARs offset for BDF address 00:00.0 internal controller registers, instead of BAR registers. Avoid access to these registers to prevent overwriting them. Fixes autoconfiguration of PCI and PCIe devices on Freescale PowerPC platforms. Pali Rohár (3): pci: mpc85xx: Do not access PCI BARs registers of BDF address 00:00.0 pci: fsl: Do not access PCI BAR0 register of PCIe Root Port pci: auto: Remove PCI_CLASS_PROCESSOR_POWERPC autoconfig case drivers/pci/pci_auto.c | 4 ---- drivers/pci/pci_mpc85xx.c | 12 ++++++++++++ drivers/pci/pcie_fsl.c | 14 ++++++++++++++ 3 files changed, 26 insertions(+), 4 deletions(-) -- 2.20.1