From patchwork Thu Aug 22 13:47:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Philipp Stanner X-Patchwork-Id: 821446 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A68D51CB31F for ; Thu, 22 Aug 2024 13:48:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724334483; cv=none; b=M/Z9RO5Cr+Dy0yWTfrfCZ6ZtsgoydxSlJyyGO+z75v3FoGuHZbtLMGm1FLcs2tF1lixS1q+LnJiYUEvcvxS3R5kDDk5xSteXx004M22Uncr6MRLfZJUUn746OfhzLLGR4i+HcEnFGs88xaf74hBzp/uN8wC2sLlF1NtJDOMUgfQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724334483; c=relaxed/simple; bh=TveaYkEbx2doRY7IcRS2QWPC/9cfsUPF8paUrSreb6o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Q2OIiF2JzX6i2US979gh1IQ54Emm58zItFsKeH6o0ACKBJbZJ9+6hFnly3AVj5UgdBQDiMomSb/RwVmy32d8ac2TaOFDM0huPd0Z7Ue8sNP72otJjv2O2qKdUKtbyPOGYPxLidEBrvoGt7JeAmsdn8AIwyUiO/Aqv3aX1xPWyw4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=a4raivxH; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="a4raivxH" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724334480; 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; bh=FjYBhspv7tRST0pSqSmRh821Mv70zB5zctMwrlaK9DI=; b=a4raivxHIOCxlHd4d7UGKAv+ITrdQsuCSp4uNXTiz4Lp2QVBHJY8f0G9CdKakUb9jg0HbG wxCxfxFytZWZA6KpMoKTxtB24WKY82OEmF3q8tOEeY5Bsd38ru33IFkzGf67IwkFtxm8aP c4QoQqmD0OkZV7D4a4UIagWnjPG3qdA= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-644-sO9n9kqzN_-NTJ-ske5zsg-1; Thu, 22 Aug 2024 09:47:59 -0400 X-MC-Unique: sO9n9kqzN_-NTJ-ske5zsg-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-428ea5b1479so6323415e9.0 for ; Thu, 22 Aug 2024 06:47:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724334478; x=1724939278; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FjYBhspv7tRST0pSqSmRh821Mv70zB5zctMwrlaK9DI=; b=aZIIEjt6ekvCUyETUWQT3jYnB3SEjMSKosfHxIWRBNYYVQ4/7RtyfoovCL+ELTtmWY qQvEuccG4Mv9zG2CNUBYUk+4EE45V4LcwFtky09uuxxLop2i6TZhu42IuVzQoGDzVWe6 JOMWuvq5HWhd+f6a3zbfLE3qHmeSNXiGYK0gbczsEplhGXxK0Q/JSWTZ1J4+Skm5FKxd +bX+ech3LnSH2WfwrLTqXwIGspLhytVDR8JGpiIils01Sof4Wreb3kobZvU2KEMx19jj yrLbbjozkDTvW23mFl6tT4ISA7tYZtkUqO0z21Cc038c9eqK/abcfT33xw45v6MbEMzL EeqQ== X-Forwarded-Encrypted: i=1; AJvYcCWR0qKhGd1C5Ll8jrfHvh4pw5GhU+UQZ27DoLmYPu6mgpfqCK4JID8IAtTz3WdWk1b7a5m2sdy3Zq1b@vger.kernel.org X-Gm-Message-State: AOJu0YzGyUULjiCLKl9opWo9e/iaOBDLuXQy4OqfTPj0xWbOYRPpWXFF xrOA+FdK5QcS+385pgoyhTPk7adzb1FOAqENLnZZyHjqxXvgKHtpMWg+uikv6Hs+asxbJ0eOIZh m+zW1D1xDnkrKadE/2EObXF+uHJJQP7Bg5X5r87ylSsBURww4i/esl4HPHu4= X-Received: by 2002:a05:600c:5014:b0:426:6e95:78d6 with SMTP id 5b1f17b1804b1-42ac55babf8mr14882835e9.4.1724334478053; Thu, 22 Aug 2024 06:47:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH9pgATN30e2cGvgnx/4ylawVQ+wC24Vnwz41hd/vPVumxXeQFsraVN5ewZN1S7fwv2HF76Rg== X-Received: by 2002:a05:600c:5014:b0:426:6e95:78d6 with SMTP id 5b1f17b1804b1-42ac55babf8mr14882365e9.4.1724334477513; Thu, 22 Aug 2024 06:47:57 -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 5b1f17b1804b1-42ac5162322sm25057215e9.24.2024.08.22.06.47.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2024 06:47:57 -0700 (PDT) From: Philipp Stanner To: Jonathan Corbet , Jens Axboe , Wu Hao , Tom Rix , Moritz Fischer , Xu Yilun , Andy Shevchenko , Linus Walleij , Bartosz Golaszewski , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Bjorn Helgaas , Alvaro Karsz , "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , =?utf-8?q?Eugenio_P=C3=A9rez?= , Richard Cochran , Mark Brown , David Lechner , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Philipp Stanner , Damien Le Moal , Hannes Reinecke , Chaitanya Kulkarni 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 v3 0/9] PCI: Remove pcim_iounmap_regions() Date: Thu, 22 Aug 2024 15:47:32 +0200 Message-ID: <20240822134744.44919-1-pstanner@redhat.com> X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Changes in v3: - fpga/dfl-pci.c: remove now surplus wrapper around pcim_iomap_region(). (Andy) - block: mtip32xx: remove now surplus label. (Andy) - vdpa: solidrun: Bugfix: Include forgotten place where stack UB occurs. (Andy, Christophe) - Some minor wording improvements in commit messages. (Me) Changes in v2: - Add a fix for the UB stack usage bug in vdap/solidrun. Separate patch, put stable kernel on CC. (Christophe, Andy). - Drop unnecessary pcim_release_region() in mtip32xx (Andy) - Consequently, drop patch "PCI: Make pcim_release_region() a public function", since there's no user anymore. (obsoletes the squash requested by Damien). - vdap/solidrun: • make 'i' an 'unsigned short' (Andy, me) • Use 'continue' to simplify loop (Andy) • Remove leftover blank line - Apply given Reviewed- / acked-bys (Andy, Damien, Bartosz) Important things first: This series is based on [1] and [2] which Bjorn Helgaas has currently queued for v6.12 in the PCI tree. This series shall remove pcim_iounmap_regions() in order to make way to remove its brother, pcim_iomap_regions(). @Bjorn: Feel free to squash the PCI commits. Regards, P. [1] https://lore.kernel.org/all/20240729093625.17561-4-pstanner@redhat.com/ [2] https://lore.kernel.org/all/20240807083018.8734-2-pstanner@redhat.com/ Philipp Stanner (9): PCI: Make pcim_iounmap_region() a public function fpga/dfl-pci.c: Replace deprecated PCI functions block: mtip32xx: Replace deprecated PCI functions gpio: Replace deprecated PCI functions ethernet: cavium: Replace deprecated PCI functions ethernet: stmicro: Simplify PCI devres usage vdpa: solidrun: Fix UB bug with devres vdap: solidrun: Replace deprecated PCI functions PCI: Remove pcim_iounmap_regions() .../driver-api/driver-model/devres.rst | 1 - drivers/block/mtip32xx/mtip32xx.c | 16 +++--- drivers/fpga/dfl-pci.c | 16 ++---- drivers/gpio/gpio-merrifield.c | 14 ++--- .../net/ethernet/cavium/common/cavium_ptp.c | 10 ++-- .../ethernet/stmicro/stmmac/dwmac-loongson.c | 25 ++------ .../net/ethernet/stmicro/stmmac/stmmac_pci.c | 18 ++---- drivers/pci/devres.c | 24 +------- drivers/vdpa/solidrun/snet_main.c | 57 ++++++++----------- include/linux/pci.h | 2 +- 10 files changed, 61 insertions(+), 122 deletions(-) Reviewed-by: Andy Shevchenko