Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4426709pxy; Tue, 27 Apr 2021 05:01:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxw+A4AChV0GAuqe9NdIgGEeaRupCL1G7bxGVk9+ptIsK4bcBbLnOYCo/M2HNIzRCjf17/u X-Received: by 2002:a63:ef18:: with SMTP id u24mr21812681pgh.418.1619524868725; Tue, 27 Apr 2021 05:01:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619524868; cv=none; d=google.com; s=arc-20160816; b=X9qQlyzMRksRIzHSSzwXi/b1R+E3T5sWnDte3G+cAo7I2MQ/0SUW0hELExSjaOJcxx PkUTATE1+B74fhXh/Lveyeu39ChZZ3diha6HnfPj01AIa/u6FFIjpcdGPLsCOXrMm/jT NFqhYOr3a2kSq947t8Jm1dqQD0nN5FwQ3zt8/dn95xnWLQAEcSI6bFRSGyTRpbu4E1kD 001cgve/c+arxGai66Pp1H5ILecEVEb4DcILC1O4/iWFBcnj8STiP8uWIokxJu2sRpGj UQVEfSCWeXR5GJLiPaLC+hkdgyKx959/r20fSu8aeD2lD7qD2ly9OBdj59liBV8RiNLJ 3ULQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=3zx43ULgBMwTj0mmSYV7TpYxKVAjZPN/7jVN4FQEzJA=; b=goohDmlqzArnd44pzJTKPFHL4X2x8O90vc5GkQiRQjO+RK2i+YYbEozhX2jjUdkuif Y4aeEGE1nyav6+G06CIo5QdquX9xVSP7Qn95xxh3L8+DyX6e+QP2r1Bu5AGOnvClu9da MJcviQ5ianWdaUHDPf3hy85cWeY9gR2/Vr9eSawjno77R7L4zjVDxixSCQuhdQcFbi/i pquyjzXOxHe8+vJ3xkHmk5b5g9IsmZJq2rnm7GLtgiLcJoLB00eD/DAN6XiE4ssD2wQt NqMTvdNjjGqCSf8mPKE1lYOG6Nn6dSmcfq12riZgG1gUiSrQvjvklE3UgYDBUSpbRvpa HfRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=IFMprIKE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l9si21053224pgp.593.2021.04.27.05.00.54; Tue, 27 Apr 2021 05:01:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=IFMprIKE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235949AbhD0MAm (ORCPT + 99 others); Tue, 27 Apr 2021 08:00:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:36536 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235391AbhD0MAl (ORCPT ); Tue, 27 Apr 2021 08:00:41 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1619524797; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3zx43ULgBMwTj0mmSYV7TpYxKVAjZPN/7jVN4FQEzJA=; b=IFMprIKEvsmq1wxwgntBZSpuUmRErNXm3dDpf31FMg+QEv3TSk5g6ee7jUH9usFlsRIa29 FLV5mRg52VMloev5hNbu/2yQS12KCKSw00Z6Nevwv6tddytNZbZrzhyEjnY9aRo6sv1HKl wViVmCFiqIvKWzmRHzVpCkI3M6bgaqk= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 5F3BBB180; Tue, 27 Apr 2021 11:59:57 +0000 (UTC) Message-ID: <21c6b5002c5ad36cd7fe0bb849f5eba12a614bca.camel@suse.com> Subject: Re: [PATCH v2 2/2] pci: Support "removable" attribute for PCI devices From: Oliver Neukum To: David Laight , "'Rafael J. Wysocki'" Cc: Rajat Jain , Greg Kroah-Hartman , Bjorn Helgaas , Alan Stern , Linux Kernel Mailing List , Linux PCI , "open list:ULTRA-WIDEBAND (UWB) SUBSYSTEM:" , Bjorn Helgaas , Rajat Jain , Jesse Barnes , Dmitry Torokhov Date: Tue, 27 Apr 2021 13:59:52 +0200 In-Reply-To: <79b994f2476249498797e1784f735fd7@AcuMS.aculab.com> References: <20210424021631.1972022-1-rajatja@google.com> <20210424021631.1972022-2-rajatja@google.com> <79b994f2476249498797e1784f735fd7@AcuMS.aculab.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Montag, den 26.04.2021, 13:01 +0000 schrieb David Laight: > From: Rafael J. Wysocki > > Sent: 26 April 2021 12:49 > > > > On Mon, Apr 26, 2021 at 11:17 AM Oliver Neukum wrote: > > > Am Freitag, den 23.04.2021, 19:16 -0700 schrieb Rajat Jain: > > > > Export the already available info, to the userspace via the > > > > device core, so that userspace can implement whatever policies it > > > > wants to, for external removable devices. > > > > > > Hi, > > > > > > is there a way to tell apart whether a device can undergo regular > > > surprise removal? > > > > PCI devices located under a removable parent can undergo surprise > > removal. The ones on a Thunderbolt chain too. > > > > > Do we want that? > > > > Do you mean surprise removal? Yes, we do. > > Always been true - think of cardbus (PCI pcmcia) cards with > PCI bridges to external PCI expansion chassis containing > additional PCI slots. > The cardbus card is hot removable. Hi, that is true for those options, but not for the style of PCI hotplug which requires you to push a button and wait for the blinking light. REgards Oliver