Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3358232pxj; Mon, 7 Jun 2021 08:43:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwEFP7kRoKoOM5W+Kw93SPsygGz+0q6/taqXtz47aKFcgM0+xx43kX7BTt/fMqQ01f4M0Y X-Received: by 2002:a17:907:779a:: with SMTP id ky26mr18334203ejc.293.1623080584896; Mon, 07 Jun 2021 08:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623080584; cv=none; d=google.com; s=arc-20160816; b=fl/tvS1U4/QtFay5KUe8sU9e/1Q+5uokwES/oiQIIWf+qrNdEj2Kxl80Bnw5Oj7mmm yRoZ4wZAClQWRbdEzJH8/HLHpZ1TBSUwnP6wLp/jA5+EfF9dpTAhEV8XT1GmELHwZFkF tApzXs1kMv0ZuBCtlx3Fy+tPcDTIfqbRO0GQMY5W4tElBjZg/boagDDi44GQ1hQZRdi5 fMYkP6BSOMGjnY15VL6gW4ch0eaP/HSTDj4PbxctfT+6StXGl+tgi5MVPST0gM+u7y2m qAo2ECtA0sZ/nkHDiskz8upRVO6AmkLsuz5O2QQFkftDLwkUaHuwtJnmXfdv9GqZmQmq /npQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NCCUVu48/YxKe+76n8oOpi5HhiU1MccRKkRryIWRGrY=; b=fRS5wUuMTVkJpRWwGXzkUawQBCaoYFt3KVhFskcVoHJK8cei3CvaXFCYZI1NdFWmDI 1qByug8NYI6B+oVUP20+E9qgDmFUP10hcJLTBxelrjv++XumpC7+KKsMntWvT4PoI2zl OT5b0TODfgOIAl2OdDwlNh2KNSehCdJ2TZ7YrIAoG89+2ytCV28etC+CNEvgOnj7aEQI bv8HFYvRTrvP+fBxRc7aaAUjJOZMMGgqv9jaV32a9NkdaPgoIhafGJJy/6zgE96lGdRP iuVoo6f1dceo68jPezOj4yNmmTVtLZ8XtaPoD/tK6E9hmlqOMvRhNT/qSWjcW35lue7A Phyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OS4EcGok; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e21si630818ejl.273.2021.06.07.08.42.40; Mon, 07 Jun 2021 08:43:04 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OS4EcGok; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231470AbhFGPml (ORCPT + 99 others); Mon, 7 Jun 2021 11:42:41 -0400 Received: from mail-pj1-f41.google.com ([209.85.216.41]:53780 "EHLO mail-pj1-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231384AbhFGPm3 (ORCPT ); Mon, 7 Jun 2021 11:42:29 -0400 Received: by mail-pj1-f41.google.com with SMTP id ei4so10093418pjb.3; Mon, 07 Jun 2021 08:40:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=NCCUVu48/YxKe+76n8oOpi5HhiU1MccRKkRryIWRGrY=; b=OS4EcGoksInG36ZFqUT7ibl0i7seCqXy34Y1Yaqw4UU6mQnLyBhyO4oxgvwaV757eO 3OOVg7Etfn6Ovn5a/wyGap4jFt3oQA3YF2kBfNhNi6BzLu77XttKckkx2ww85i1apfhQ ekuhbXt/9/gRFTG9/z7PmOPeVdjAZMSK9sfxC5/zv2NK7nIIQGGeorVw0T+W8sM1Vazf PSiDe0Oc9zru+52WAzgE+xrwkqxcwvcCcvGYkyCeO7uLpD0B3/BWirwS1VN2DF/puR0T 7s4mIxBw+X+t9IRUAA9Lbdef5ch4WVMffx7hQSSIycfuyA3cG85MH9ZIPY9aGRqGsvUh Z5EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=NCCUVu48/YxKe+76n8oOpi5HhiU1MccRKkRryIWRGrY=; b=gtzmYWu6qeFSxqEELrP3O2AD8vaGH+F5A5etAnejBILMvD4he2mTHpnCPRy/I+ETMI SkNWFWPU2N9u5X97dYKW0UKFpqqXYeHNCtzzxkJF7NC8AKLJcvKr5AB8LbGKcMdP9Pci ijI1OtRPii7Xrrioce/heCZBRQUfI/hUNm0lqG0aMHdnTm1ZzHqA51Tdx/SfsJXEciMm 5V4ylHMBJnzx8rnzp7X45xPBhVvTe9qHq7GXaZXmxA64GjvRaaReskvjNO36OqnCuPQ4 cVAvsBBvIff19UHdVi3n9gVhiFil5sY4rJDiF2IQf0hvJHA9oBMb3UkoG1P4GLvx9NRs qzYA== X-Gm-Message-State: AOAM530Qdqlcl3LmnW/sWCoQIK9pGcJl2H4XIzRbyoVkV4vI+vhZ4glA PqEFN7LVl/FGCrMfdpzAQlBLkAa+wKbrN3j/ X-Received: by 2002:a17:90a:db4e:: with SMTP id u14mr20775908pjx.43.1623080377825; Mon, 07 Jun 2021 08:39:37 -0700 (PDT) Received: from localhost (185.212.56.112.16clouds.com. [185.212.56.112]) by smtp.gmail.com with ESMTPSA id j3sm8696259pfe.98.2021.06.07.08.39.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Jun 2021 08:39:37 -0700 (PDT) From: Dejin Zheng To: helgaas@kernel.org, corbet@lwn.net, jarkko.nikula@linux.intel.com, andriy.shevchenko@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 Cc: linux-kernel@vger.kernel.org, Dejin Zheng Subject: [PATCH v7 4/4] i2c: thunderx: Use pcim_alloc_irq_vectors() to allocate IRQ vectors Date: Mon, 7 Jun 2021 23:39:16 +0800 Message-Id: <20210607153916.1021016-5-zhengdejin5@gmail.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210607153916.1021016-1-zhengdejin5@gmail.com> References: <20210607153916.1021016-1-zhengdejin5@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(). Acked-by: Robert Richter Signed-off-by: Dejin Zheng --- v6 -> v7: - rebase to PCI next branch v5 -> v6: - rebase to 5.13-rc4 v4 -> v5: - Modify the subject name. v3 -> v4: - No change. v2 -> v3: - No change. v1 -> v2: - Modify some commit messages. drivers/i2c/busses/i2c-thunderx-pcidrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-thunderx-pcidrv.c b/drivers/i2c/busses/i2c-thunderx-pcidrv.c index 12c90aa0900e..63354e9fb726 100644 --- a/drivers/i2c/busses/i2c-thunderx-pcidrv.c +++ b/drivers/i2c/busses/i2c-thunderx-pcidrv.c @@ -192,7 +192,7 @@ static int thunder_i2c_probe_pci(struct pci_dev *pdev, i2c->hlc_int_enable = thunder_i2c_hlc_int_enable; i2c->hlc_int_disable = thunder_i2c_hlc_int_disable; - ret = pci_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_MSIX); + ret = pcim_alloc_irq_vectors(pdev, 1, 1, PCI_IRQ_MSIX); if (ret < 0) goto error; -- 2.30.1