Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3728524rdg; Wed, 18 Oct 2023 04:33:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFhcEZM7vdYrl6Cux2WR1nrc6Dpl7uuRB/J0JkHoEedjcPXSsY/87luxW3qNJXitV0e7Kjk X-Received: by 2002:a17:903:610:b0:1c5:8a0e:b01e with SMTP id kg16-20020a170903061000b001c58a0eb01emr4181739plb.63.1697628826001; Wed, 18 Oct 2023 04:33:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697628825; cv=none; d=google.com; s=arc-20160816; b=gj9WeSoMAWlnSR6EQSSxp0PsLnP6EOQAImVHAjHT8anaLQrlX7CQ6rm6Xtt9U5aY/Z SaghmF4Kpxx4ccHlsOWMEVfXgLfhA8vcUpnRH3Q8569//Iy7ZASmgM8DfVW1YO6rq9yB WhbiSDiQsWQHZJRn3gh7dS2b5FqQGr2z6BmbHHgboBINeYR9GBVKQP26sjyVCKFFjyss Bn+6GZ8JiC+ZD4BRGGyQgJA0YqBdiPGpILy1miFfMvKlHUqRI3YXpiC5gLbcWtByseV7 09QzrQ55TWaBFgOxLI0BTmib2ctpqBwU6zxOwA/eMtE7N9NVf4K7QT1k8r6WDhSmnQAr 2hTg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=MmtIiOiB/xDUv4HLl1SQdurDS7JpA74+by2mETp5rz8=; fh=u9X3aU2HGWcAuuCTLLPDgkbk1YkrnUO0FAZ+QBAB4Ik=; b=PkCZ7jbDxc9S+ZdaJ/6eIByy+drbbAALD7Hxplh+AsgrExUZX9jGGZqx19QqkIS9zw DOjcoIH4rwfNYRLTg79PtXMioUzzf7WtFVlgM7SCy8SVsNlEqInLTVWJJmjUxFtF30op +NrqC7bXIxbjVq/N3q4E4KUgRlYWNJ1q3HIsgvzturKbuf46QlTDFC7gMJGQgJ3jYveP R+JLYMA3lhnBrca6jBaGOeI5RRKW9xrG1Kd8e1MdMawa4nUYyZj+7NPdERR2bbVGhp0C K6ZYs5uWc02uRhr/utDI3mmSmvO3zATVO4C+ySL4X3bOIJ5qQ7rPrelyBx/76UdQGfQD WsJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N5Cpkj4B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id e13-20020a170902d38d00b001c62e42ad8bsi3835072pld.72.2023.10.18.04.33.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 04:33:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N5Cpkj4B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 17AEB80220CD; Wed, 18 Oct 2023 04:33:43 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229629AbjJRLdg (ORCPT + 99 others); Wed, 18 Oct 2023 07:33:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229794AbjJRLdf (ORCPT ); Wed, 18 Oct 2023 07:33:35 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7AD18114; Wed, 18 Oct 2023 04:33:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697628813; x=1729164813; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=9ROssOhumx09tQhub2UcmdGDVJ0uIUZmqJaxfmWuU/U=; b=N5Cpkj4BNPLsA1zpf/oyijhvWTPLE3kKWvmeo5RSugmfpzFDul7qWnSn iL1k0AJ9A9SxfrH1hPmrPBEfU1JiYdJOYLBxyWar3/ypfuGgopXG4cvfl iUyIfl7bWQmueopJ3CXLRD6Xv4+HnwaMpJpb+h7nT/neQZ2+9+ujnVXRs dsv7XcAk8mwEcQsyxOXjZWAudHpO0ZI5umfDDXZ91MpvIo2MARBFUKjAc YMmQyyJcx8TndhL8zZYlMkshV0sTUPKlbCS1VaKp+njUqGwHz9dhYIY83 l/Y+QtK4TefvsCVQqTsyNVxo81LpPZyvgI5GIK+3WTlxWlU0mX0t9TNp2 Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="376365518" X-IronPort-AV: E=Sophos;i="6.03,234,1694761200"; d="scan'208";a="376365518" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 04:33:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10866"; a="760191924" X-IronPort-AV: E=Sophos;i="6.03,234,1694761200"; d="scan'208";a="760191924" Received: from suguccin-mobl1.amr.corp.intel.com (HELO localhost) ([10.252.44.63]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 04:33:29 -0700 From: =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= To: Bjorn Helgaas , linux-pci@vger.kernel.org, Lorenzo Pieralisi , Rob Herring , =?UTF-8?q?Krzysztof=20Wilczy=C5=84ski?= , Jonathan Cameron Cc: linux-kernel@vger.kernel.org, =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Subject: [PATCH 0/7] PCI: Use FIELD_GET/PREP() & other reg field cleanups Date: Wed, 18 Oct 2023 14:32:47 +0300 Message-Id: <20231018113254.17616-1-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 18 Oct 2023 04:33:43 -0700 (PDT) Hi, Here's what I think should cover most of the remaining FIELD_GET/PREP() conversions under drivers/pci/. The patch from Bjorn is from https://lore.kernel.org/linux-pci/20231010204436.1000644-7-helgaas@kernel.org/ But has been adjusted to better blend in with the other DPC changes. I've preserved Bjorn as the main From/SoB, and added myself before his name instead (since I modified it but my main contribution was to remove stuff he had made to it). Bjorn Helgaas (1): PCI/DPC: Use FIELD_GET() Ilpo Järvinen (6): PCI: cadence: Use FIELD_GET() PCI: dwc: Use FIELD_GET/PREP() PCI: hotplug: Use FIELD_GET/PREP() PCI/DPC: Use defined fields with DPC_CTL register PCI/DPC: Use defines with DPC reason fields PCI/MSI: Use FIELD_GET/PREP() .../pci/controller/cadence/pcie-cadence-ep.c | 9 ++-- .../pci/controller/dwc/pcie-designware-ep.c | 7 ++-- drivers/pci/controller/dwc/pcie-tegra194.c | 5 +-- drivers/pci/hotplug/pciehp_core.c | 3 +- drivers/pci/hotplug/pciehp_hpc.c | 5 ++- drivers/pci/hotplug/pnv_php.c | 3 +- drivers/pci/msi/msi.c | 10 +++-- drivers/pci/pcie/dpc.c | 42 ++++++++++++------- drivers/pci/quirks.c | 2 +- include/uapi/linux/pci_regs.h | 9 ++++ 10 files changed, 61 insertions(+), 34 deletions(-) -- 2.30.2