Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4825927iob; Mon, 9 May 2022 02:31:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLfI39M5VMDQiY5HyhiKgbYltgFHkzJ7ccvLjxMWNqpP/L9QWttFA5khVsRqa1Gq0r7Zj2 X-Received: by 2002:a17:90b:30c3:b0:1dc:b6d7:58d3 with SMTP id hi3-20020a17090b30c300b001dcb6d758d3mr17046893pjb.172.1652088696744; Mon, 09 May 2022 02:31:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652088696; cv=none; d=google.com; s=arc-20160816; b=kQkU2P0xVVJ4Hr6osgmN3PTdlTrdZIx1TzEmaTmp4AWptToiL5EE+N1sPMRnfEajZ2 nCVleRnZtUHm00duGgpd5/PuTAikJVzTbw9IPc9thmAAuDBM0eM6J0Y00yH0CSRtzzSs O4L5BCoYlzIh1E64/KvV0UzT9notbcMLxP+P8eCBSlM0v5cETy7tIFLyJOkpxJsBH8DD jas2fDB5b2url4ZtZAR5TxFsSq83Fbi8fNiHsZOSxgZ//ULWP/hctRKZ3QiMAXdNeJ32 7+6iuDAfmTpSAiUNg3/oPF5P51cjEYFaTifxWxg/iMd3nHUYcvkzQTdKl40QX51PuvuQ ru2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Mj5/q1XSMYf11X58NacGatd7CeRmy/KHMT2Xvt+7kuY=; b=IkalFn0tTwbqD7AuptZQJamtGUmzt589qNg2WATbbtsyOyd9in4SnbO81P6AvzEsK+ 1S+4OMXemIpJ1eozhEEP37CqD6tX7naVCmed1Pq/BarZQr8HbI7UBIS/mfnARCL7gGGX SBxZ6Wj9J8cuXH/VVG9uAxFQiPUjDE85hEcW3WvM9CX99E3bmHiC/husa1ETouAMZguR jxZYRcQ7RoYJ8cHc9WkoNMwlYqB0TolKz1gLD7OzosSAwzN/6bQJ6lTtNIs5CT4oH+ND 9eCFhgzvzi4ko2dYTy/IG0CMPy5hPN6pZsxIzNlBQR5gxZjpfVdIzCo8bOZq8nC48x6n YyQw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id u2-20020a654c02000000b003816043f04bsi14037720pgq.576.2022.05.09.02.31.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 02:31:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1946A216077; Mon, 9 May 2022 02:19:34 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232038AbiEHKyr (ORCPT + 99 others); Sun, 8 May 2022 06:54:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232171AbiEHKyj (ORCPT ); Sun, 8 May 2022 06:54:39 -0400 Received: from bmailout1.hostsharing.net (bmailout1.hostsharing.net [IPv6:2a01:37:1000::53df:5f64:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89D3239A; Sun, 8 May 2022 03:50:49 -0700 (PDT) Received: from h08.hostsharing.net (h08.hostsharing.net [83.223.95.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.hostsharing.net", Issuer "RapidSSL TLS DV RSA Mixed SHA256 2020 CA-1" (verified OK)) by bmailout1.hostsharing.net (Postfix) with ESMTPS id 49F423002C27F; Sun, 8 May 2022 12:50:47 +0200 (CEST) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 3E4C228DC2F; Sun, 8 May 2022 12:50:47 +0200 (CEST) Date: Sun, 8 May 2022 12:50:47 +0200 From: Lukas Wunner To: Andy Shevchenko Cc: Wolfram Sang , Jean Delvare , Heiner Kallweit , Lee Jones , Hans de Goede , Linus Walleij , Tan Jui Nee , Kate Hsuan , Jonathan Yong , linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org, linux-i2c@vger.kernel.org, linux-gpio@vger.kernel.org, platform-driver-x86@vger.kernel.org, Borislav Petkov , Mauro Carvalho Chehab , Tony Luck , James Morse , Robert Richter , Peter Tyser , Mika Westerberg , Mark Gross , Henning Schild Subject: Re: [PATCH v4 1/8] platform/x86/intel: Add Primary to Sideband (P2SB) bridge support Message-ID: <20220508105047.GA28082@wunner.de> References: <20220131151346.45792-1-andriy.shevchenko@linux.intel.com> <20220131151346.45792-2-andriy.shevchenko@linux.intel.com> <20220505145503.GA25423@wunner.de> <20220508071308.GA27815@wunner.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 08, 2022 at 12:05:53PM +0200, Andy Shevchenko wrote: > On Sun, May 8, 2022 at 9:13 AM Lukas Wunner wrote: > > pci_lock_rescan_remove() prevents concurrent unhiding as well as > > removal via sysfs. > > Yep, that's good. In any case this piece of code will be gone if your > above suggestion works, have I got it right? Yes. You just need to make sure that you call pci_scan_single_device() *after* unhiding the P2SB device so that this check succeeds: pci_scan_single_device() pci_scan_device() pci_bus_read_dev_vendor_id() Thanks, Lukas