Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1476309pxb; Mon, 22 Feb 2021 03:02:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmF0E4WzxoiJ2iwoo6E1+GsJJVSLEcJNJnA7rI0+oqpX3Y7OtMvvRn78pgC3XXQA5geO9J X-Received: by 2002:a17:906:780b:: with SMTP id u11mr20593503ejm.492.1613991740389; Mon, 22 Feb 2021 03:02:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613991740; cv=none; d=google.com; s=arc-20160816; b=E4rm2MBt0SrIEFvQCYrFpViS8/AGRnr611zTOfib+MR8hOo2hhO3S8MWoavo3/0FG3 MIWPPZBNgwFjCEw1zZ+1sR6/dxL2yvKfp66f3pTcmeQJ0BqI43rGcsUHaq0NTZkSwfd+ 1ukX1r3usmI88HIRBJMd//GyzHGtSCfZUXQ60OPx9P+e0S8hWgmM2ko5BdFoK+xNywpK s9Di9sWjeC+BCsB6jhCY3Jitis9q2i82KYDbIxpk4yHDkKiXlNrLl+S2VUA2ro93YDnP U0KwELoRet6dmMvuyH+U6/3fahyYpfNJSAcbbNxltgDPwlar3GAnonEU2X/gEh5zjKrb NWZA== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uZj2GOFW0qz5vkdFbpgMws2RzG3ubiLJIbH/acPSyVM=; b=WTorZj08oZD9hxWVV0XVKGMTFKYkZITvvxWqiDUWKRU9KaZ0TqyDqpZYabLltDnLXP hDzYJxiTQ1zb4g1X03EV+lZ+89TZNtwobAo4oCOQ8XGPGi+FSPiRLc0Xag4by/gFV2bi mSohRsmCOAftrcZAiegQtHSStCkQCWC4WtT5qXfrPENydZiIxX9CQj4RT/LXPk1ky2nP VMd0AM/jluOjX2YgBPrrVvENpnvoHrXmfBwXiLTBU6Hz41zpooiqQGFpWfk8aTAhcy2r I8hTEzGUI3nTGmebh5vyVK2M9y5niZFvsQfiPHbDepOqdnbtHY2w5tkG8QNh4xStBhqC i9OA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Nytykpor; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mp8si11730794ejc.253.2021.02.22.03.01.57; Mon, 22 Feb 2021 03:02:20 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=Nytykpor; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230270AbhBVLAu (ORCPT + 99 others); Mon, 22 Feb 2021 06:00:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:34444 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230211AbhBVLAj (ORCPT ); Mon, 22 Feb 2021 06:00:39 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9226C64E3F; Mon, 22 Feb 2021 10:59:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613991599; bh=DS6RXMGaxoqu6/MMmgkarIZRU3g0QdBsNAYVTDAcCJE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NytykporKIyVErVx1qYP8i/9pmmjPsp+vznWXECMJ7UP4MbQeRpJSNw59kGFaXyMk i9qefnYaxGZTF0NAWSfL2wc3UtuIf6W2cd/hHg0GRTVS3CAVz6YR64wNcwGnVPOaFy P3059WYIkN1UOCHBSe3TkknPIeonZ81opm4Z1UtKguPEm58ljIzlp58YgRJ7i5yNlG lTUdP6TY10liaAGPDDudHeBFV4RiVkAG8RVzZNpkkQoi5QTyTNOwIO8t6rqnpxrdwx 9Xp5sCFBhcSWyrvHHRkib9OhUaT4/7yd4O6UvMPhPGXYjX9tgKqWGMHK4XXDmxSAmK aQQehILAHbOmQ== Date: Mon, 22 Feb 2021 11:59:53 +0100 From: Robert Richter To: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= Cc: Dejin Zheng , corbet@lwn.net, jarkko.nikula@linux.intel.com, andriy.shevchenko@linux.intel.com, mika.westerberg@linux.intel.com, helgaas@kernel.org, wsa@kernel.org, linux-doc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/4] PCI: Introduce pcim_alloc_irq_vectors() Message-ID: References: <20210218150458.798347-1-zhengdejin5@gmail.com> <20210218150458.798347-2-zhengdejin5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19.02.21 17:15:50, Krzysztof WilczyƄski wrote: > Hi Robert, > > [...] > > Obiously this is meant here: > > > > if (!pci_is_managed(dev)) > [...] > > A question to improve my understanding for future reference. Was the > previous approach of checking for "enabled" flag from struct pci_devres > was not a good choice here? Initially this was meant to just show the idea. After careful review I don't see this additional check is required as once the pci dev is managed, it will be always released with pcim_release(). -Robert