Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1319164pxb; Fri, 26 Feb 2021 07:56:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMr2NOBRWte/GqgaREDVL1KaqEVwyNnMocvgKCefcAxGtQoxWueup129/6Kx1W0Q/nQ2RX X-Received: by 2002:a50:d9cc:: with SMTP id x12mr4199317edj.68.1614354982176; Fri, 26 Feb 2021 07:56:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614354982; cv=none; d=google.com; s=arc-20160816; b=nxrugy8BEeiDA63rLqOag1k4o5cpNuUGlJKvnwTObwSrAAni4kbkr20hjmeXvS9IsZ GrXhFKx1NJpd259pPFQow87WN96mUbhpnz2iHEWIymDehEhxbfi8Yx170pNKRbBoLX4g RsBCJX7ZKuagZM6gyADefATVZp2YhIDSUIGLwCrtI8XFGDRKnuhOp/wPSI8KECokeFvk W1/aBPZ0TPx0aJmh/Cb086v3S4c6AI6ZMB7OJnWabQo7lpF8WMaRthaFJKhUzmgW1mWM 7JmkUdINvUpd/k/x/MtcFiQAdohZe7Kcp3fN//xg9hm9ny9KA1icMrCFo1c5FUVu5v9u w0NQ== 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=fEL2Wtcp7vRXCt6Wpq4/98VdAV/arU6OyXJ4oSsd3Hc=; b=sKn35seiTUzKkTT8pnFQctFHWrrqUXaNkVf7kafJ6kED326mHBFp//BNVHskBTHSST n4s/A2kSN1GJoo0yYV1vRFVmK+3O6uJ0+QNNW/DftY+B61i2QLLv9Cf8Ob1mFOzcrl+V PFTSVtRKbkAjGPHpSdViEW7Y9tGbZMG8vW6JwHbV7FkHaiJ7b1PfAClPdIlXOp/chLRH 8P0Ob8w0BF+htl0NH2AAOAgvRrkDts1eh2mLO/mMJT5o8hEo4FKYVY6nVtK+278xDR4i S4Xz5l75bi3FBkUpC8UhGvK74kaLGxmbTWHLa2LlakfsHDU53igYWiENhQfbDu4RDA4l rJTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LU65kqxd; 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 y7si6108243ejm.72.2021.02.26.07.55.58; Fri, 26 Feb 2021 07:56:22 -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=@gmail.com header.s=20161025 header.b=LU65kqxd; 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 S230100AbhBZPwT (ORCPT + 99 others); Fri, 26 Feb 2021 10:52:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40948 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230022AbhBZPvz (ORCPT ); Fri, 26 Feb 2021 10:51:55 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B952C061574; Fri, 26 Feb 2021 07:51:13 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id ba1so5526861plb.1; Fri, 26 Feb 2021 07:51:13 -0800 (PST) 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=fEL2Wtcp7vRXCt6Wpq4/98VdAV/arU6OyXJ4oSsd3Hc=; b=LU65kqxdAtcmytZqXi4Eofp0P4HrKLNKG5whaGh9+xib0XaZV8nfqw8koh3an1TNjK dB8E8reDH7BIJVLQR3dYir+yBTiXR3wJA0MdoiT4uWvmWQiYCAeJVR/8O0mUjLCPkNYy fDB2s3Tbs4bHA3iv4A2hcN8+I+4Mc4OaG2bFfxiLQDooRBDaeYmLFzj3ntgVo/XYQmyk MmFG/Q0Caqgv30y6MX9mYcaJuzJJaz9aAYmSg1nTIF/AQCOU1fGzc26yUYhDULLJHk8L jd/frsVkeEdUCmzDQJUHNy7TsxXYp1kjt2+FmPnsuv6zWI8bT2Rb8fGSf17hZ5EnkuL+ dCYw== 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=fEL2Wtcp7vRXCt6Wpq4/98VdAV/arU6OyXJ4oSsd3Hc=; b=PYeuIEhXbvfUYAHO3trIyemVlxnV5olb55nqGdZO4UrJ4TIP2sLBO3fh0iu96Loep0 UCVJKiRT/cIGuLryOm0RBIW79nYCfgu1NxGDopWSGT/JXJQ1ngxIvrnVB1/7U3Fx4Eze biBHeXKf0k8PYA0AuBdsMTHMVwNmxRkKKYbSYUMy/Um2Fw0KLOPlcySCuyo0ZimMLXza rNkgzFTYVZutPJeilarv2cYHU79DwLVHdBjVuQa3UwW41NtwfN6IWDftW/Gxr4Sv+5pR 4v2Vi1C5eDX+Uv8ZtgQiDU+9aSDoqU6+AtUCxucG65OmgCyDGoOqTLN/HFtriH3UvQUG LTKg== X-Gm-Message-State: AOAM530pmn7yWNNc0vbYn3onv4O4CMDh3KcLIq8rzBSGdK1bp8te3iHA RXLG53+pdyDjm96ihmMXnSA= X-Received: by 2002:a17:90b:390b:: with SMTP id ob11mr4237550pjb.50.1614354672768; Fri, 26 Feb 2021 07:51:12 -0800 (PST) Received: from localhost (89.208.244.53.16clouds.com. [89.208.244.53]) by smtp.gmail.com with ESMTPSA id b18sm9763881pfb.197.2021.02.26.07.51.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Feb 2021 07:51:12 -0800 (PST) From: Dejin Zheng To: 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, 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 v5 4/4] i2c: thunderx: Use pcim_alloc_irq_vectors() to allocate IRQ vectors Date: Fri, 26 Feb 2021 23:50:56 +0800 Message-Id: <20210226155056.1068534-5-zhengdejin5@gmail.com> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20210226155056.1068534-1-zhengdejin5@gmail.com> References: <20210226155056.1068534-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(). Signed-off-by: Dejin Zheng --- 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.25.0