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 D29FAC77B6E for ; Thu, 13 Apr 2023 20:44:30 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 56E4F85D13; Thu, 13 Apr 2023 22:44:20 +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="sOAbiJuK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 631BA85C96; Thu, 13 Apr 2023 22:44:13 +0200 (CEST) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (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 1D8CB85CB1 for ; Thu, 13 Apr 2023 22:44:08 +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 B98226154E; Thu, 13 Apr 2023 20:44:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3973C433D2; Thu, 13 Apr 2023 20:44:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681418645; bh=StHiOLKD5azsbAJAJOmOwv9DbT2aCdZ1M6/yXA8HK3g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sOAbiJuKDzxrhFNMX9tsBFfAk9LvUPaH+bw83TdkET6gjD0V2/IQgV5PKXYag1qTs zSTZhPX4jDHVI75YEMp5aWVm8aHJa7dWPm0TFtWm1HV0aXtT8v/fxOeLtQmP8Ufd+P ZrFofXf7Xv/HzWeqoH7Pj7GNy/3L09BwfJEHk3x/FiY461k0wHAyBuOr8MxNIrKlnf zUDXTmdFG2+zszpVcySCRm7M27Izz8nkjWNqmjoHpQIot3P+8JnZPys0IjYuzTk2SV 4XoTRZKL8p2vrbGMbZpeGPIA5QcGfAJVNtj3XExZ3/iwx8InrOmk+CDXiqBz0q6usj vIN2BnPaDir4A== Received: by pali.im (Postfix) id 57AA1CC2; Thu, 13 Apr 2023 22:44:03 +0200 (CEST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: Heiko Schocher Cc: u-boot@lists.denx.de Subject: [PATCH u-boot 1/3] pci: mpc85xx: Add missing sync() after writing to PCI config space Date: Thu, 13 Apr 2023 22:41:44 +0200 Message-Id: <20230413204146.9318-2-pali@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20230413204146.9318-1-pali@kernel.org> References: <20230413204146.9318-1-pali@kernel.org> 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 On PowerPC we should use barrier after store operation to HW register. Signed-off-by: Pali Rohár --- drivers/pci/pci_mpc85xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pci/pci_mpc85xx.c b/drivers/pci/pci_mpc85xx.c index 8a81a74067e9..23f14db83018 100644 --- a/drivers/pci/pci_mpc85xx.c +++ b/drivers/pci/pci_mpc85xx.c @@ -41,6 +41,7 @@ static int mpc85xx_pci_dm_write_config(struct udevice *dev, pci_dev_t bdf, out_be32(priv->cfg_addr, addr); sync(); out_le32(priv->cfg_data, pci_conv_size_to_32(0, value, offset, size)); + sync(); return 0; } -- 2.20.1