Message ID | 20240216203215.40870-11-brgl@bgdev.pl (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1A175C48295 for <linux-arm-kernel@archiver.kernel.org>; Fri, 16 Feb 2024 20:34:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0u0jaaYI6BiZ7s7MMTK80dJ5srP/oPw0WB5UIarpywc=; b=Hcrvwxg/VljeWK FRPKD7rQMO1z1AAG7FrUctGY7BvdPmAgJfej9aQJK3/4o04wVbvtGGKCxeCSDKJXIpyxtk1ZgO5P4 900wxUJ33vLcD4Q4jzYfWcc2TfSqTDnWmWsqJyLrUHwTWfy9LpzqLJEJ69o93NOzZkH6WLBrJg/fw ubTEEbqlwz4pSNo87T/ye7s6dqFPmRBZKBYUpPImZ8ApfjhWXU92m6bkr4iaGlH7aUboHfjA3GL8j jJuYWcOpGFyxRUu2JFc3ktc+yQwK1b2cipKLqbMuPulTESVdL0UYLX/8r1Xd1rfRRVVeSFd0N42Ic w0RgGf91FlRVMKtc0qGQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rb4ur-00000003eSB-2TKK; Fri, 16 Feb 2024 20:34:38 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rb4tv-00000003dsN-10FH for linux-arm-kernel@bombadil.infradead.org; Fri, 16 Feb 2024 20:33:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=eErBIOjTQ5lnZfiQvyC9U9P7RJRdhki8x/CaBEW0suw=; b=cj4Phvh/ZfSm0O9XZlEj/HlDMm OtS5kBgWOXX6Qupasc8U4LLXKvr21V2sjTS4Wt4TXJtjOi73DPwcw86MWBxGBiQGy5ScIJs+UA1Lh 0eeWAffgCwe9McPGpqiGaR5OE36ewCX2CllVIza3XdN9fRFUYu2qMG0FcJ/sI6lLVMcW3CIV+dJJh L5o3gXkp0IcFtvinZcyQ0AqV8SG+sqVeJAdyZPOv9I5n70OzuQmMZWOrGxNfZCgh/3XdCLgzBHYPB ym+dXLfwz3V9LmosFA/KLZ7lTopimDjzANFFp1qsDlc/CXM9IiweW64zN/qYh6TS/U3RdJ9iBkdQy gMxpl6hg==; Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rb4tp-000000001st-3GKl for linux-arm-kernel@lists.infradead.org; Fri, 16 Feb 2024 20:33:37 +0000 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2d11c55d7f2so34620221fa.2 for <linux-arm-kernel@lists.infradead.org>; Fri, 16 Feb 2024 12:33:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1708115607; x=1708720407; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eErBIOjTQ5lnZfiQvyC9U9P7RJRdhki8x/CaBEW0suw=; b=XbKznKOqiZ0u3u/gREsVSTO4XNEYWA/CpqF1SnZliNSKZgCjxk6bq8T75e7jXWFzci c6F8lAEwpZ4v+Vp4SpBpXJgyfiOUtLVHNVz5U2un7wqdDbmWbxDe17MQDgCGJP9ghpPM Oc8MQe0mApaLH49CB/7zZPcdFVxoQcnzg1Oz+y8bPyWENLgGA6TNe3Orn89F1udgiDlz opYUiQVYC6GcJh4eJ3TGSYWTXvp5Rr6AoLyzUHZIQUkm4b/YEMlH9I4PWp27exAZWeOM DxZkk0Gi4dXWdF2axTUY97hLGVJcmKpR8jSwAo9/yoOIx3tyUAibWwfvJMR49Dnug/Tk mP4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708115607; x=1708720407; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eErBIOjTQ5lnZfiQvyC9U9P7RJRdhki8x/CaBEW0suw=; b=bpPADB5h1ANaX1S/yTw+tGdF2emJHGrQbaJcmAcjKLbLilJfrbWOTA/otN4NhwEgtJ gtXuku7+EewVkS4/EglwFn/cMw4JHBT2DLyPB3QXSzFujpMblFx+6frj551RMWbqgnnm FcMPL3f/88CK1HHJGs28Qfzc7ENYWEM13+Mdq/EovHE32tL+jqiIbVUQ6O7cJPywKS5J /zxsoIrBgVixdHV2iLDBlyCHQMfPqQESieUt0y8qnw8bY9xXP7zae3zV3enW+EZHR4b8 n1RbxYDmzkBAawRR/KnuRv/1wO6KsLvpA7xKVSYo8hSfq3Mzpi51xi+0gCpd0pZaVWSm t5BQ== X-Forwarded-Encrypted: i=1; AJvYcCXP0kuAC6HXYT5BAlamivk1iRVjXli8AgvpvmqsNjLCstNBXrXbhD02MPjmc2P+Qt04KZJ9UTTLmpFxspQ51EduEQItzG5jEjIbR/KBjnmaO4NuR/Y= X-Gm-Message-State: AOJu0YwmhiOIVVKNSifIziKcZZ7yI4ezrE6rehSbOF7X9s1WFxf6xU5L XZL3kw+ievYT6ohdQk+dNgP1Z3qY9oC+wS8Kbe9eV/LRnUyxWhzRP0h5uELuzIg= X-Google-Smtp-Source: AGHT+IEGi5tv9AIVQSVPvOrOZQQ9v1N9yVfrGqntVvYxcBnIqc7VX5XHcJUa0nQEF7j51CNJg9AgoQ== X-Received: by 2002:a05:651c:10c7:b0:2d2:1107:3a7 with SMTP id l7-20020a05651c10c700b002d2110703a7mr3197736ljn.8.1708115607005; Fri, 16 Feb 2024 12:33:27 -0800 (PST) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:7758:12d:16:5f19]) by smtp.gmail.com with ESMTPSA id m5-20020a05600c4f4500b0041253d0acd6sm1420528wmq.47.2024.02.16.12.33.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 12:33:26 -0800 (PST) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Marcel Holtmann <marcel@holtmann.org>, Luiz Augusto von Dentz <luiz.dentz@gmail.com>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Kalle Valo <kvalo@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Bjorn Helgaas <bhelgaas@google.com>, Bartosz Golaszewski <brgl@bgdev.pl>, Saravana Kannan <saravanak@google.com>, Geert Uytterhoeven <geert+renesas@glider.be>, Arnd Bergmann <arnd@arndb.de>, Neil Armstrong <neil.armstrong@linaro.org>, Marek Szyprowski <m.szyprowski@samsung.com>, Alex Elder <elder@linaro.org>, Srini Kandagatla <srinivas.kandagatla@linaro.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Abel Vesa <abel.vesa@linaro.org>, Manivannan Sadhasivam <mani@kernel.org>, Lukas Wunner <lukas@wunner.de>, Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Cc: linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-pm@vger.kernel.org, Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Subject: [PATCH v5 10/18] PCI: hold the rescan mutex when scanning for the first time Date: Fri, 16 Feb 2024 21:32:07 +0100 Message-Id: <20240216203215.40870-11-brgl@bgdev.pl> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240216203215.40870-1-brgl@bgdev.pl> References: <20240216203215.40870-1-brgl@bgdev.pl> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240216_203334_433609_D4F8D90E X-CRM114-Status: GOOD ( 12.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
power: sequencing: implement the subsystem and add first users
|
expand
|
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 467c16358f17..f8ba073ffc9b 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c @@ -3066,7 +3066,9 @@ int pci_host_probe(struct pci_host_bridge *bridge) struct pci_bus *bus, *child; int ret; + pci_lock_rescan_remove(); ret = pci_scan_root_bus_bridge(bridge); + pci_unlock_rescan_remove(); if (ret < 0) { dev_err(bridge->dev.parent, "Scanning root bridge failed"); return ret;