get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 400429,
    "url": "http://patchwork.ozlabs.org/api/patches/400429/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/1413530796-12881-4-git-send-email-b18965@freescale.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": "<1413530796-12881-4-git-send-email-b18965@freescale.com>",
    "list_archive_url": null,
    "date": "2014-10-17T07:26:35",
    "name": "[U-Boot,v2,4/5] arm: ls102xa: Add SystemID EEPROM support for LS1021ATWR board",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "e6ae26843239dc41ce2346d74766e8aec77862a0",
    "submitter": {
        "id": 13010,
        "url": "http://patchwork.ozlabs.org/api/people/13010/?format=api",
        "name": "Alison Wang",
        "email": "b18965@freescale.com"
    },
    "delegate": {
        "id": 2666,
        "url": "http://patchwork.ozlabs.org/api/users/2666/?format=api",
        "username": "yorksun",
        "first_name": "York",
        "last_name": "Sun",
        "email": "yorksun@freescale.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/1413530796-12881-4-git-send-email-b18965@freescale.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/400429/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/400429/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",
        "Received": [
            "from theia.denx.de (theia.denx.de [85.214.87.163])\n\tby ozlabs.org (Postfix) with ESMTP id 0E921140081\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 17 Oct 2014 18:28:10 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id B3476A73EA;\n\tFri, 17 Oct 2014 09:27:53 +0200 (CEST)",
            "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 1ByIlIbmf13i; Fri, 17 Oct 2014 09:27:53 +0200 (CEST)",
            "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 9DC2DA73F1;\n\tFri, 17 Oct 2014 09:27:52 +0200 (CEST)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 97F43A73FC\n\tfor <u-boot@lists.denx.de>; Fri, 17 Oct 2014 09:27:44 +0200 (CEST)",
            "from theia.denx.de ([127.0.0.1])\n\tby localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id Qd2YVqnCDvxP for <u-boot@lists.denx.de>;\n\tFri, 17 Oct 2014 09:27:44 +0200 (CEST)",
            "from na01-by2-obe.outbound.protection.outlook.com\n\t(mail-by2on0146.outbound.protection.outlook.com [207.46.100.146])\n\tby theia.denx.de (Postfix) with ESMTPS id 53888A7408\n\tfor <u-boot@lists.denx.de>; Fri, 17 Oct 2014 09:27:33 +0200 (CEST)",
            "from BN3PR0301CA0034.namprd03.prod.outlook.com (25.160.180.172) by\n\tBLUPR03MB149.namprd03.prod.outlook.com (10.255.212.17) with\n\tMicrosoft\n\tSMTP Server (TLS) id 15.0.1054.13; Fri, 17 Oct 2014 07:27:30 +0000",
            "from BN1BFFO11FD002.protection.gbl (2a01:111:f400:7c10::1:181) by\n\tBN3PR0301CA0034.outlook.office365.com (2a01:111:e400:4000::44) with\n\tMicrosoft SMTP Server (TLS) id 15.0.1054.13 via Frontend Transport;\n\tFri, 17 Oct 2014 07:27:31 +0000",
            "from az84smr01.freescale.net (192.88.158.2) by\n\tBN1BFFO11FD002.mail.protection.outlook.com (10.58.144.65) with\n\tMicrosoft SMTP\n\tServer (TLS) id 15.0.1039.16 via Frontend Transport; Fri, 17 Oct 2014\n\t07:27:30 +0000",
            "from titan.ap.freescale.net ([10.192.208.233])\n\tby az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id\n\ts9H7RA3S031818; Fri, 17 Oct 2014 00:27:17 -0700"
        ],
        "X-policyd-weight": "NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5\n\tNOT_IN_BL_NJABL=-1.5 (only DNSBL check requested)",
        "From": "Alison Wang <b18965@freescale.com>",
        "To": "<yorksun@freescale.com>, <u-boot@lists.denx.de>",
        "Date": "Fri, 17 Oct 2014 15:26:35 +0800",
        "Message-ID": "<1413530796-12881-4-git-send-email-b18965@freescale.com>",
        "X-Mailer": "git-send-email 2.1.0.27.g96db324",
        "In-Reply-To": "<1413530796-12881-1-git-send-email-b18965@freescale.com>",
        "References": "<1413530796-12881-1-git-send-email-b18965@freescale.com>",
        "X-EOPAttributedMessage": "0",
        "X-Forefront-Antispam-Report": "CIP:192.88.158.2; CTRY:US; IPV:CAL; IPV:NLI;\n\tEFV:NLI; SFV:NSPM;\n\tSFS:(10019020)(6009001)(199003)(54534003)(189002)(85852003)(87936001)(89996001)(87286001)(88136002)(93916002)(92566001)(92726001)(76176999)(50986999)(77156001)(62966002)(81156004)(106466001)(36756003)(31966008)(64706001)(95666004)(105606002)(48376002)(85306004)(107046002)(20776003)(21056001)(47776003)(97736003)(229853001)(99396003)(120916001)(19580405001)(33646002)(50226001)(102836001)(19580395003)(26826002)(69596002)(6806004)(84676001)(44976005)(68736004)(104016003)(104166001)(4396001)(50466002)(46102003)(76482002)(80022003)(42262002);\n\tDIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR03MB149;\n\tH:az84smr01.freescale.net; FPR:; MLV:ovrnspm;\n\tPTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; ",
        "MIME-Version": "1.0",
        "X-Microsoft-Antispam": [
            "UriScan:;",
            "BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB149;"
        ],
        "X-Exchange-Antispam-Report-Test": "UriScan:;",
        "X-Forefront-PRVS": "0367A50BB1",
        "Received-SPF": "Fail (protection.outlook.com: domain of freescale.com does not\n\tdesignate 192.88.158.2 as permitted sender)\n\treceiver=protection.outlook.com; \n\tclient-ip=192.88.158.2; helo=az84smr01.freescale.net;",
        "Authentication-Results": "spf=fail (sender IP is 192.88.158.2)\n\tsmtp.mailfrom=alison.wang@freescale.com; ",
        "X-OriginatorOrg": "freescale.com",
        "Subject": "[U-Boot] [PATCH v2 4/5] arm: ls102xa: Add SystemID EEPROM support\n\tfor LS1021ATWR board",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.13",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<http://lists.denx.de/mailman/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": "<http://lists.denx.de/mailman/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "u-boot-bounces@lists.denx.de",
        "Errors-To": "u-boot-bounces@lists.denx.de"
    },
    "content": "SystemID information could be read through I2C1 from EEPROM\non LS1021ATWR board.\n\nAs LS1 is a little-endian processor, getting the version ID by\nbe32_to_cpu() is wrong. Fix it by using e.version directly.\nThis change will be compatible for both ARM and PowerPC.\n\nAs there is an errata that I2C1 could not work in SD boot,\nreading EEPROM through I2C1 is disabled too in SD boot.\n\nSigned-off-by: Alison Wang <alison.wang@freescale.com>\n---\nChange log:\n v2: Add the compatibility in SD boot.\n\n board/freescale/common/sys_eeprom.c |  4 ++--\n include/configs/ls1021atwr.h        | 11 +++++++++++\n 2 files changed, 13 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/board/freescale/common/sys_eeprom.c b/board/freescale/common/sys_eeprom.c\nindex 6144c53..3426b8a 100644\n--- a/board/freescale/common/sys_eeprom.c\n+++ b/board/freescale/common/sys_eeprom.c\n@@ -90,7 +90,7 @@ static void show_eeprom(void)\n \t/* EEPROM tag ID, either CCID or NXID */\n #ifdef CONFIG_SYS_I2C_EEPROM_NXID\n \tprintf(\"ID: %c%c%c%c v%u\\n\", e.id[0], e.id[1], e.id[2], e.id[3],\n-\t\tbe32_to_cpu(e.version));\n+\t       e.version);\n #else\n \tprintf(\"ID: %c%c%c%c\\n\", e.id[0], e.id[1], e.id[2], e.id[3]);\n #endif\n@@ -485,7 +485,7 @@ int mac_read_from_eeprom(void)\n \n #ifdef CONFIG_SYS_I2C_EEPROM_NXID\n \tprintf(\"%c%c%c%c v%u\\n\", e.id[0], e.id[1], e.id[2], e.id[3],\n-\t\tbe32_to_cpu(e.version));\n+\t       e.version);\n #else\n \tprintf(\"%c%c%c%c\\n\", e.id[0], e.id[1], e.id[2], e.id[3]);\n #endif\ndiff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h\nindex 2427f2e..1914e3d 100644\n--- a/include/configs/ls1021atwr.h\n+++ b/include/configs/ls1021atwr.h\n@@ -155,6 +155,17 @@\n #define CONFIG_SYS_I2C\n #define CONFIG_SYS_I2C_MXC\n \n+/* EEPROM */\n+#ifndef CONFIG_SD_BOOT\n+#define CONFIG_ID_EEPROM\n+#define CONFIG_SYS_I2C_EEPROM_NXID\n+#define CONFIG_SYS_EEPROM_BUS_NUM\t\t1\n+#define CONFIG_SYS_I2C_EEPROM_ADDR\t\t0x53\n+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN\t\t1\n+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS\t3\n+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS\t5\n+#endif\n+\n /*\n  * MMC\n  */\n",
    "prefixes": [
        "U-Boot",
        "v2",
        "4/5"
    ]
}