Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5229373rdb; Wed, 13 Dec 2023 02:51:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IGrMEbHaxUHrEptKACwcQdQS5hjpSeX+CaZEW/qn7y82/jemKlGLaI0rgQ2EY9+ieyKbTdq X-Received: by 2002:a17:903:1110:b0:1d3:16a6:d49e with SMTP id n16-20020a170903111000b001d316a6d49emr6339029plh.51.1702464694532; Wed, 13 Dec 2023 02:51:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702464694; cv=none; d=google.com; s=arc-20160816; b=Nb5FO3tlQvRskhpbAKKJk93hZ+cR+3JzzH7YT7n6ik6Akw/91a2EtGQ0rzma08Bkne nLQWver08sVQmcb5E1jo5TIkYwInhX2cSBoqXNUJ8ypwsxq3XQEkRcr64whqTcjMG8/u PFt5WkkpMTUyT0aKKqZnIO8R02dM3fvdkih29bDzUOX8t1tDEr2sv1qO1PSufsS1gpk6 lAAtXm6+oBJUqQd77MjQVqsius++as/FzujzqOYy5FoAObMP7jYPd0wjrm3DuX360NJH xXTROi4jsLEh8YBDOkUu/TgamHMdB+fL/yXjdjh1rrV7lOyFU1feG6CjRfKhsQDLX+Rc VaqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=+O7f2QUesSUChYyLojmS15xAChha8c0VnA5QAeEWCAk=; fh=kC0WQDdunCbOGYYYpR7FYhmhya0QP8gghf/EUCh78yo=; b=yd9qfVpdcmq65vkzgfnRblk5FgujpFIooMylSRtpOUxWMD614p8cJGE4WNCQrEalak Q1nhvXCsf9vdM79J3+7dMm+hC94TV6KJEg4ieTV2dfY+qf6KilNxDrNfIoAg8vy4fSHf w0TBz1NCrFN8OJCfHgqde+ZY5aehYbs9IZx21lbHXth0gfLND2PkilCQbZTGBvirbEqC PwbVlUE/MMd/0XVTr2t01llNgXLqM/gvmIj3fP75GYCbRk94hQU/N/vz5lSPRMewBXsy a2C+S8O0FttLjBSL6CEAEfnk0YHFju3GN4XVw5IX9ZdbhUO5A1KRUIs4lS/CZ2B7rWiQ obpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id w4-20020a634904000000b005ca40996d40si1929796pga.847.2023.12.13.02.51.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 02:51:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C5B9F8225CBF; Wed, 13 Dec 2023 02:50:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377843AbjLMKt2 (ORCPT + 99 others); Wed, 13 Dec 2023 05:49:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377811AbjLMKt1 (ORCPT ); Wed, 13 Dec 2023 05:49:27 -0500 Received: from bmailout2.hostsharing.net (bmailout2.hostsharing.net [83.223.78.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CE41B2; Wed, 13 Dec 2023 02:49:32 -0800 (PST) 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 RSA CA G1" (verified OK)) by bmailout2.hostsharing.net (Postfix) with ESMTPS id 0B3B128042DAC; Wed, 13 Dec 2023 11:49:31 +0100 (CET) Received: by h08.hostsharing.net (Postfix, from userid 100393) id 004AD231117; Wed, 13 Dec 2023 11:49:30 +0100 (CET) Date: Wed, 13 Dec 2023 11:49:30 +0100 From: Lukas Wunner To: Ethan Zhao Cc: bhelgaas@google.com, baolu.lu@linux.intel.com, dwmw2@infradead.org, will@kernel.org, robin.murphy@arm.com, linux-pci@vger.kernel.org, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Haorong Ye Subject: Re: [PATCH 1/2] PCI: make pci_dev_is_disconnected() helper public for other drivers Message-ID: <20231213104930.GB31964@wunner.de> References: <20231213034637.2603013-1-haifeng.zhao@linux.intel.com> <20231213034637.2603013-2-haifeng.zhao@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231213034637.2603013-2-haifeng.zhao@linux.intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 13 Dec 2023 02:50:42 -0800 (PST) On Tue, Dec 12, 2023 at 10:46:36PM -0500, Ethan Zhao wrote: > move pci_dev_is_disconnected() from driver/pci/pci.h to public > include/linux/pci.h for other driver's reference. > no function change. That's merely a prose description of the code. A reader can already see from the code what it's doing. You need to explain the *reason* for the change instead. E.g.: "Make pci_dev_is_disconnected() public so that it can be called from $DRIVER to speed up hot removal handling which may otherwise take seconds because of $REASONS." Thanks, Lukas