get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/1153786/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 1153786,
    "url": "http://patchwork.ozlabs.org/api/patches/1153786/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20190827110440.11523-24-Zhiqiang.Hou@nxp.com/",
    "project": {
        "id": 18,
        "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api",
        "name": "U-Boot",
        "link_name": "uboot",
        "list_id": "u-boot.lists.denx.de",
        "list_email": "u-boot@lists.denx.de",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20190827110440.11523-24-Zhiqiang.Hou@nxp.com>",
    "list_archive_url": null,
    "date": "2019-08-27T11:04:08",
    "name": "[U-Boot,PATCHv2,23/47] powerpc: p1_p2_rdb: Disable legacy PCIe driver when DM_PCI is enabled",
    "commit_ref": "c1e486e81a8d8aa6ecc1979cd3de69d61b96f606",
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "d36d533432e1206015e9d62d73b518415ba3af4e",
    "submitter": {
        "id": 67929,
        "url": "http://patchwork.ozlabs.org/api/people/67929/?format=api",
        "name": "Z.Q. Hou",
        "email": "zhiqiang.hou@nxp.com"
    },
    "delegate": {
        "id": 2467,
        "url": "http://patchwork.ozlabs.org/api/users/2467/?format=api",
        "username": "prabhu_kush",
        "first_name": "Prabhakar",
        "last_name": "Kushwaha",
        "email": "prabhakar@freescale.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20190827110440.11523-24-Zhiqiang.Hou@nxp.com/mbox/",
    "series": [
        {
            "id": 127526,
            "url": "http://patchwork.ozlabs.org/api/series/127526/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=127526",
            "date": "2019-08-27T11:02:49",
            "name": "powerpc: Enable PCIe DM drvier for some platforms",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/127526/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1153786/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1153786/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=nxp.com",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=nxp.com header.i=@nxp.com header.b=\"qgKcgXRC\";\n\tdkim-atps=neutral",
            "spf=none (sender IP is )\n\tsmtp.mailfrom=zhiqiang.hou@nxp.com; "
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 46Hmg42xFlz9sDB\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 27 Aug 2019 21:22:08 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 0C061C2228C; Tue, 27 Aug 2019 11:06:24 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 26064C2200A;\n\tTue, 27 Aug 2019 11:06:20 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 030B5C22035; Tue, 27 Aug 2019 11:04:12 +0000 (UTC)",
            "from EUR04-HE1-obe.outbound.protection.outlook.com\n\t(mail-eopbgr70050.outbound.protection.outlook.com [40.107.7.50])\n\tby lists.denx.de (Postfix) with ESMTPS id 5B8C8C2203E\n\tfor <u-boot@lists.denx.de>; Tue, 27 Aug 2019 11:04:09 +0000 (UTC)",
            "from DB8PR04MB6747.eurprd04.prod.outlook.com (20.179.250.159) by\n\tDB8PR04MB5849.eurprd04.prod.outlook.com (20.179.11.223) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n\t15.20.2199.20; Tue, 27 Aug 2019 11:04:08 +0000",
            "from DB8PR04MB6747.eurprd04.prod.outlook.com\n\t([fe80::7c8a:ab5d:dc27:be5f]) by\n\tDB8PR04MB6747.eurprd04.prod.outlook.com\n\t([fe80::7c8a:ab5d:dc27:be5f%6]) with mapi id 15.20.2199.021;\n\tTue, 27 Aug 2019 11:04:08 +0000"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=0.0 required=5.0 tests=SPF_HELO_PASS, T_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0",
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n\tb=M+xtkWaF2dUClWmDutDqNBFEyJ2GQXhJjs04KxsqNjrY+XkNwuTVjLJ/+cb3YRQwUqnHLqBHhiYD8iunzLKz0L2099dwa0QTUt3qzeN5xa/W/r+Kl31RikoZ/XngTPM5u9nQRtzeg5xtmn675XwW2GYV8KP+Xr+v6NUa1vq6RuAUJjBtPJmq0rzmwIYJllLo5CGlA1YWhTNGWWVTFs/SoJKUcxLN9QLFApE98JThB+XNbmrI2OFP6Nw9CtRjkfag3Ghx2SY6McepDYcSZRJUL83CkSyj+nJkJnLoFIY1PvzMFBYPwBHo2Wkw+/2JWx4DBtymqKAFBrJza71kpPq1uQ==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n\ts=arcselector9901;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n\tbh=Y90V8iejWf8MUlcjZXTauPIVjL8nbXjAVqz1k2LCERU=;\n\tb=VSNPOKz25uaBreixs8uJCLbhJdkf4KPsbYS1YxIuQj8/lW5uqyDUzPmOl3Sb07mvoLK1BstM9mX1hwU1I84zdJCx/XoGFF8xMIEXNdi/kt7E8Yro+4rKRJgFh6toZs2GGtpxPwjYLwmOM9vMxfNz1G1hOOISiOpL6XUcSbifrfjzgYAGgfvUHyNzcnlVayxSt54RwOI9DYqXaNL5LKI2czphf6yDOC343kgrqEsIHBORlJZ2DsP1vx/8+u2p/iV045lgEnJ6lRgn570JSiQJvecJXk09MjQgrWwohDKKCIo7ruedd86/YfNXtnkS5cMTIt1j+YK5Oj/4jqPGq6FyNA==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass\n\tsmtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com;\n\tdkim=pass header.d=nxp.com; arc=none",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n\tbh=Y90V8iejWf8MUlcjZXTauPIVjL8nbXjAVqz1k2LCERU=;\n\tb=qgKcgXRCxWyrolEm53XazCOvW6k/ponOTY4Db5iJ1scWULgWIiyVd/sjSq4BzTIsaAq3DEG9BwS66na3gXkKNZZ7Kx1R48WHfo/V0vJ0hKKOTpM5XKPSqxL4BU5TiiJSHxE4+r1WZAiMPs0vjNcrqTXXuY/KzmcIaCn8xbKRp7E=",
        "From": "\"Z.q. Hou\" <zhiqiang.hou@nxp.com>",
        "To": "\"u-boot@lists.denx.de\" <u-boot@lists.denx.de>, Prabhakar Kushwaha\n\t<prabhakar.kushwaha@nxp.com>, \"wd@denx.de\" <wd@denx.de>, Priyanka Jain\n\t<priyanka.jain@nxp.com>, Shengzhou Liu <shengzhou.liu@nxp.com>,\n\t\"bmeng.cn@gmail.com\" <bmeng.cn@gmail.com>",
        "Thread-Topic": "[PATCHv2 23/47] powerpc: p1_p2_rdb: Disable legacy PCIe driver\n\twhen DM_PCI is enabled",
        "Thread-Index": "AQHVXMcl+9bp+MjJyk2z2CoS3JKCeQ==",
        "Date": "Tue, 27 Aug 2019 11:04:08 +0000",
        "Message-ID": "<20190827110440.11523-24-Zhiqiang.Hou@nxp.com>",
        "References": "<20190827110440.11523-1-Zhiqiang.Hou@nxp.com>",
        "In-Reply-To": "<20190827110440.11523-1-Zhiqiang.Hou@nxp.com>",
        "Accept-Language": "zh-CN, en-US",
        "Content-Language": "en-US",
        "X-MS-Has-Attach": "",
        "X-MS-TNEF-Correlator": "",
        "x-clientproxiedby": "HK0P153CA0039.APCP153.PROD.OUTLOOK.COM\n\t(2603:1096:203:17::27) To DB8PR04MB6747.eurprd04.prod.outlook.com\n\t(2603:10a6:10:10b::31)",
        "authentication-results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdmarc=fail (p=none dis=none) header.from=nxp.com",
            "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=nxp.com header.i=@nxp.com header.b=\"qgKcgXRC\";\n\tdkim-atps=neutral",
            "spf=none (sender IP is )\n\tsmtp.mailfrom=zhiqiang.hou@nxp.com; "
        ],
        "x-ms-exchange-messagesentrepresentingtype": "1",
        "x-mailer": "git-send-email 2.17.1",
        "x-originating-ip": "[119.31.174.73]",
        "x-ms-publictraffictype": "Email",
        "x-ms-office365-filtering-correlation-id": "f18ae2c5-0e5b-49e0-b1ce-08d72ade485a",
        "x-ms-office365-filtering-ht": "Tenant",
        "x-microsoft-antispam": "BCL:0; PCL:0;\n\tRULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);\n\tSRVR:DB8PR04MB5849; ",
        "x-ms-traffictypediagnostic": "DB8PR04MB5849:",
        "x-ms-exchange-transport-forked": "True",
        "x-microsoft-antispam-prvs": "<DB8PR04MB5849F4F1E5EDC9345B6DFE3484A00@DB8PR04MB5849.eurprd04.prod.outlook.com>",
        "x-ms-oob-tlc-oobclassifiers": "OLM:3968;",
        "x-forefront-prvs": "0142F22657",
        "x-forefront-antispam-report": "SFV:NSPM;\n\tSFS:(10009020)(4636009)(366004)(376002)(396003)(346002)(39860400002)(136003)(189003)(199004)(102836004)(6436002)(2616005)(476003)(486006)(186003)(26005)(71200400001)(386003)(478600001)(305945005)(2906002)(8676002)(1076003)(66066001)(8936002)(446003)(81156014)(256004)(81166006)(2501003)(11346002)(7736002)(6486002)(5660300002)(14454004)(36756003)(52116002)(86362001)(53936002)(110136005)(76176011)(99286004)(3846002)(6116002)(66556008)(66476007)(66446008)(71190400001)(64756008)(66946007)(4326008)(25786009)(50226002)(316002)(6512007)(6506007);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:DB8PR04MB5849;\n\tH:DB8PR04MB6747.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en;\n\tPTR:InfoNoRecords; MX:1; A:1; ",
        "received-spf": "None (protection.outlook.com: nxp.com does not designate\n\tpermitted sender hosts)",
        "x-ms-exchange-senderadcheck": "1",
        "x-microsoft-antispam-message-info": "B1UJp/dJRKLJ6oSz6LhabdI/Vcmyo7R6tlEZkFJcqUWD5yBid/mVBot/ft9AG5N3jwENp3vYH1siAnb+RipTFF9wS9a3p9x6WrYCZOpNg3nn3zteGsbKXJjbxwYD7WS+vIzp+vg/2C10VVrogFLhnF+JI2nDgfZDXF0Uxk/dAeplwDJ1N5tdJET8bbd1ywuYz2FoJDLgyuWdD+wo8cPBWBxpQqRXGfH9oGt8RbHP8bLJbUN3PaL5rb55X5x4c0NuI//zidfVhAGniQjuzxZWZr/uyxSH0KpFCam5BjpI1H16kBwkmT1plszF0dz2+ghKdZRSGHrw+JhHps8XYEOBS1cJLEkM1Pk7Y4pjQUzVMYyPRgy1u7H5QNt0xL76EgqZRW7RCGltAu4inE2eYun8J7XGJs7bCvlV0sOY+D6Qdcg=",
        "MIME-Version": "1.0",
        "X-OriginatorOrg": "nxp.com",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "f18ae2c5-0e5b-49e0-b1ce-08d72ade485a",
        "X-MS-Exchange-CrossTenant-originalarrivaltime": "27 Aug 2019 11:04:08.3033\n\t(UTC)",
        "X-MS-Exchange-CrossTenant-fromentityheader": "Hosted",
        "X-MS-Exchange-CrossTenant-id": "686ea1d3-bc2b-4c6f-a92c-d99c5c301635",
        "X-MS-Exchange-CrossTenant-mailboxtype": "HOSTED",
        "X-MS-Exchange-CrossTenant-userprincipalname": "1aQy3B7A6Smbv8iMrXCL6PVzPcShAHCYPvzve7+A/ikKatL0+p+40qc+BH8Dg2AsBwe3hHaWBKD5CGmoZIELNQ==",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "DB8PR04MB5849",
        "Cc": "\"Z.q. Hou\" <zhiqiang.hou@nxp.com>",
        "Subject": "[U-Boot] [PATCHv2 23/47] powerpc: p1_p2_rdb: Disable legacy PCIe\n\tdriver when DM_PCI is enabled",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.18",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<http://lists.denx.de/pipermail/u-boot/>",
        "List-Post": "<mailto:u-boot@lists.denx.de>",
        "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>",
        "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "base64",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>"
    },
    "content": "From: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>\n\nDisable legacy PCIe driver and unused PCIe macros when DM_PCI enabled\nfor P1020, P1021, P1024, P1025 and P2020 RDB boards.\n\nSigned-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>\nReviewed-by: Bin Meng <bmeng.cn@gmail.com>\n---\nV2:\n - Rebased the patch.\n\n include/configs/p1_p2_rdb_pc.h | 36 ++++++++++++++++++++++------------\n 1 file changed, 23 insertions(+), 13 deletions(-)",
    "diff": "diff --git a/include/configs/p1_p2_rdb_pc.h b/include/configs/p1_p2_rdb_pc.h\nindex e07d2a178f..1481d683e5 100644\n--- a/include/configs/p1_p2_rdb_pc.h\n+++ b/include/configs/p1_p2_rdb_pc.h\n@@ -207,8 +207,6 @@\n \n #define CONFIG_PCIE1\t/* PCIE controller 1 (slot 1) */\n #define CONFIG_PCIE2\t/* PCIE controller 2 (slot 2) */\n-#define CONFIG_FSL_PCI_INIT\t/* Use common FSL init code */\n-#define CONFIG_PCI_INDIRECT_BRIDGE\t/* indirect PCI bridge support */\n #define CONFIG_SYS_PCI_64BIT\t/* enable 64-bit PCI resources */\n \n #define CONFIG_ENV_OVERWRITE\n@@ -572,44 +570,56 @@\n  */\n \n /* controller 2, direct to uli, tgtid 2, Base address 9000 */\n-#define CONFIG_SYS_PCIE2_NAME\t\t\"PCIe SLOT\"\n #define CONFIG_SYS_PCIE2_MEM_VIRT\t0xa0000000\n #ifdef CONFIG_PHYS_64BIT\n-#define CONFIG_SYS_PCIE2_MEM_BUS\t0xc0000000\n #define CONFIG_SYS_PCIE2_MEM_PHYS\t0xc20000000ull\n #else\n-#define CONFIG_SYS_PCIE2_MEM_BUS\t0xa0000000\n #define CONFIG_SYS_PCIE2_MEM_PHYS\t0xa0000000\n #endif\n-#define CONFIG_SYS_PCIE2_MEM_SIZE\t0x20000000\t/* 512M */\n #define CONFIG_SYS_PCIE2_IO_VIRT\t0xffc10000\n-#define CONFIG_SYS_PCIE2_IO_BUS\t\t0x00000000\n #ifdef CONFIG_PHYS_64BIT\n #define CONFIG_SYS_PCIE2_IO_PHYS\t0xfffc10000ull\n #else\n #define CONFIG_SYS_PCIE2_IO_PHYS\t0xffc10000\n #endif\n-#define CONFIG_SYS_PCIE2_IO_SIZE\t0x00010000\t/* 64k */\n \n /* controller 1, Slot 2, tgtid 1, Base address a000 */\n-#define CONFIG_SYS_PCIE1_NAME\t\t\"mini PCIe SLOT\"\n #define CONFIG_SYS_PCIE1_MEM_VIRT\t0x80000000\n #ifdef CONFIG_PHYS_64BIT\n-#define CONFIG_SYS_PCIE1_MEM_BUS\t0x80000000\n #define CONFIG_SYS_PCIE1_MEM_PHYS\t0xc00000000ull\n #else\n-#define CONFIG_SYS_PCIE1_MEM_BUS\t0x80000000\n #define CONFIG_SYS_PCIE1_MEM_PHYS\t0x80000000\n #endif\n-#define CONFIG_SYS_PCIE1_MEM_SIZE\t0x20000000\t/* 512M */\n #define CONFIG_SYS_PCIE1_IO_VIRT\t0xffc00000\n-#define CONFIG_SYS_PCIE1_IO_BUS\t\t0x00000000\n #ifdef CONFIG_PHYS_64BIT\n #define CONFIG_SYS_PCIE1_IO_PHYS\t0xfffc00000ull\n #else\n #define CONFIG_SYS_PCIE1_IO_PHYS\t0xffc00000\n #endif\n+\n+#if !defined(CONFIG_DM_PCI)\n+#define CONFIG_FSL_PCI_INIT\t/* Use common FSL init code */\n+#define CONFIG_PCI_INDIRECT_BRIDGE\n+#define CONFIG_SYS_PCIE2_NAME\t\t\"PCIe SLOT\"\n+#ifdef CONFIG_PHYS_64BIT\n+#define CONFIG_SYS_PCIE2_MEM_BUS\t0xc0000000\n+#else\n+#define CONFIG_SYS_PCIE2_MEM_BUS\t0xa0000000\n+#endif\n+#define CONFIG_SYS_PCIE2_MEM_SIZE\t0x20000000\t/* 512M */\n+#define CONFIG_SYS_PCIE2_IO_BUS\t\t0x00000000\n+#define CONFIG_SYS_PCIE2_IO_SIZE\t0x00010000\t/* 64k */\n+\n+#define CONFIG_SYS_PCIE1_NAME\t\t\"mini PCIe SLOT\"\n+#ifdef CONFIG_PHYS_64BIT\n+#define CONFIG_SYS_PCIE1_MEM_BUS\t0x80000000\n+#else\n+#define CONFIG_SYS_PCIE1_MEM_BUS\t0x80000000\n+#endif\n+#define CONFIG_SYS_PCIE1_MEM_SIZE\t0x20000000\t/* 512M */\n+#define CONFIG_SYS_PCIE1_IO_BUS\t\t0x00000000\n #define CONFIG_SYS_PCIE1_IO_SIZE\t0x00010000\t/* 64k */\n+#endif\n \n #define CONFIG_PCI_SCAN_SHOW\t/* show pci devices on startup */\n #endif /* CONFIG_PCI */\n",
    "prefixes": [
        "U-Boot",
        "PATCHv2",
        "23/47"
    ]
}