Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3385096pxj; Mon, 7 Jun 2021 09:18:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnOQzUETpu4e+SLF+KIwr8VcMdkg6UdrrobTEl450UnPXUYsdsOUwzsmSNSiZXL6x9GUlb X-Received: by 2002:a17:906:22c7:: with SMTP id q7mr18365334eja.547.1623082736403; Mon, 07 Jun 2021 09:18:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623082736; cv=none; d=google.com; s=arc-20160816; b=u9poorOEj0QXRWlFcFCEzBqVxHknUU3+MjtmOGN3CiLNZzov3GeaxvJgsMMJOzi221 dw8KowWUCnpVOSl04mHEBRh1vn12sG/ahncA65pZ9dVUz5J+DS3YOmuq4oWmUpwf3+7m +aIzDG4tgLDOGrF+79ERiavASi2Me/RTDEzVZrWVjwDnfVxPiF4NlmkCszkLsof07Lfd SXZBTcHIFkTT6pKwQVLOjFZqKfnUJyqvbb1xw+fynhhSDVO+vCO9qGSBTWcbVMilPsFt uYTB4HcJYwNQXLf/2LQfHdaKBKPdSeFzW0aSJ+kO/uOwxrjKVSLaN4+8JwQ46xxgRm9k oujQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=7TBghR/SBf5ltgeUOfY/iXbC2t/IPe8KsphKyFLxGbc=; b=ikTBDwVoaEzBMpg4Us6PrVt3QY08SIGhG9RNXoFOIaWl/dGGZ5kJdhABxPBmRk/bhA uKzjqAh0TDbwA641z7EbVYYBmsvxfN4XJu9k+22UOaXL6NkYQohDyse7+fJPxN3vqyqh 6P3th80MvV1IudXEhxhaZytj45oqpRhXd52z/ON0jN4M2Wv6oVkbpy8IkhGPaJKJwXIU VirsGcWywGJ8pd/woSFMNZrhNMF6Hh46dYKUKzGeuJOx5S+vuD8oejam2f87vnRdomPq 1iBIRZ1qnomQGNWK5Vhhh75vDBzYaUOCNxk7LIk7eNCub1ySm1YPaFWfREnpjULSrpty W5Hw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g21si12762929edu.34.2021.06.07.09.18.33; Mon, 07 Jun 2021 09:18:56 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232209AbhFGQTD (ORCPT + 99 others); Mon, 7 Jun 2021 12:19:03 -0400 Received: from mga09.intel.com ([134.134.136.24]:29221 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232256AbhFGQQD (ORCPT ); Mon, 7 Jun 2021 12:16:03 -0400 IronPort-SDR: pHwmMxBdgPCN6jy6rFjauZs/75xXGamXdDFLiRUrClgQ9XH57dQNWIQFo+fWJWdsrQWR7+u+sC YByao0CMe6jw== X-IronPort-AV: E=McAfee;i="6200,9189,10008"; a="204621543" X-IronPort-AV: E=Sophos;i="5.83,255,1616482800"; d="scan'208";a="204621543" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2021 09:13:11 -0700 IronPort-SDR: LPkEaiTaEwTQYTVhOFTdUrrVJgyekxvCeyiHmd4JiWfwL+vo0huD8rTYtR/qyeyrkviPQfz3SM hH0k+yS4d3jQ== X-IronPort-AV: E=Sophos;i="5.83,255,1616482800"; d="scan'208";a="484830331" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2021 09:13:05 -0700 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lqHs6-000Ibv-V4; Mon, 07 Jun 2021 19:13:02 +0300 Date: Mon, 7 Jun 2021 19:13:02 +0300 From: Andy Shevchenko To: Dejin Zheng Cc: helgaas@kernel.org, corbet@lwn.net, jarkko.nikula@linux.intel.com, mika.westerberg@linux.intel.com, rric@kernel.org, bhelgaas@google.com, wsa@kernel.org, Sanket.Goswami@amd.com, linux-doc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 2/4] Documentation: devres: Add pcim_alloc_irq_vectors() Message-ID: References: <20210607153916.1021016-1-zhengdejin5@gmail.com> <20210607153916.1021016-3-zhengdejin5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210607153916.1021016-3-zhengdejin5@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 07, 2021 at 11:39:14PM +0800, Dejin Zheng wrote: > Add pcim_alloc_irq_vectors(), a device-managed version of > pci_alloc_irq_vectors(). introducing this function can simplify > the error handling path in many drivers. This is good one, thanks. Reviewed-by: Andy Shevchenko > Reviewed-by: Robert Richter > Signed-off-by: Dejin Zheng > --- > v6 -> v7: > - rebase to PCI next branch > v5 -> v6: > - rebase to 5.13-rc4 > v4 -> v5: > - No change > v3 -> v4: > - No change > v2 -> v3: > - No change > v1 -> v2: > - Modify some commit messages. > > Documentation/driver-api/driver-model/devres.rst | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/Documentation/driver-api/driver-model/devres.rst b/Documentation/driver-api/driver-model/devres.rst > index e0814d214048..fad7d26ccf35 100644 > --- a/Documentation/driver-api/driver-model/devres.rst > +++ b/Documentation/driver-api/driver-model/devres.rst > @@ -382,6 +382,7 @@ 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_alloc_irq_vectors() : managed IRQ vectors allocation > pcim_enable_device() : after success, all PCI ops become managed > pcim_pin_device() : keep PCI device enabled after release > > -- > 2.30.1 > -- With Best Regards, Andy Shevchenko