Message ID | 20240819165148.58201-5-pstanner@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2377DC3DA4A for <linux-arm-kernel@archiver.kernel.org>; Mon, 19 Aug 2024 17:02:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date :Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=tC041gyCjeykzm80lE0q63CM17fX2IeQcUJmRWOoBEs=; b=JARfVXeEwBjZcQ80Iq9OspjjMG h0w0IpSMUbXQ/LWP6koBlLut+LDK0rLLFpf10AIpR9FDnAXfadpxtwSSHk9euIH504niuyomsxt3a nMEc8p4Pigbw960DMgGn0wGKX5EeFwoMboORMkaTAfU8SApVJy577uNVj8+0nOD7PzyF85km5IcUo GEeAiDaLefqNGKw0PSz1zw1Nr+CRUe3M6BvUoJuQ1J26xopE3ciuADBMsbPIKwiCyb6Xp/qHGZhNY ZHSpiAsarmRF5EU25oysnbVeVu9+aeKwpmmMUcWnScSkDCPwLJaagYpzyOk1un9X5NyIA6bT8BuIX GbWKGrJQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sg5lv-00000002IeM-1JVa; Mon, 19 Aug 2024 17:02:23 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sg5cj-00000002Fd4-0AIq for linux-arm-kernel@bombadil.infradead.org; Mon, 19 Aug 2024 16:52:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Type:Content-Transfer-Encoding :MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Sender:Reply-To:Content-ID:Content-Description; bh=tC041gyCjeykzm80lE0q63CM17fX2IeQcUJmRWOoBEs=; b=VSmZZr225nDQWPykJQFanGshuQ I2i5HiXXf0ZLMPQbl6aeb2z7WgAXsTj5TadoEoXiFCDouwYKH74kG9mIWLfwwwgLtgyAya7Kdd/xR eaAYNVoqz71mhs92gCpiutFMheiuKW4pAhLTXucDNPYaH3ifCjP5KNdfDlce60NJV4rrWGWH2HlEa nZZUjme6gTS3o5iM1MRJkZL50PqSJgW30wigSf0BajlbDY615l0/3tnh44M+tZVTni1Y9FWe+NFXg u/+eGCGCC2K2H1At0u7tlknQOXG6jZfhFtHOzBI8YICDCSBIDUP/o68+JqoJbwQOVLhFJUVyI4pz0 IeXt37WA==; Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sg5cf-00000009Av6-2Tff for linux-arm-kernel@lists.infradead.org; Mon, 19 Aug 2024 16:52:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724086367; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tC041gyCjeykzm80lE0q63CM17fX2IeQcUJmRWOoBEs=; b=PhhMsPZ4UBuRMCfOKN8URsEsjQilsaRYmyyfLmoYv2ioD70RwUed4xMEOAcN6lYnogzlss 9YhOBofBUz6cbqypT+lDGhSAE5u4lC48+NrqFYLIx76sH+l4nhOL2vvWUQF6QB1xdi4WM6 NCogHG2QaOxNGG+JSvne8VVJjDpWsdU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724086368; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tC041gyCjeykzm80lE0q63CM17fX2IeQcUJmRWOoBEs=; b=L2Aydgd/9yNEcoKPFHoWaU0ii5fG3jzRZ8/pzPvCIpHRZ+VITsF32CROL2x2R5UTJDIa1L fLl8MSjJQlPzFAaHaCl/pW3rSSnD+g5h+6+CnDZI0lpkWPKRmNtrqh+lRXpN3c533GH+z6 Im5lU4ypHjLv4Ff3npCI0Gh8o9IfDG4= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-695-mzTiJjJxO5u24EgZ9NEdzA-1; Mon, 19 Aug 2024 12:52:47 -0400 X-MC-Unique: mzTiJjJxO5u24EgZ9NEdzA-1 Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-6bf6a978302so9344896d6.1 for <linux-arm-kernel@lists.infradead.org>; Mon, 19 Aug 2024 09:52:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724086366; x=1724691166; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=tC041gyCjeykzm80lE0q63CM17fX2IeQcUJmRWOoBEs=; b=gFB1lx8935UUkxJqa8BDB7gVBUYWUJNTTQDdl9VVtRWTxHXvXtRO1NfTa+/48PU3oa i7DS98Z/POfO2nKtdn4tBKNvq6keE/rTAgbhrPfNwHKPrHwqp8aOPANTpyC6tlYILCF5 9cCHBkzzv9pBvI5NrpbGdGXGgW5V05/8so39tM2Z1a3VrnGkNmDCn4vahC2LzqsINvU6 wrqgy0RNnahUlgSUCFBt0yg9zDcPyfDNFnl3aVQs+O0bwfSU5T2rFkkV5Oxtko4gVZW2 ztvJsocBFo4ALc2S9dBKpKq8ihE5vTiEjpOPXg9TxfaH7mHCDJIonsjDim1rR1KSfzfu H7Cg== X-Forwarded-Encrypted: i=1; AJvYcCUt5q7FZluLX/vcfl1ld+UMwXkLiK/3vQ1T4157vdMHs0jU8U1SiK+HEWBzOZFp1kNAzuOeUIAjyG1b/3hxuk4xLGlswvGAee1P/DxjGCDAvclhEA8= X-Gm-Message-State: AOJu0Yw9JBJYOI8cCKRJToGGn7llmBmwwwvEm+bvH0O98Rnk1RssKUMC uUFmJDlpVqfY81CExo1+p/pB1Jheo0aCtQzRpMyAGp7o0PoMUlc6i2CecwRLeAwPOq22ZaDnI4R F++3655Wm7dV/PwJfrBlTbbgOc7jmU391IDoLfDxT925shHtP2hoMiu0ZQAqjrjl50bWdFasx X-Received: by 2002:a05:620a:370c:b0:79b:eca2:b807 with SMTP id af79cd13be357-7a506b5a38amr835424085a.3.1724086366033; Mon, 19 Aug 2024 09:52:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEtuH1Vc6yAH1kELWuk66Dch7OPcqy61XGhK4KsxZEzCDqaZHzSUCLXnDGGtW4mk4ZWqmvkng== X-Received: by 2002:a05:620a:370c:b0:79b:eca2:b807 with SMTP id af79cd13be357-7a506b5a38amr835421185a.3.1724086365518; Mon, 19 Aug 2024 09:52:45 -0700 (PDT) Received: from eisenberg.muc.redhat.com (nat-pool-muc-t.redhat.com. [149.14.88.26]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a4ff01e293sm446579885a.26.2024.08.19.09.52.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Aug 2024 09:52:45 -0700 (PDT) From: Philipp Stanner <pstanner@redhat.com> To: onathan Corbet <corbet@lwn.net>, Jens Axboe <axboe@kernel.dk>, Wu Hao <hao.wu@intel.com>, Tom Rix <trix@redhat.com>, Moritz Fischer <mdf@kernel.org>, Xu Yilun <yilun.xu@intel.com>, Andy Shevchenko <andy@kernel.org>, Linus Walleij <linus.walleij@linaro.org>, Bartosz Golaszewski <brgl@bgdev.pl>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Jose Abreu <joabreu@synopsys.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Bjorn Helgaas <bhelgaas@google.com>, Alvaro Karsz <alvaro.karsz@solid-run.com>, "Michael S. Tsirkin" <mst@redhat.com>, Jason Wang <jasowang@redhat.com>, Xuan Zhuo <xuanzhuo@linux.alibaba.com>, =?utf-8?q?Eugenio_P=C3=A9rez?= <eperezma@redhat.com>, Richard Cochran <richardcochran@gmail.com>, Mark Brown <broonie@kernel.org>, David Lechner <dlechner@baylibre.com>, =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>, Jonathan Cameron <Jonathan.Cameron@huawei.com>, Philipp Stanner <pstanner@redhat.com>, Hannes Reinecke <hare@suse.de>, Damien Le Moal <dlemoal@kernel.org>, Chaitanya Kulkarni <kch@nvidia.com>, "Martin K. Petersen" <martin.petersen@oracle.com> Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linux-fpga@vger.kernel.org, linux-gpio@vger.kernel.org, netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, virtualization@lists.linux.dev Subject: [PATCH 3/9] fpga/dfl-pci.c: Replace deprecated PCI functions Date: Mon, 19 Aug 2024 18:51:43 +0200 Message-ID: <20240819165148.58201-5-pstanner@redhat.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240819165148.58201-2-pstanner@redhat.com> References: <20240819165148.58201-2-pstanner@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240819_175249_904568_FFFF5D20 X-CRM114-Status: GOOD ( 14.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
PCI: Remove pcim_iounmap_regions()
|
expand
|
diff --git a/drivers/fpga/dfl-pci.c b/drivers/fpga/dfl-pci.c index 80cac3a5f976..2099c497feec 100644 --- a/drivers/fpga/dfl-pci.c +++ b/drivers/fpga/dfl-pci.c @@ -41,10 +41,13 @@ struct cci_drvdata { static void __iomem *cci_pci_ioremap_bar0(struct pci_dev *pcidev) { - if (pcim_iomap_regions(pcidev, BIT(0), DRV_NAME)) + void __iomem *bar0; + + bar0 = pcim_iomap_region(pcidev, 0, DRV_NAME); + if (IS_ERR(bar0)) return NULL; - return pcim_iomap_table(pcidev)[0]; + return bar0; } static int cci_pci_alloc_irq(struct pci_dev *pcidev) @@ -296,7 +299,7 @@ static int find_dfls_by_default(struct pci_dev *pcidev, } /* release I/O mappings for next step enumeration */ - pcim_iounmap_regions(pcidev, BIT(0)); + pcim_iounmap_region(pcidev, 0); return ret; }
pcim_iomap_regions() and pcim_iomap_table() have been deprecated by the PCI subsystem in commit e354bb84a4c1 ("PCI: Deprecate pcim_iomap_table(), pcim_iomap_regions_request_all()"). Port dfl-pci.c to the successor, pcim_iomap_region(). Consistently, replace pcim_iounmap_regions() with pcim_iounmap_region(). Signed-off-by: Philipp Stanner <pstanner@redhat.com> --- drivers/fpga/dfl-pci.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)