Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4464293pxb; Sat, 6 Nov 2021 14:36:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlAxVVAv3ZMAEni0dt4UIhhZ2USh/jF74c3sCS3ghq7ja+wSp8JMUe5KVrPBJUMxlzjH/l X-Received: by 2002:a17:906:ad89:: with SMTP id la9mr20171432ejb.178.1636234605721; Sat, 06 Nov 2021 14:36:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636234605; cv=none; d=google.com; s=arc-20160816; b=msq4gz+dAffuvugmZBhpNi6sNW74yfFEiCRD8290RAcZNA/f+aOE7wqSV3OwQe+Get sIZRRMQO4uu3IgoCRUpKWRgMUwX6WecjaiViPIn0C7tPH4BtjKfk3/iOoqCJFoqm5asP 2DGuQ8a8+a0fIm5B7erG/Pp70YQ7lwF8vfFe5aA/LX9qZAbPuWQaWq8XUynlasDe7yKd hW0R61Ki+aQZ+u72D//YruruHq9vy7mxKjVHiNrZGadm7BLjtieK48B7m9OOy/Ina2H+ wWN1GjXDZLjEUUzR/4qdBf2fUEgMJfqS5+zi637qboclzxUvM8Ybcc8gnhHZbbUgKdq6 DCcQ== 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=JK9g2yAuDw6DTRhvc8HAnrgyVsmnlkUlQWov9rAZGMk=; b=v2f33m0k7MhXsTQtsI7/kVM7gsU40I0SuKxNtjdaoF82BdYOAcGEp0gxsqY11Dwc/e DtAwRAyS5LQPq/aaHX66r+V+wawkONX0FkGvqi3uaq7WpK3H4x7gEaujfZv0v9xO1Dio htbH+25IzEtkyw2WLIWuToIARpr79ToAkOgw28AhG+pouIPqUWVoyzQ1jpilAUIQXa7f muzL02oic3nSjxSW52AVgnfwZXfjUoXelq2TIPoaL9eFaAPgGDNMZofeCPKbdOd6+j2K dcDfqYOVX9FEzl9S64osZWgcol45X5ej1RvbeOXPpmsPkxF3rHo4gfCSqTagJ56T4l4g DQkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OGiULrfm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ji6si2212006ejc.168.2021.11.06.14.36.22; Sat, 06 Nov 2021 14:36:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OGiULrfm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234067AbhKFR4l (ORCPT + 99 others); Sat, 6 Nov 2021 13:56:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbhKFR4k (ORCPT ); Sat, 6 Nov 2021 13:56:40 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91919C061570; Sat, 6 Nov 2021 10:53:58 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id r12so44737097edt.6; Sat, 06 Nov 2021 10:53:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JK9g2yAuDw6DTRhvc8HAnrgyVsmnlkUlQWov9rAZGMk=; b=OGiULrfmYwCkRi+lIO7KuaeXGKrT0eN5SUrD2xC54iB31Hf9j/73552OavyTH6Hatc 6sGOwQ+Il9UfqhMw4sc3SVXTGTi/vEIHCiSZbe5NqH02p60hO0Be3H1L2Yet1DF8tNhb R65GOyhmO0+82yWmx+D/EH34QoE7UiDGV2DUQ4WfCRdxjSQ6yJ5EjEDnxJZ2+vqsC+0a Er4lLS2HW+4Mzdhz4FUGXGX5Oh3bGl4mmvGc5xaNi2wUaObqnYhnZtlOdTHh5yThMqkO MdOp7HK9MClDpcZsDuSIdO49NHow0t/OKOjSfMs8n86nsz9gZrixwwQDo/KlubFevlgX vPWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JK9g2yAuDw6DTRhvc8HAnrgyVsmnlkUlQWov9rAZGMk=; b=nxp+E0TZApFOTMkP7YNKripEdtGv1TsJDAeaDTqtHG44WJZh6l1A3wojsvbAx/FEze iO0hmuDDQLov3BGk3KjJfPWSLmEKqZ/heAj7rSGffP44fGsTuK2Aj+FlMDhJgYVtFzR5 O4WdSwBGRxzTq+Czt4737l0mZXfK7XMX9shICPX0Id6VpCVXJvXcQMMZgxFbQHM74UCI +FJlkRQ3Ih3Qk9121T9bCPCWXnEHm7h5Yy4fi5cOZN/gpySqU6cMvOxOJPnify9POwGU NON/ZmyxCdks80URGBZy9q+F8Evfgsmw9xtcyP8gU8uq3Mkp9836l0iKWDStvh5Ced0O Kx8w== X-Gm-Message-State: AOAM531GQBFF4gAAgHz3vCtmICRvem+xfVlg9yfae3HcOsGRUu1JeF+s INJH6JkJMJwIhNuDY6shHy8= X-Received: by 2002:a17:907:2d20:: with SMTP id gs32mr42366707ejc.270.1636221236917; Sat, 06 Nov 2021 10:53:56 -0700 (PDT) Received: from localhost.localdomain ([2a02:ab88:109:9f0:f6a6:7fbe:807a:e1cc]) by smtp.googlemail.com with ESMTPSA id m12sm5753494ejj.63.2021.11.06.10.53.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Nov 2021 10:53:56 -0700 (PDT) From: "Saheed O. Bolarinwa" To: helgaas@kernel.org Cc: "Saheed O. Bolarinwa" , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH v1 0/6] Remove struct pcie_link_state.aspm_* Date: Sat, 6 Nov 2021 18:53:47 +0100 Message-Id: <20211106175353.26248-1-refactormyself@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org aspm_{enable, support} in struct pcie_link_state do not need to be stored. This series removes them and creates functions to calculate them. MERGE NOTICE: These series are based on ยป 'commit e4e737bb5c17 ("Linux 5.15-rc2")' Saheed O. Bolarinwa (6): PCI/ASPM: Extract out L1SS_CAP calculations PCI/ASPM: Extract the calculation of link->aspm_support PCI/ASPM: Extract the calculation of link->aspm_enabled PCI/ASPM: Don't cache struct pcie_link_state->aspm_support PCI/ASPM: Move pcie_aspm_sanity_check() upwards PCI/ASPM: Don't cache struct pcie_link_state->aspm_enabled drivers/pci/pcie/aspm.c | 291 +++++++++++++++++++++++----------------- 1 file changed, 170 insertions(+), 121 deletions(-) -- 2.20.1