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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 796B4C433FE for ; Thu, 30 Sep 2021 11:26:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6560F61452 for ; Thu, 30 Sep 2021 11:26:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350516AbhI3L2W (ORCPT ); Thu, 30 Sep 2021 07:28:22 -0400 Received: from mga03.intel.com ([134.134.136.65]:25955 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350372AbhI3L2V (ORCPT ); Thu, 30 Sep 2021 07:28:21 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10122"; a="225239604" X-IronPort-AV: E=Sophos;i="5.85,336,1624345200"; d="scan'208";a="225239604" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Sep 2021 04:26:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,336,1624345200"; d="scan'208";a="618080451" Received: from kuha.fi.intel.com ([10.237.72.162]) by fmsmga001.fm.intel.com with SMTP; 30 Sep 2021 04:26:33 -0700 Received: by kuha.fi.intel.com (sSMTP sendmail emulation); Thu, 30 Sep 2021 14:26:32 +0300 Date: Thu, 30 Sep 2021 14:26:32 +0300 From: Heikki Krogerus To: "Rafael J. Wysocki" Cc: Andy Shevchenko , Zhangfei Gao , Bjorn Helgaas , Greg Kroah-Hartman , Bjorn Helgaas , Andy Shevchenko , Linux Kernel Mailing List , linux-pci Subject: Re: [PATCH 1/2] PCI: Use software node API with additional device properties Message-ID: References: <20210929170804.GA778424@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 30, 2021 at 12:37:27PM +0200, Rafael J. Wysocki wrote: > On Thu, Sep 30, 2021 at 12:20 PM Andy Shevchenko > wrote: > > > > On Thu, Sep 30, 2021 at 1:06 PM Heikki Krogerus > > wrote: > > > On Thu, Sep 30, 2021 at 10:33:27AM +0800, Zhangfei Gao wrote: > > > > ... > > > > > If the device is really never removed, then we could also constify the > > > node and the properties in it. Then the patch would look like this: > > > > I'm not sure the user can't force removal of the device (via PCI > > rescan, for example,, or via unbind/bind cycle). > > The sysfs unbind doesn't remove the device, though, AFAICS. It just > unbinds the driver from it, if any. > > > I guess this way should be really taken carefully. > > But I agree. OK. Makes sense. Thanks guys, -- heikki