Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp161247pxb; Thu, 30 Sep 2021 03:26:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDNdVebOaT8hCROcmUFMxzFCBN5BvsRofSjlwBNqEv/JFeXlPrmnjKY0jlHtxPS9srsjjs X-Received: by 2002:a63:dc03:: with SMTP id s3mr4274792pgg.88.1632997570114; Thu, 30 Sep 2021 03:26:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632997570; cv=none; d=google.com; s=arc-20160816; b=W+7T1hiCbswQd2+BPgyMsMq95FXt8dmvV14fBa2OHgwGMivDamtCYdUNlsQyIteOGL JijtU+vyOjG0Og2u9QuIaSNY71xFjcedm22adtnd7SLd0J9DAgLWNbewk5icBpGfnHLP Edb2sOxFFkTrFFY0o3Q13DvOqwMy2agggpA72awPFYRMJBjpwxnMtajvg9fVsJqyt0Vq +tnhwTNkQX0D8dfkYdDfmHZlnvcy8SiAZQut0zweBdclsxGYphabRIlJlCBgXuQZnjBD jfv2t1SCsxqzZIpPG609b/KXceGVx0T+Mh4K8OWVn2Rz+20AtOj6bbmPLk0Qb7PUmxQ0 s3HA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=g2lTT1u/Fn4oWAUqyMELvnYcYq+0z0mii+LOMpZnQQ8=; b=j8BaCb0NPc7SKgRx/nMBJb+/50lIJHSIxDhMTn0iJYTblG3EPfGfSh+BJp4tudfGhA 2nkF4S47P+/XhwNX7ndvbqV4UbtLAqtjjW5E0aJmx02vtoYEYSQ8KO21RgqY3wqzfcpR LGhbFccw8KJ8mxuHhL1hR7uyFrOdq6aJOqoJCamY2MNhWjla+k76IppX/rgKuM98z1cg mzimubcIPe1XteR7iBqE45NuTp03YJERLWThhmRaUz2mYc4wcHRyMgVYaenJRLU9x2CQ OgV2U+0FAc3fIiED7TYbAEcGhzl8LRAHLFTgx2QpC8lULUK2QMLeKMj4ag+0fZKvP0tk DfDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Uq4l7ePO; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si3225433pgs.71.2021.09.30.03.25.54; Thu, 30 Sep 2021 03:26:10 -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=@gmail.com header.s=20210112 header.b=Uq4l7ePO; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349911AbhI3KWR (ORCPT + 99 others); Thu, 30 Sep 2021 06:22:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349893AbhI3KWR (ORCPT ); Thu, 30 Sep 2021 06:22:17 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DE8AC06176A; Thu, 30 Sep 2021 03:20:34 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id s17so19878165edd.8; Thu, 30 Sep 2021 03:20:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=g2lTT1u/Fn4oWAUqyMELvnYcYq+0z0mii+LOMpZnQQ8=; b=Uq4l7ePOVZemVxv2Fn4TJXeAeh3rZynmWGdNYWSjrqVANG0rDiWkLwKKcCqNWN16cK O4224AlUZ8e5tATcbWAGSRdTlxJ5SVFSu0Vrsd0bSCfGiEGnUGzb1zg4tAQ1E1NxA8o7 eDK4MVGSEsOkgath7AKUyNkl+OAATm8Ps2NHnOiMUgFoUVZdWQHTef+Aqt/uoNMbXztY VqHWyqtsBDp/Si2obHzbPh3THD1USP2CckrQZx/CY+G8p+KnHCnn+nAJB1NGN1fgkoWW AGWwFi2dBe7D97gAXE1tu++dFXazUKSRRLAJVio2YK2u+kmZ/xl13BcBj1hzhBwfrSZv uNdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=g2lTT1u/Fn4oWAUqyMELvnYcYq+0z0mii+LOMpZnQQ8=; b=HolUYF96SsMOp8xS8xyg1pBBSlKaThMt+Uiba4LKLatlVKrP42K+1tjxMsF1vNSkLi guKn9XxGFB1qzEKwLXP1mMbuBAjo+EyWDYlBcTBtyc3A0tCRJCzN6n4jbyACSyKI05ED j7ebEHBUThJjMTUcsYIDDNHvcqXKgnJgHQ61aMt6EUsXjpOQfWJ6RUvCH7HH/uImki6C 6kqJmn2uVvKdf5dI6WxmRxhh05Gv3qaZRJzui6Gx4chy9ox7MbxGPs5zgt5/WGp+g8CO ZyL+iI7+CcbW7KaSWw9vCRSUH5sfltWiR2unDHjb+ktPTWTXtF/prAQru1nzeJqx7+w6 FcwQ== X-Gm-Message-State: AOAM530y/5aFXgsHW7o9Nft+LNuzXogTeN/gu549mgb/r1byc4/yEWfx o+RUB83WvplVTBsQwZu/C9v10S6jo9PWCruvt/4= X-Received: by 2002:a17:906:2887:: with SMTP id o7mr5625227ejd.425.1632997232508; Thu, 30 Sep 2021 03:20:32 -0700 (PDT) MIME-Version: 1.0 References: <20210929170804.GA778424@bhelgaas> In-Reply-To: From: Andy Shevchenko Date: Thu, 30 Sep 2021 13:19:54 +0300 Message-ID: Subject: Re: [PATCH 1/2] PCI: Use software node API with additional device properties To: Heikki Krogerus Cc: Zhangfei Gao , Bjorn Helgaas , Greg Kroah-Hartman , "Rafael J. Wysocki" , Bjorn Helgaas , Andy Shevchenko , Linux Kernel Mailing List , linux-pci Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). I guess this way should be really taken carefully. -- With Best Regards, Andy Shevchenko