Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1473925pxb; Mon, 22 Feb 2021 02:58:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJzoEqYqctkMscUsRzdHpbDiRKlA7BvLelqSITDYe0uFrGMoAqAUkGHP7jcYkGfhpjYYVyR3 X-Received: by 2002:a05:6402:d1:: with SMTP id i17mr21815514edu.85.1613991496429; Mon, 22 Feb 2021 02:58:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613991496; cv=none; d=google.com; s=arc-20160816; b=vPEgM5CMTzcDmIrolXXHimxgu8+1yVeUJvrcG1FODRZL0sOO/IicCl1y88UU+q6x9H wvCAu+3LH6ufmQeJbhWtxAliSkD4mo3/AVm22qhUVTmDSmGonkeLiTOm+GE5YhIr0yXQ NbjbgOFe8u3E15x0nLrh7A7pNthTM5CnBGAeo8YM2JCDBQ+6IaoYNWIH+HW0CuozZHLM pSUg6aeubsSF1uI0ESAQxNLrIP41fZxyc+YIqEqxnJgulniaZ+ALUdyqOqKB9E+iCbcW 4cGFm00nEZUU706+FCRA4M/Ehrp5rLS1i7FuseOoOzslaycZUwm1YhIKSf7qhM8VYcQr KzrQ== 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 :references:message-id:subject:cc:to:from:date:dkim-signature; bh=P8bD3OHXMmjSE6SMoI+fGPFjinEPUaGXVv2KkJS3Sq0=; b=DDxLnJ0BBSBRH2YmUGSL5obhx3S6Io7FMY5BoVQp3H6Gd0LM4hjfoaUEsBWfaDmlp9 /+DBa/VazBbpBRz5VqX/wRXlqqiLJcD4UlUy/g0rm1Vxa6PkIm3o1AzSWKIL5XVkN1pY 2U1u3AZrXsRJTnzo1IAeU04hfBOYAz/ENQbmQ+h6uAEpolw3KhdaEhuT6PrOCXeanKsY i0NDdC2bsdfvskxS59/QnDH0Q6L9LVfGkzfIXzpZpfOOuWQsSWbAhR1Xpde9phar7sY8 m6I6c+RP6qUNCqMMdWMcj8kO0vaxHXtX2vI6y/krbjYIJ8Y1uUn9mUWNEjtx4gBlyxg6 zK9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hS4u2mjb; 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 b12si11349591ejq.58.2021.02.22.02.57.54; Mon, 22 Feb 2021 02:58:16 -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=hS4u2mjb; 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 S230202AbhBVK47 (ORCPT + 99 others); Mon, 22 Feb 2021 05:56:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:33804 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230155AbhBVK4z (ORCPT ); Mon, 22 Feb 2021 05:56:55 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 45FD164E04; Mon, 22 Feb 2021 10:56:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1613991374; bh=uSVdmI9SQTwSZXaLlJZF+IlVbzuQCLdI9sABiZ1LT4M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hS4u2mjbYejeR+K2OGXcDXc7+9Tg8cQRwjWXVUTVlvpPKqv0vHQ9JhNYc2/ufIM2F ud8EJ3IHU1zS8bBAHR+dntl+X+XG+3JVLWDSuzxN3A8+FPeWwHk4Xe7Supun1DRC1P dzk8lkYNQ+HuMtTLm8v3kUJx8m7/fDoOMigi94mxIy6j6A2DY1QJL8k0hCkCrwU9wv 5JZ0TiPcs99Jb+9C082qvRNd8wmX6+f7+Ex2OdJ80SvCGn6S639jMTpKrv/KMWUEkG 1qKuK9mAI84zEQ7tzu2W7RSRd2i+LgEOqSh2E95K2WTEV9YXcGXQC6uB44KjM6juAh /hVXdmED1dWkQ== Date: Mon, 22 Feb 2021 11:56:08 +0100 From: Robert Richter To: Dejin Zheng Cc: corbet@lwn.net, jarkko.nikula@linux.intel.com, andriy.shevchenko@linux.intel.com, mika.westerberg@linux.intel.com, bhelgaas@google.com, 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> <20210219164649.GA814637@nuc8i5> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210219164649.GA814637@nuc8i5> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 20.02.21 00:46:49, Dejin Zheng wrote: > > On 18.02.21 23:04:55, Dejin Zheng wrote: > > > + if (!dr || !dr->enabled) > here checks whether the pci device is enabled. What is the purpose of this? The device "is_managed" or not. -Robert