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 X-Spam-Level: X-Spam-Status: No, score=-13.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C9486C43460 for ; Mon, 26 Apr 2021 19:49:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 963146135D for ; Mon, 26 Apr 2021 19:49:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241589AbhDZTtl (ORCPT ); Mon, 26 Apr 2021 15:49:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241660AbhDZTtV (ORCPT ); Mon, 26 Apr 2021 15:49:21 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF745C061574 for ; Mon, 26 Apr 2021 12:48:36 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id x19so59696133lfa.2 for ; Mon, 26 Apr 2021 12:48:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hu/O6kjV+ayX6H+srxTD5OhjR3joShOstPqgPMhXlRY=; b=O+nxianCcFegGRK1s69+e+erwUh5FFbkPGGe/FuY2GqsZJKR/Oge7ZOlZDxaTMsw6A C1kuarMhKrcAOyYngCsa24OF+gAzv8uoy28yfMflStTHSYJWB7+MfqEHUWDFN1pQcwEE 2lpPONUV85ttYNP9UWMQgp7j+UqzzQ7xYq43cPw9zFqdnJKoYa0cKU3gtnGe50ZlW2Fg wbm6ywMFnTuB3+sUQitug6l+m6FAnouemjIBnwqGtf6ngDiFZMtEeVigxSvIniyNeNQR TOQuzZYT6Efly/9FdFXdU2j1aMJ9rC8kpfplYqSL0E2V5iSoF0R1zA+ORo3PGC/qahf2 BGUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hu/O6kjV+ayX6H+srxTD5OhjR3joShOstPqgPMhXlRY=; b=Ygf/kogrmBTungRiYGgGf7jGI0BUWlwLycoAWbLO1WBwO72DNy1s9ZfvlXeaXjSMll fp39g6UblCn6EB4tO+kFrAZhDHxhdCWKBJAiBQF4+UooxB6JY+OObnM5lgIp8BV5a4l3 Bs1eMJfuMblN8rvN49bM1zsFRcvbCQpaBwvWiVJFaGyxe26kYwYMLMVtC6icZyP0PYtM 7N77ETBK4P16dSAbLQIgv1ul6FIRIEC2lf4F1t7uU/p2VC8c01eo23DxPFEPyB6kZDJH 1k9bAou7qXiVBthiX3of8tW6Ks76Z41+T4tiHCBSIBxCKPTaRZXdXniCzkdKdI/h4vNA poPw== X-Gm-Message-State: AOAM532o/KSukQE3zBrRA84ipe6OKE3ie/pBmcJwLwMD9BDcbwtqHzqH nSH3GVIV7xdS8vBxELxu/8/Xj2uyxO8FNOtbOuLX6A== X-Google-Smtp-Source: ABdhPJzQqSictmcpMxegywuWj1tXbz1nnVcZqr9VC5hCAv9/toUwrlDZVb0ijgerD80Y1Y0Pz84x/oxXoSrYAvmY/WY= X-Received: by 2002:a19:354:: with SMTP id 81mr7756832lfd.174.1619466515188; Mon, 26 Apr 2021 12:48:35 -0700 (PDT) MIME-Version: 1.0 References: <20210424021631.1972022-1-rajatja@google.com> <20210424021631.1972022-2-rajatja@google.com> <79b994f2476249498797e1784f735fd7@AcuMS.aculab.com> In-Reply-To: <79b994f2476249498797e1784f735fd7@AcuMS.aculab.com> From: Rajat Jain Date: Mon, 26 Apr 2021 12:47:59 -0700 Message-ID: Subject: Re: [PATCH v2 2/2] pci: Support "removable" attribute for PCI devices To: David Laight Cc: "Rafael J. Wysocki" , Oliver Neukum , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org On Mon, Apr 26, 2021 at 6:01 AM David Laight wrote: > > 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 Oliver / Folks, please let me know if there is a suggestion for me here, or if there is still a question for me to answer. Thanks, Rajat PS: To give some background about this change, we'd like to implement some policies around disabling user plugged devices when a user logs out, and collect statistics around use of such devices. > > David > > - > Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK > Registration No: 1397386 (Wales)