Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/810247/?format=api
{ "id": 810247, "url": "http://patchwork.ozlabs.org/api/patches/810247/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/patch/20170905182700.27030.79516.stgit@bhelgaas-glaptop.roam.corp.google.com/", "project": { "id": 28, "url": "http://patchwork.ozlabs.org/api/projects/28/?format=api", "name": "Linux PCI development", "link_name": "linux-pci", "list_id": "linux-pci.vger.kernel.org", "list_email": "linux-pci@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20170905182700.27030.79516.stgit@bhelgaas-glaptop.roam.corp.google.com>", "list_archive_url": null, "date": "2017-09-05T18:27:00", "name": "[1/4] PCI: iproc: Rename PCI_EXP_CAP to IPROC_PCI_EXP_CAP", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "c35a2dd787d7f5f8b4f3024b3aba2de8217d95c6", "submitter": { "id": 7584, "url": "http://patchwork.ozlabs.org/api/people/7584/?format=api", "name": "Bjorn Helgaas", "email": "bhelgaas@google.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-pci/patch/20170905182700.27030.79516.stgit@bhelgaas-glaptop.roam.corp.google.com/mbox/", "series": [ { "id": 1628, "url": "http://patchwork.ozlabs.org/api/series/1628/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-pci/list/?series=1628", "date": "2017-09-05T18:26:52", "name": "iproc/xgene PCIe cap & whitespace cleanup", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/1628/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/810247/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/810247/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<linux-pci-owner@vger.kernel.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-pci-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "mail.kernel.org; dmarc=fail (p=reject dis=none)\n\theader.from=google.com", "mail.kernel.org;\n\tspf=none smtp.mailfrom=helgaas@kernel.org" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xmwD72wYrz9sCZ\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 6 Sep 2017 04:27:03 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752179AbdIES1C (ORCPT <rfc822;incoming@patchwork.ozlabs.org>);\n\tTue, 5 Sep 2017 14:27:02 -0400", "from mail.kernel.org ([198.145.29.99]:59552 \"EHLO mail.kernel.org\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1752108AbdIES1C (ORCPT <rfc822;linux-pci@vger.kernel.org>);\n\tTue, 5 Sep 2017 14:27:02 -0400", "from localhost (unknown [69.71.4.159])\n\t(using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits))\n\t(No client certificate requested)\n\tby mail.kernel.org (Postfix) with ESMTPSA id 6CA3521B64;\n\tTue, 5 Sep 2017 18:27:01 +0000 (UTC)" ], "DMARC-Filter": "OpenDMARC Filter v1.3.2 mail.kernel.org 6CA3521B64", "Subject": "[PATCH 1/4] PCI: iproc: Rename PCI_EXP_CAP to IPROC_PCI_EXP_CAP", "From": "Bjorn Helgaas <bhelgaas@google.com>", "To": "Jon Mason <jonmason@broadcom.com>, Ray Jui <rjui@broadcom.com>,\n\tOza Pawandeep <oza.oza@broadcom.com>, Tanmay Inamdar <tinamdar@apm.com>,\n\tScott Branden <sbranden@broadcom.com>", "Cc": "linux-pci@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com", "Date": "Tue, 05 Sep 2017 13:27:00 -0500", "Message-ID": "<20170905182700.27030.79516.stgit@bhelgaas-glaptop.roam.corp.google.com>", "In-Reply-To": "<20170905181602.27030.65715.stgit@bhelgaas-glaptop.roam.corp.google.com>", "References": "<20170905181602.27030.65715.stgit@bhelgaas-glaptop.roam.corp.google.com>", "User-Agent": "StGit/0.17.1-dirty", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Sender": "linux-pci-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<linux-pci.vger.kernel.org>", "X-Mailing-List": "linux-pci@vger.kernel.org" }, "content": "PCI_EXP_CAP is an iProc-specific value, so rename it to IPROC_PCI_EXP_CAP\nto make it obvious that it's not related to the generic values like\nPCI_EXP_RTCTL, etc. No functional change intended.\n\nSigned-off-by: Bjorn Helgaas <bhelgaas@google.com>\n---\n drivers/pci/host/pcie-iproc.c | 19 +++++++++----------\n 1 file changed, 9 insertions(+), 10 deletions(-)", "diff": "diff --git a/drivers/pci/host/pcie-iproc.c b/drivers/pci/host/pcie-iproc.c\nindex fe2e5aaaff55..4e83a9ffa5e2 100644\n--- a/drivers/pci/host/pcie-iproc.c\n+++ b/drivers/pci/host/pcie-iproc.c\n@@ -93,7 +93,7 @@\n #define IMAP_VALID_SHIFT 0\n #define IMAP_VALID BIT(IMAP_VALID_SHIFT)\n \n-#define PCI_EXP_CAP\t\t\t0xac\n+#define IPROC_PCI_EXP_CAP\t\t0xac\n \n #define IPROC_PCIE_REG_INVALID 0xffff\n \n@@ -528,7 +528,7 @@ static int iproc_pcie_config_read(struct pci_bus *bus, unsigned int devfn,\n \t\t\treturn ret;\n \n \t\t/* Don't advertise CRS SV support */\n-\t\tif ((where & ~0x3) == PCI_EXP_CAP + PCI_EXP_RTCTL)\n+\t\tif ((where & ~0x3) == IPROC_PCI_EXP_CAP + PCI_EXP_RTCTL)\n \t\t\t*val &= ~(PCI_EXP_RTCAP_CRSVIS << 16);\n \t\treturn PCIBIOS_SUCCESSFUL;\n \t}\n@@ -710,7 +710,6 @@ static int iproc_pcie_check_link(struct iproc_pcie *pcie)\n {\n \tstruct device *dev = pcie->dev;\n \tu32 hdr_type, link_ctrl, link_status, class, val;\n-\tu16 pos = PCI_EXP_CAP;\n \tbool link_is_active = false;\n \n \t/*\n@@ -745,7 +744,7 @@ static int iproc_pcie_check_link(struct iproc_pcie *pcie)\n \t\t\t\t 4, class);\n \n \t/* check link status to see if link is active */\n-\tiproc_pci_raw_config_read32(pcie, 0, pos + PCI_EXP_LNKSTA,\n+\tiproc_pci_raw_config_read32(pcie, 0, IPROC_PCI_EXP_CAP + PCI_EXP_LNKSTA,\n \t\t\t\t 2, &link_status);\n \tif (link_status & PCI_EXP_LNKSTA_NLW)\n \t\tlink_is_active = true;\n@@ -756,20 +755,20 @@ static int iproc_pcie_check_link(struct iproc_pcie *pcie)\n #define PCI_TARGET_LINK_SPEED_GEN2 0x2\n #define PCI_TARGET_LINK_SPEED_GEN1 0x1\n \t\tiproc_pci_raw_config_read32(pcie, 0,\n-\t\t\t\t\t pos + PCI_EXP_LNKCTL2, 4,\n-\t\t\t\t\t &link_ctrl);\n+\t\t\t\t\t IPROC_PCI_EXP_CAP + PCI_EXP_LNKCTL2,\n+\t\t\t\t\t 4, &link_ctrl);\n \t\tif ((link_ctrl & PCI_TARGET_LINK_SPEED_MASK) ==\n \t\t PCI_TARGET_LINK_SPEED_GEN2) {\n \t\t\tlink_ctrl &= ~PCI_TARGET_LINK_SPEED_MASK;\n \t\t\tlink_ctrl |= PCI_TARGET_LINK_SPEED_GEN1;\n \t\t\tiproc_pci_raw_config_write32(pcie, 0,\n-\t\t\t\t\t\tpos + PCI_EXP_LNKCTL2,\n-\t\t\t\t\t\t4, link_ctrl);\n+\t\t\t\t\tIPROC_PCI_EXP_CAP + PCI_EXP_LNKCTL2,\n+\t\t\t\t\t4, link_ctrl);\n \t\t\tmsleep(100);\n \n \t\t\tiproc_pci_raw_config_read32(pcie, 0,\n-\t\t\t\t\t\tpos + PCI_EXP_LNKSTA,\n-\t\t\t\t\t\t2, &link_status);\n+\t\t\t\t\tIPROC_PCI_EXP_CAP + PCI_EXP_LNKSTA,\n+\t\t\t\t\t2, &link_status);\n \t\t\tif (link_status & PCI_EXP_LNKSTA_NLW)\n \t\t\t\tlink_is_active = true;\n \t\t}\n", "prefixes": [ "1/4" ] }