Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp85973lqp; Tue, 11 Jun 2024 15:55:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVW3wlCjbgyZWZSQoSiM3DbkYrlw7BPJZTZlbx9YsVr+nBJPXaSCXQ6uwwH+jItVLGV3iUKd86tU0g663Ik52SMxA+qsOsNt6meJzxFsA== X-Google-Smtp-Source: AGHT+IG+Zq9BlPwMCUlju4cfrZnoiQFBN1xctEAwha46utZfOIswc6i+zQOBpcwaAw3m2az6aND8 X-Received: by 2002:a17:90a:af85:b0:2b6:5156:5b9b with SMTP id 98e67ed59e1d1-2c4a76d3970mr275324a91.35.1718146553867; Tue, 11 Jun 2024 15:55:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718146553; cv=pass; d=google.com; s=arc-20160816; b=QDbzY3SF+p8+y/GcfigFSiX1zxl39t2n2XKF+gEpIpD8b8CdWw29xpTNRHlHVyk0a0 idf/dBcjGbNbYrDM1nyY8u6/T6FIh/322sGvKOpmmI/ugpD5JeeUU+RJqADtwcBBcezR UIuGycpfpa2AAD3OHJFfTgKHqChE6XJbXwg+9MhQwydYEQYLp2JSw0+F0TULo93sdhUM qDuC8+X9zkp0klitMSe0Bu0HEQ3tQNGfIkEAKuqxpDyOiMQoF7/F4h1FQBFnlUWZWKT6 bqkqc5+vxA/N/CvelkZ6SeyEplPrFdmpuDd2uSm70BHcSw++YZkZF0dueivDVhZ9wfjE 3WJQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=cYHTv+h+1UsSvEa4km5zLBd2NSwT44Y7Dxj9evrCJ/4=; fh=yr6H0T3KHgahQEioEQNcWtbiz+auLXCWSFFYubaICQE=; b=Yv9DkC5GeRhdtLagO3pn40SLb/HE4KDyLZeBjU3+NGP0Rn1FlKwdT2pEFwQRjHJASW /mbH+ZcfZNz7idlEhSMtvpdDpZTpeZXjCl2olLvSquPZ8p01S9j8dsiw0IpeL7TdYNem eOirAjjq7hErCDa76O5NVxeqiq14dQxqmRT33kOWpkAVv8NtxtDfI9x7OiA/ZyV6avvK UDPR+gMe4+DLhH7JaJ5nuwjvdds4rk5XobGL34h9TuOa1ElIFYa/l3n9rCeiysb3sE2c iRFjL/aZTiOgnCN9SxGi0Bob/KVK74/8wa5qPZd6tfm3tFv5UKionlk0C3xYUyBWDfdG b8tw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A7pxdhgD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8818-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8818-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c4a75fbf62si197205a91.61.2024.06.11.15.55.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 15:55:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-8818-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=A7pxdhgD; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-8818-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-8818-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7A56F285403 for ; Tue, 11 Jun 2024 22:55:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 48F13155A39; Tue, 11 Jun 2024 22:55:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="A7pxdhgD" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0A61F171C4; Tue, 11 Jun 2024 22:55:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718146544; cv=none; b=BUVN0ROzsELCuT9FhLmJb8NptcehOoVn6dpJusOM+y476dZGlMuQVGWxdsCjCYgLTjxMSY42eTSo1CsODSFoGUJJ7f8OuhEIXSvn3nuhf3zOP1X8bcBxKq46Kk6N71ter0UPDDri75aYHyERtVRixN2qEzDNRNd8DYW+LITYOFY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718146544; c=relaxed/simple; bh=tfmwzXhu9BMvZdNucjHAIFq8O+nZOSTOqKttExZG0P0=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=GafEwndMNLMGAIERlCul4GZymuSrdE6pnn6aIrayIMYqHSXFKNKlPMGh1gR+hrXdDC8mbH8samgjqjDkei6L/qsx+D4OLTezmUFaFK7EFNFx72QZQfR46+vajCVytz5KOdNoByawh0oONNuWULD61uuLiN3j2gQNHOOQ45y11hI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=A7pxdhgD; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A0C9C2BD10; Tue, 11 Jun 2024 22:55:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718146543; bh=tfmwzXhu9BMvZdNucjHAIFq8O+nZOSTOqKttExZG0P0=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=A7pxdhgDNwl0CRAVasMm9Q18XFML4ebWwMMtwSRB078ntHxIYEfNrp+4t38McKEym 9Mbu/3WwIfhYbMrZlqu3YigWp9p6tLAcrQ8t8fNDVsrNom4keCoxM5P2uaoc3BisfH Tv1NvrM/CehSzwVFu7gHEYo1MtWv8/9ofoqWcwm7ZwZWCaMHSTgriGAA44d3oC9/l7 xfGAWXlG8hZSKHlh+CZUcvtc3MgVBnyhPwXZyg9L3FuzoLkKbLX0T6yyh1Iyx8D2xA 1r/7dxQE3RbzF2CaEURzoqsdakZBbpuAmP7pxyBtCIwFhtSV5lL1BUgyKr8wESuNwO 493hSgD34nxaw== Date: Tue, 11 Jun 2024 17:55:41 -0500 From: Bjorn Helgaas To: Bartosz Golaszewski Cc: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Marcel Holtmann , Luiz Augusto von Dentz , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Balakrishna Godavarthi , Rocky Liao , Kalle Valo , Jeff Johnson , Bjorn Andersson , Konrad Dybcio , Bjorn Helgaas , Srini Kandagatla , Elliot Berman , Caleb Connolly , Neil Armstrong , Dmitry Baryshkov , Alex Elder , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org, linux-wireless@vger.kernel.org, ath11k@lists.infradead.org, Jeff Johnson , ath12k@lists.infradead.org, linux-pm@vger.kernel.org, linux-pci@vger.kernel.org, Bartosz Golaszewski , kernel@quicinc.com, Amit Pundir Subject: Re: [PATCH v8 12/17] PCI: hold the rescan mutex when scanning for the first time Message-ID: <20240611225541.GA1005771@bhelgaas> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240528-pwrseq-v8-12-d354d52b763c@linaro.org> On Tue, May 28, 2024 at 09:03:20PM +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > With the introduction of PCI device power control drivers that will be > able to trigger the port rescan when probing, we need to hold the rescan > mutex during the initial pci_host_probe() too or the two could get in > each other's way. > > Tested-by: Amit Pundir > Signed-off-by: Bartosz Golaszewski With s/hold the/Hold the/ in subject to match history, Acked-by: Bjorn Helgaas > --- > drivers/pci/probe.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c > index 8e696e547565..604fc96b1098 100644 > --- a/drivers/pci/probe.c > +++ b/drivers/pci/probe.c > @@ -3072,7 +3072,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; > > -- > 2.43.0 >