From patchwork Wed Oct 18 11:32:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ilpo_J=C3=A4rvinen?= X-Patchwork-Id: 15541 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4722494vqb; Wed, 18 Oct 2023 04:33:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEDRP+r9rUlrFuUq0AHvWjSK50JS2pfjvmJn1t/HT837/GeFMCl7kchy0Z5yMDo/DSP0ic4 X-Received: by 2002:a05:6a20:f387:b0:17b:170c:2d11 with SMTP id qr7-20020a056a20f38700b0017b170c2d11mr3455979pzb.6.1697628830513; Wed, 18 Oct 2023 04:33:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697628830; cv=none; d=google.com; s=arc-20160816; b=QZXzdZZMezV70R5ZlSs8K8gr/rW32oRArEucUqRyONS5RL2krDMWzynmWS81cTvnJj 5BI2UfgxSim2ZnuiQ48VOGTRfyHVGyKJCkS5lXPm4OjyXp6CCEk4enutdKf2JDz+SkFa JNvIjzfce6CTmSzWiGiUc/3Bio6j9miR0HNv0ihOepH3fUeoRQgp02idb7Tlx0VbdxB4 2iwxWtJIxWreRzOPoN9B5sXKPPq9DUOb/VLyi7Hhodcm662F5hGav4xllPymmLRkguv2 CSgslW1hEYNvrAMzA6TOYQ2XSdUUHgQ9lcW2KBg+cuF8oM4wjeqfNOb6lsnXqzufFRQw q6kQ== 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 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id i191-20020a6387c8000000b005859cd26195si498267pge.487.2023.10.18.04.33.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 04:33:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; 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 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 20281802AA26; Wed, 18 Oct 2023 04:33:48 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229702AbjJRLdg (ORCPT + 24 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_J=C3=A4rvinen?= To: Bjorn Helgaas , linux-pci@vger.kernel.org, Lorenzo Pieralisi , Rob Herring , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , Jonathan Cameron Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Ilpo_J=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 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 groat.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 (groat.vger.email [0.0.0.0]); Wed, 18 Oct 2023 04:33:48 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780092848800702568 X-GMAIL-MSGID: 1780092848800702568 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(-)