Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5747963pxb; Tue, 16 Feb 2021 06:44:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJztgGwEIg8BILOz/Y5VcIzM/fhPl1fjee9A0Dxq+KNCfdLDPOlfvnp8/WFsyLKuX4jAeS1T X-Received: by 2002:a05:6402:3114:: with SMTP id dc20mr21442173edb.197.1613486687111; Tue, 16 Feb 2021 06:44:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613486687; cv=none; d=google.com; s=arc-20160816; b=TA6ckWyR5fsiPYl3a/NkMECSbkZerG7QrkQvvXfnYhuWRW6WUy2HmHAEDm5iAKFoa5 QNvSQkETm3016qU1Kage8eYPzxTq5wcgk6WzslcxXZWQGg4QuG2Q+T+W/qDv32/SJzpp XhbM9LigrCWxffJbvb9LMKcuCOE8mKZ8+Ztii/zrBQTjd4UbaJvw/cLM9q+r+q0Q2QXW 4RydGXGwqjky473bpiJNqsLb1qLEdHYhlJeXM6rOCBTKuW1QOlo5EcIpwGAxBJUJT8t1 S2sFiCSEy6Tz4++kOlICy1vT/ikk91StJds+vaZY0Y0jVXUx1aShL6yIW2IZ11bLZqqv lpBw== 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=xyomtSrF8mv+t6cjc8mnb1mB+q0+/2wFqxyeXX0zwhk=; b=YvjAE5a5rMMipA6dYOWvmRK9OlUb10/4NH1hkQpeqG3KfaUdVdsY2I/A/bWjy35Ian x9d6Vefv5D4bHnDToLy9J6Z0aQuzCH99IpqJRXjXVg/SRKkGMLF49JuZPx72XzLUIc2l 91cCZbK7kZlteLklmsf7HhYLkV3OZVKtrQvFVl6RqFyRxd/jaVvDj0FcOOhtLn+18gZc j/+lBDCQ+sXHylDum+RPgvIIpmXgjGh80x54sAy6+Kb0NXNX7LBQG2S+32k20pDa6odL 4QxMu4VsSOp+XsatswYO52crll85uRC6iF9gDVufJZVJBmrGHssWiFo7QxJpbnfUfgGD 0mDA== 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 i24si14217219ejz.419.2021.02.16.06.44.23; Tue, 16 Feb 2021 06:44:47 -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; 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 S229917AbhBPOlt (ORCPT + 99 others); Tue, 16 Feb 2021 09:41:49 -0500 Received: from mga06.intel.com ([134.134.136.31]:60032 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229916AbhBPOlL (ORCPT ); Tue, 16 Feb 2021 09:41:11 -0500 IronPort-SDR: jIas1xF4TaOMw+ssUkMtzicRfSWUDAzUO3b4FTlWVdjqE2uvNGLv88+rt1kqPeX96WU+LtIsPJ +vsmfDa+0+/A== X-IronPort-AV: E=McAfee;i="6000,8403,9896"; a="244377521" X-IronPort-AV: E=Sophos;i="5.81,183,1610438400"; d="scan'208";a="244377521" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2021 06:39:14 -0800 IronPort-SDR: zXTNp0diplCmlIc1HMcl9+3iipNwCOEwZUWnYn4bABY29FaA3CkgDNxoeIKWy3Mx9tjPvJn2Kj /KU7OBGzcpRA== X-IronPort-AV: E=Sophos;i="5.81,183,1610438400"; d="scan'208";a="493310383" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Feb 2021 06:39:11 -0800 Received: from andy by smile with local (Exim 4.94) (envelope-from ) id 1lC1VN-005U7J-4w; Tue, 16 Feb 2021 16:39:09 +0200 Date: Tue, 16 Feb 2021 16:39:09 +0200 From: Andy Shevchenko To: Dejin Zheng Cc: corbet@lwn.net, jarkko.nikula@linux.intel.com, mika.westerberg@linux.intel.com, rric@kernel.org, bhelgaas@google.com, wsa@kernel.org, linux-doc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-pci@vger.kernel.org, kw@linux.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/4] i2c: designware: Use the correct name of device-managed function Message-ID: References: <20210216141810.747678-1-zhengdejin5@gmail.com> <20210216141810.747678-4-zhengdejin5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210216141810.747678-4-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 Tue, Feb 16, 2021 at 10:18:09PM +0800, Dejin Zheng wrote: > Use the new function pcim_alloc_irq_vectors() to allocate IRQ vectors, > the pcim_alloc_irq_vectors() function, an explicit device-managed version > of pci_alloc_irq_vectors(). If pcim_enable_device() has been called > before, then pci_alloc_irq_vectors() is actually a device-managed > function. It is used here as a device-managed function, So replace it > with pcim_alloc_irq_vectors(). ... > - r = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES); > + r = pcim_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_ALL_TYPES); > if (r < 0) > return r; It's good, but now why do we have pci_free_irq_vectors() in the same file? -- With Best Regards, Andy Shevchenko