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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1060EC433EF for ; Sun, 8 May 2022 10:50:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232022AbiEHKyp (ORCPT ); Sun, 8 May 2022 06:54:45 -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) Precedence: bulk List-ID: X-Mailing-List: linux-gpio@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