From mboxrd@z Thu Jan 1 00:00:00 1970 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 EB59A64A8F for ; Mon, 2 Sep 2024 06:24:20 +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=1725258262; cv=none; b=b2IQZxuHJjHxaNJmztT5WvXH2AIt2XNmcIfa+V37/y7DRXEjdAiVShjTaOM7Pax4l5VSVbNb+9d5tr1a3lm5O8A7Xy38eQ/62/Zkxadznyyaavng4NdPlJ11PD1/8ezO7am61IkgP2Zw3o0gcR9QSTJZd3+OrJGjMrRDUnmRDKw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725258262; c=relaxed/simple; bh=T1yqAXM+3xtKVMn8RRidXoz4nHOE8Ci3eZ4JabVPDqo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=kCmArIOavgxR2m6OGJJ/WUh2y8eHIMZPFD3hLLwqJucyM1/wsVPQiiKLZow0a8EoeCjZ8fOp1lmVU8zEtXiZwa+01yVVIHMObgN2nv4fx7WDDp58VD3wDllLULze8cxfT5p5lm5zfGpu0/989ivGGVO/yxo7rUa8gD0yFZDl/aQ= 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=O2STcWGz; 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="O2STcWGz" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1725258259; 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=N92PkDzVG2acNWBWqEKftR5u8lrNIs7d1Jmmcz1T5Sc=; b=O2STcWGzo6BzxYi5R9R/RXQDjYxiqmTWAjv6QT6E7cjLEd396GDNF5L2Q+EE8Q0Ru31ZbH /4dBZ83AaI+Q7w7rHg0iqfLBOVc+B9NOaIuYQcjbhsBJZXNq4kVPpywsHSlstJHgoKbZAZ MdtFnBOXqDpQvPasnbZqUdglxUSJyIE= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-636-ddpLeZswMj-YeKdkCRLsMw-1; Mon, 02 Sep 2024 02:24:17 -0400 X-MC-Unique: ddpLeZswMj-YeKdkCRLsMw-1 Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-7a8110f90a2so489385385a.3 for ; Sun, 01 Sep 2024 23:24:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725258256; x=1725863056; 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=N92PkDzVG2acNWBWqEKftR5u8lrNIs7d1Jmmcz1T5Sc=; b=V9TvbDQGraKZf1ypB3fqpuf84SMHcN78R2WOTXQuo6B+AUpxctfCgPmLWgGvVIwsgw WkCpuBYKcdXwZ8LvDix6F3QvadYm6nwwKSTZasYXy1leOMR4OW80gD7/adprEbOmC/6Y EyO84Lzg5M/+K0ulkupnp+wr/X47IRRyn4Rcf5XSc6oYx7O0yk70Ch+6/2BCFz/fS9wG RAP3y397HM87p3Ehc02CckRy9D+lt9mq+LKtLhFL+GAHkX2hUXb16TABXAsIr/LU8r98 gCH+EqMD4UqQPuyF4hTlobgUGRUNR7b8W7C7DN6rZoUEBOLYsfmrWi2OuvTBRPaeGYyE fVkA== X-Forwarded-Encrypted: i=1; AJvYcCWTAVe4pykoYjV5X+NPmNDv+Ni2TKoygBFMaPSnIKSBOypEoFYvByVmDudtbReuFGLSf2eZT6Q0/XhfjjI=@vger.kernel.org X-Gm-Message-State: AOJu0YzG8VN8hvQy5N8dgdtLWp+WRoNYNjHwcEEv6ESIX7E8Fz6RGZXa RMcRuMbWbZ5slg7ICYNxLxIImoj5gm69P8t0iDN2ec6c3XUk5e1r7trgOQ716yBCiZkZqXdqYuA 7LXUh+9SN6y/HmgFlSf1rOqiTCYal+AKic5/q1jMl8O3hPZ9PFhub8KxQMriaZg== X-Received: by 2002:a05:620a:470b:b0:79f:37f:9c40 with SMTP id af79cd13be357-7a8f6b757f6mr930478285a.12.1725258256491; Sun, 01 Sep 2024 23:24:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGvWCwRx+ZDkAone/w4iYXXg0Gj5I6KQVMwBq/TysV8VXpC3ipaLBge9Ly4O8CWfgnEOFEcRw== X-Received: by 2002:a05:620a:470b:b0:79f:37f:9c40 with SMTP id af79cd13be357-7a8f6b757f6mr930474585a.12.1725258256145; Sun, 01 Sep 2024 23:24:16 -0700 (PDT) Received: from eisenberg.redhat.com (nat-pool-muc-t.redhat.com. [149.14.88.26]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7a806d3a34asm389211385a.84.2024.09.01.23.24.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Sep 2024 23:24:15 -0700 (PDT) From: Philipp Stanner To: 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 , Bjorn Helgaas , Richard Cochran , Damien Le Moal , Hannes Reinecke , John Garry , Chaitanya Kulkarni , Philipp Stanner Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fpga@vger.kernel.org, linux-gpio@vger.kernel.org, netdev@vger.kernel.org, linux-pci@vger.kernel.org Subject: [PATCH v6 0/5] PCI: Remove most pcim_iounmap_regions() users Date: Mon, 2 Sep 2024 08:23:37 +0200 Message-ID: <20240902062342.10446-2-pstanner@redhat.com> X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changes in v6: - Remove the patches for "vdpa: solidrun" since the maintainer seems unwilling to review and discuss, not to mention approve, anything that is part of a wider patch series across other subsystems. - Change series's name to highlight that not all callers are removed by it. Changes in v5: - Patch "ethernet: cavium": Re-add accidentally removed pcim_iounmap_region(). (Me) - Add Jens's Reviewed-by to patch "block: mtip32xx". (Jens) Changes in v4: - Drop the "ethernet: stmicro: [...] patch since it doesn't apply to net-next, and making it apply to that prevents it from being applyable to PCI ._. (Serge, me) - Instead, deprecate pcim_iounmap_regions() and keep "ethernet: stimicro" as the last user for now. - ethernet: cavium: Use PTR_ERR_OR_ZERO(). (Andy) - vdpa: solidrun (Bugfix) Correct wrong printf string (was "psnet" instead of "snet"). (Christophe) - vdpa: solidrun (Bugfix): Add missing blank line. (Andy) - vdpa: solidrun (Portation): Use PTR_ERR_OR_ZERO(). (Andy) - Apply Reviewed-by's from Andy and Xu Yilun. 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(). 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 (5): PCI: Deprecate pcim_iounmap_regions() 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 drivers/block/mtip32xx/mtip32xx.c | 18 ++++++++---------- drivers/fpga/dfl-pci.c | 16 ++++------------ drivers/gpio/gpio-merrifield.c | 14 +++++++------- .../net/ethernet/cavium/common/cavium_ptp.c | 7 +++---- drivers/pci/devres.c | 8 ++++++-- include/linux/pci.h | 1 + 6 files changed, 29 insertions(+), 35 deletions(-) -- 2.46.0