From patchwork Fri Sep 15 15:57:45 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: 14079 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp1385466vqi; Fri, 15 Sep 2023 16:46:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFZKxCM4UmXyXnmdvHgErbVx82Y/qrv0stBXFBswyzKqS94CcIJQ5XpQQBoNpVbEhfU0rxH X-Received: by 2002:a05:6a20:3955:b0:137:c971:6a0c with SMTP id r21-20020a056a20395500b00137c9716a0cmr3227963pzg.31.1694821565549; Fri, 15 Sep 2023 16:46:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694821565; cv=none; d=google.com; s=arc-20160816; b=acZaYxPlN3a8iF3FIYP3KB8TmiZn7L/QT+B4dzdqfmuu1+gqftRozEg43hVTAmT3c6 E0SzELIoeBewNPV47F3uGFzUbRhsby4FDxYeKYLHV25uV7dZUkVOxbr9rjTy1AJ7y5cU RpAzqsacTMFpqlnd+KVkR3t5FWTi+ZEm5RRtxNQGsT1kIWirYpFehMi/qkxW40Q5TET2 IRhht+eyH8VAOMotXhM3e0olD5R7ONzijdXPU1AvzZcJl8rM0wvGC85qH+z/Y9fR2ByQ BSFNS7C2Fm9khSg8ALgVgeRd7ymZ6lb530pDPIw1JfH8p4tamsF2R0iSKa3PorWHjocD 0XyA== 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=2rWu4sIj3gnVTyi2FwYZW35msoSapEOC2ZvpNjIMZ00=; fh=AV2K4H8YID50VB6CTo2bUtxLOa6ouwDKfKu61uHMdz4=; b=Z4/Fxx/JBJ2KxTgJrfqIkJgZ8IsVzFzJxVIjSDS/IILvu4uTzUtjvHGGD4OGe+4xzm yhx68YxMLiw/tJlF81Cw/RJMZ/sk1Q/gMDZ9prHvhJqV6WCtW+2lpYb8FVZSfPo4/rmo NOoYnaUXkOJz9VoY0vQamGhdGUtKLL/jRypPWcza2epvDZpSBnO2Huvqv8nuK9+6347z OeVc1K0BJHgpbYtecoomrQF/XLcTfNK8noZdosYPv7uyoNVQFZGxLZd/u0+icDodgTpP HYa5MHSF/Qo8vMc9GycEXY9wqlmTKDW3MqTAlfzC6p+duraMVXiVvCuavLnJii7qzF0J 3rbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BV3bDzdr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id b20-20020a6567d4000000b00573fcfd4a19si3948124pgs.878.2023.09.15.16.46.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 16:46:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BV3bDzdr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 72E60836D6FD; Fri, 15 Sep 2023 08:58:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236284AbjIOP6I (ORCPT + 30 others); Fri, 15 Sep 2023 11:58:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236256AbjIOP6F (ORCPT ); Fri, 15 Sep 2023 11:58:05 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8484E78; Fri, 15 Sep 2023 08:58:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694793480; x=1726329480; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=3YJZk03nP9VduHGWvdc4C8fqF0hB8UJxG5XUppLNQHA=; b=BV3bDzdrnzL2o1OBjfpeL3QgsB4RWjxHDoJHUOWcYEPJEpbp6Xri2bvK znK6W3DJqgaOOZtoVg/mB9AU8nVv393+vm6vzSO+XNJQWINEKH8otI0RE QTbrLhxvoamOged7A/drAAxVLkEAaIan4/Yas7WT3eulIPFKl6JwPAuDu lmTB3FCUme9F1K0/5XD4h4yjXxgwJb9BtZCGnqVmXtd+8pIA+3gTHSmq1 DwHpZz1xrlcHIG6Whgh1qwNsUZya1NQPWR6R0dBd8hsnLP0nkzHvJfDqI C4K60cACpOzYTjbm/rL5ZLSZsaOoWpNkarvYNPgIazI6B1r4cn+DTXXah g==; X-IronPort-AV: E=McAfee;i="6600,9927,10834"; a="369594600" X-IronPort-AV: E=Sophos;i="6.02,149,1688454000"; d="scan'208";a="369594600" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2023 08:58:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10834"; a="745036673" X-IronPort-AV: E=Sophos;i="6.02,149,1688454000"; d="scan'208";a="745036673" Received: from srdoo-mobl1.ger.corp.intel.com (HELO ijarvine-mobl2.ger.corp.intel.com) ([10.252.38.99]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2023 08:57:58 -0700 From: =?utf-8?q?Ilpo_J=C3=A4rvinen?= To: linux-pci@vger.kernel.org, Bjorn Helgaas Cc: linux-kernel@vger.kernel.org, =?utf-8?q?Ilpo_J=C3=A4rvinen?= Subject: [PATCH 0/7] PCI/ASPM: Cleanups Date: Fri, 15 Sep 2023 18:57:45 +0300 Message-Id: <20230915155752.84640-1-ilpo.jarvinen@linux.intel.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 15 Sep 2023 08:58:34 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777149218004901645 X-GMAIL-MSGID: 1777149218004901645 What started as simple FIELD_GET/PREP() cleanup patch on ASPM became this series of cleanups. Ilpo Järvinen (7): PCI: Add PCI_L1SS_CTL2 fields PCI/ASPM: Use FIELD_GET/PREP() to access PCIe capability fields PCI/ASPM: Return U32_MAX instead of bit magic construct PCI/ASPM: Use time constants PCI/ASPM: Use FIELD_MAX() instead of literals PCI/ASPM: Remove unnecessary includes PCI/ASPM: Convert printk() to pr_*() and add include drivers/pci/pcie/aspm.c | 71 +++++++++++++++++++---------------- include/uapi/linux/pci_regs.h | 2 + 2 files changed, 41 insertions(+), 32 deletions(-)