Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2011078rdb; Mon, 9 Oct 2023 09:39:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE8uD0ZgfkVPqa6T9wQinmRVKzikyFtsrIGoz5cKyyNw70xdM6G/UrGfi+Q8b1rq55SF6nj X-Received: by 2002:a9d:6206:0:b0:6c6:4843:2ac5 with SMTP id g6-20020a9d6206000000b006c648432ac5mr17792019otj.21.1696869564960; Mon, 09 Oct 2023 09:39:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696869564; cv=none; d=google.com; s=arc-20160816; b=M2x4MB/F/1buqDRd0T/GXcBs7487+dCOIbqxs6XDLtSjrU5tgzqJhMxDYKqoPBJW2z s1OKRJoK1vINaG7GwBNfLxYKUCyXvW6Jd8/EuupwKA+yQMXUJKzc8ezfWO12KXT42eqU UYH0mrdNC7lTrbMR89RuXHTVtbWe1nT14x2gPQkz5jq3uTE6zmmXHdqxcGJlZwjOJkMb d/S34sSix6ND6+rCePHoGTHTgK42h5KQRXhI4uX3AgFZUgRRqg67OWhcbbHVZ+nL2bk4 aB8u/Eg9VOBF/633N8ZaArgxAsmA+6/pT4vgs2KzpOvDFBlHuvblo65zoZ8NsmKWYdYl IFtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=WK0ff5R2kOzpf5r3vjYWIdfYJFiP8RQw/bnFTuhM7iU=; fh=iLdoBgyt9NKvrATIZFDgRS6F9NiXV30CYm7dsGUDC7w=; b=Vlsx3xtX8iAeSlf4fvUKw2xxSQ031LAj9estwksNeP1eYj501yQPT8og+XlFSAN+oy xwQxXWWzoJviye1aX11BrWbWLIKtV40/6R/EPQJlOYTJBUW05B+op+ajRfS4DGb8Xmk6 GLw8psbSY/6ZTHIeG7ZZWX19XwlnfwLjt3SRMAku+yogyH/IdnXQAXL7TRVC7s9m2sFC KS6PjAS9OCPnDJJIWB/4F8xeNPnmYcOYN+sGX+gpXyfMfBifXBNCsDaRXIjT/wT6KWxs uGLwQZnP+ARS1d9FJ4HGzhC7nbc0PmSRS/th1uMtRHvIKxybZR+jHM3rQsAT/tQTVAik aahg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZeVwvbse; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id s17-20020a639251000000b005898ed1915bsi7374167pgn.460.2023.10.09.09.39.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 09:39:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZeVwvbse; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 04D6F8116E55; Mon, 9 Oct 2023 09:39:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377292AbjJIQjO (ORCPT + 99 others); Mon, 9 Oct 2023 12:39:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377684AbjJIQjM (ORCPT ); Mon, 9 Oct 2023 12:39:12 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7A009E; Mon, 9 Oct 2023 09:39:11 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1CB6C433C8; Mon, 9 Oct 2023 16:39:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696869551; bh=7z+60XSm3ueWD/Rb4nlz+Vx6kE/PtSD/zyuDb2uuKVA=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=ZeVwvbsew4OBEZgXJbPtLKAoeYKvOgZkxARjbRxOkfq+0LfDHeRfil98CBH72p960 YjDTKW3IlcfIXN2oPpobCBvVx02vEu//3oNTujV5HUyFWGaN0EegpK5bp9nP4uB7ho N+9qDwcb5sCjWAZxWLkLR2SQB/VB/6/1etaipdB03FIHyUi7vSFVUSdaSqXxO5KofO TH7XD4fsOj2jSu9X47H9zI3NdtL4vS4XbezbTztgt/1sa0HjdX1hEhComZJnwzBN8J PizzHSQ8phs9zxf3aR1/oVWYtePxjmax6lLe74PgEAHWAiaWo//cJxOoBWfTDbvzdW Ikx1Wc5spCLHA== Date: Mon, 9 Oct 2023 11:39:09 -0500 From: Bjorn Helgaas To: Andy Shevchenko Cc: Yang Yingliang , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Jonathan Corbet , Bjorn Helgaas Subject: Re: [resend, PATCH v1 1/1] PCI: Update the devres documentation regarding to pcim_*() Message-ID: <20231009163909.GA939056@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231006150634.3444251-1-andriy.shevchenko@linux.intel.com> X-Spam-Status: No, score=2.4 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Mon, 09 Oct 2023 09:39:22 -0700 (PDT) X-Spam-Level: ** On Fri, Oct 06, 2023 at 06:06:34PM +0300, Andy Shevchenko wrote: > There were many changes to PCI core in scope of managed resources APIs. > Update documentation to list the current state of affairs. > > Signed-off-by: Andy Shevchenko Looks good. Acked-by: Bjorn Helgaas > --- > Documentation/driver-api/driver-model/devres.rst | 14 ++++++++++---- > 1 file changed, 10 insertions(+), 4 deletions(-) > > diff --git a/Documentation/driver-api/driver-model/devres.rst b/Documentation/driver-api/driver-model/devres.rst > index 8be086b3f829..c5f99d834ec5 100644 > --- a/Documentation/driver-api/driver-model/devres.rst > +++ b/Documentation/driver-api/driver-model/devres.rst > @@ -322,10 +322,8 @@ IOMAP > devm_platform_ioremap_resource_byname() > devm_platform_get_and_ioremap_resource() > devm_iounmap() > - pcim_iomap() > - pcim_iomap_regions() : do request_region() and iomap() on multiple BARs > - pcim_iomap_table() : array of mapped addresses indexed by BAR > - pcim_iounmap() > + > + Note: For the PCI devices the specific pcim_*() functions may be used, see below. > > IRQ > devm_free_irq() > @@ -392,8 +390,16 @@ PCI > devm_pci_alloc_host_bridge() : managed PCI host bridge allocation > devm_pci_remap_cfgspace() : ioremap PCI configuration space > devm_pci_remap_cfg_resource() : ioremap PCI configuration space resource > + > pcim_enable_device() : after success, all PCI ops become managed > + pcim_iomap() : do iomap() on a single BAR > + pcim_iomap_regions() : do request_region() and iomap() on multiple BARs > + pcim_iomap_regions_request_all() : do request_region() on all and iomap() on multiple BARs > + pcim_iomap_table() : array of mapped addresses indexed by BAR > + pcim_iounmap() : do iounmap() on a single BAR > + pcim_iounmap_regions() : do iounmap() and release_region() on multiple BARs > pcim_pin_device() : keep PCI device enabled after release > + pcim_set_mwi() : enable Memory-Write-Invalidate PCI transaction > > PHY > devm_usb_get_phy() > -- > 2.40.0.1.gaa8946217a0b >