get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 808580,
    "url": "http://patchwork.ozlabs.org/api/patches/808580/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170901082618.30622-4-wenyou.yang@microchip.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": "<20170901082618.30622-4-wenyou.yang@microchip.com>",
    "list_archive_url": null,
    "date": "2017-09-01T08:26:18",
    "name": "[U-Boot,v4,3/3] board: sama5d4_xplained: Set mac address from eeprom",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "9bc95727bf98848cc526216552e5437fed87e3ce",
    "submitter": {
        "id": 69532,
        "url": "http://patchwork.ozlabs.org/api/people/69532/?format=api",
        "name": "Wenyou Yang",
        "email": "Wenyou.Yang@microchip.com"
    },
    "delegate": {
        "id": 3651,
        "url": "http://patchwork.ozlabs.org/api/users/3651/?format=api",
        "username": "trini",
        "first_name": "Tom",
        "last_name": "Rini",
        "email": "trini@ti.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170901082618.30622-4-wenyou.yang@microchip.com/mbox/",
    "series": [
        {
            "id": 972,
            "url": "http://patchwork.ozlabs.org/api/series/972/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=972",
            "date": "2017-09-01T08:26:15",
            "name": "board: atmel: Set the ethernet mac address from eeprom",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/972/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/808580/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/808580/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>)",
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xkCCy6z9Rz9t1t\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri,  1 Sep 2017 18:32:30 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid A7D6AC21EF1; Fri,  1 Sep 2017 08:31:29 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 008A2C21EF0;\n\tFri,  1 Sep 2017 08:31:27 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid AF7C2C21EF0; Fri,  1 Sep 2017 08:30:48 +0000 (UTC)",
            "from eusmtp01.atmel.com (eusmtp01.atmel.com [212.144.249.242])\n\tby lists.denx.de (Postfix) with ESMTPS id 924E4C21EA8\n\tfor <u-boot@lists.denx.de>; Fri,  1 Sep 2017 08:30:48 +0000 (UTC)",
            "from apsmtp01.atmel.com (10.168.254.30) by eusmtp01.atmel.com\n\t(10.145.145.30) with Microsoft SMTP Server id 14.3.235.1;\n\tFri, 1 Sep 2017 10:30:11 +0200",
            "from shaarm01.corp.atmel.com (10.168.254.13) by\n\tapsmtp01.corp.atmel.com (10.168.254.30) with Microsoft SMTP Server id\n\t14.3.235.1; Fri, 1 Sep 2017 16:34:12 +0800"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED\n\tautolearn=unavailable autolearn_force=no version=3.4.0",
        "From": "Wenyou Yang <wenyou.yang@microchip.com>",
        "To": "U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Fri, 1 Sep 2017 16:26:18 +0800",
        "Message-ID": "<20170901082618.30622-4-wenyou.yang@microchip.com>",
        "X-Mailer": "git-send-email 2.13.0",
        "In-Reply-To": "<20170901082618.30622-1-wenyou.yang@microchip.com>",
        "References": "<20170901082618.30622-1-wenyou.yang@microchip.com>",
        "MIME-Version": "1.0",
        "Cc": "Tom Rini <trini@konsulko.com>",
        "Subject": "[U-Boot] [PATCH v4 3/3] board: sama5d4_xplained: Set mac address\n\tfrom eeprom",
        "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": "Add the code to set the ethernet mac address from eeprom by using\nthe common code from the common folder.\n\nSigned-off-by: Wenyou Yang <wenyou.yang@microchip.com>\n---\n\nChanges in v4:\n - Rebase the latest commit(8b3cec7da) on uboot/master.\n\nChanges in v3:\n - remove CONFIG_SPL_I2C_SUPPORT=y from the default configuration files.\n - rebase on [PATCH] misc: Makefile: Add condition on build i2c_eeprom.\n        https://lists.denx.de/pipermail/u-boot/2017-August/300783.html\n\nChanges in v2:\n - Add a new patch to create board/$(VENDOR)/common folder to\n   accommodate the common code and put the code to set the ethernet\n   mac address from eeprom here.\n - Use the i2c_eeprom driver to read the mac address, instead of\n   the dm i2c API directly.\n\n arch/arm/dts/at91-sama5d4_xplained.dts          |  5 +++++\n board/atmel/sama5d4_xplained/sama5d4_xplained.c | 12 ++++++++++++\n configs/sama5d4_xplained_mmc_defconfig          |  3 +++\n configs/sama5d4_xplained_nandflash_defconfig    |  3 +++\n configs/sama5d4_xplained_spiflash_defconfig     |  3 +++\n include/configs/sama5d4_xplained.h              |  2 ++\n 6 files changed, 28 insertions(+)",
    "diff": "diff --git a/arch/arm/dts/at91-sama5d4_xplained.dts b/arch/arm/dts/at91-sama5d4_xplained.dts\nindex ca6aff28e5..0592b31b91 100644\n--- a/arch/arm/dts/at91-sama5d4_xplained.dts\n+++ b/arch/arm/dts/at91-sama5d4_xplained.dts\n@@ -88,6 +88,11 @@\n \n \t\t\ti2c0: i2c@f8014000 {\n \t\t\t\tstatus = \"okay\";\n+\n+\t\t\t\ti2c_eeprom: i2c_eeprom@5c {\n+\t\t\t\t\tcompatible = \"atmel,24mac402\";\n+\t\t\t\t\treg = <0x5c>;\n+\t\t\t\t};\n \t\t\t};\n \n \t\t\tmacb0: ethernet@f8020000 {\ndiff --git a/board/atmel/sama5d4_xplained/sama5d4_xplained.c b/board/atmel/sama5d4_xplained/sama5d4_xplained.c\nindex 854afcb622..248a31b8c4 100644\n--- a/board/atmel/sama5d4_xplained/sama5d4_xplained.c\n+++ b/board/atmel/sama5d4_xplained/sama5d4_xplained.c\n@@ -192,6 +192,18 @@ int board_early_init_f(void)\n }\n #endif\n \n+#define AT24MAC_MAC_OFFSET\t0x9a\n+\n+#ifdef CONFIG_MISC_INIT_R\n+int misc_init_r(void)\n+{\n+#ifdef CONFIG_I2C_EEPROM\n+\tat91_set_ethaddr(AT24MAC_MAC_OFFSET);\n+#endif\n+\treturn 0;\n+}\n+#endif\n+\n int board_init(void)\n {\n \t/* adress of boot parameters */\ndiff --git a/configs/sama5d4_xplained_mmc_defconfig b/configs/sama5d4_xplained_mmc_defconfig\nindex de0ce40a56..792d011718 100644\n--- a/configs/sama5d4_xplained_mmc_defconfig\n+++ b/configs/sama5d4_xplained_mmc_defconfig\n@@ -47,6 +47,9 @@ CONFIG_AT91_UTMI=y\n CONFIG_AT91_H32MX=y\n CONFIG_DM_GPIO=y\n CONFIG_AT91_GPIO=y\n+CONFIG_DM_I2C=y\n+CONFIG_SYS_I2C_AT91=y\n+CONFIG_I2C_EEPROM=y\n CONFIG_DM_MMC=y\n CONFIG_GENERIC_ATMEL_MCI=y\n CONFIG_DM_SPI_FLASH=y\ndiff --git a/configs/sama5d4_xplained_nandflash_defconfig b/configs/sama5d4_xplained_nandflash_defconfig\nindex cba3c8b640..3b0af5bf00 100644\n--- a/configs/sama5d4_xplained_nandflash_defconfig\n+++ b/configs/sama5d4_xplained_nandflash_defconfig\n@@ -44,6 +44,9 @@ CONFIG_AT91_UTMI=y\n CONFIG_AT91_H32MX=y\n CONFIG_DM_GPIO=y\n CONFIG_AT91_GPIO=y\n+CONFIG_DM_I2C=y\n+CONFIG_SYS_I2C_AT91=y\n+CONFIG_I2C_EEPROM=y\n CONFIG_DM_MMC=y\n CONFIG_GENERIC_ATMEL_MCI=y\n CONFIG_DM_SPI_FLASH=y\ndiff --git a/configs/sama5d4_xplained_spiflash_defconfig b/configs/sama5d4_xplained_spiflash_defconfig\nindex 174e2bc5ba..26eb00598c 100644\n--- a/configs/sama5d4_xplained_spiflash_defconfig\n+++ b/configs/sama5d4_xplained_spiflash_defconfig\n@@ -46,6 +46,9 @@ CONFIG_AT91_UTMI=y\n CONFIG_AT91_H32MX=y\n CONFIG_DM_GPIO=y\n CONFIG_AT91_GPIO=y\n+CONFIG_DM_I2C=y\n+CONFIG_SYS_I2C_AT91=y\n+CONFIG_I2C_EEPROM=y\n CONFIG_DM_MMC=y\n CONFIG_GENERIC_ATMEL_MCI=y\n CONFIG_DM_SPI_FLASH=y\ndiff --git a/include/configs/sama5d4_xplained.h b/include/configs/sama5d4_xplained.h\nindex c8462b0b64..08f865016d 100644\n--- a/include/configs/sama5d4_xplained.h\n+++ b/include/configs/sama5d4_xplained.h\n@@ -12,6 +12,8 @@\n \n #include \"at91-sama5_common.h\"\n \n+#define CONFIG_MISC_INIT_R\n+\n /* SDRAM */\n #define CONFIG_NR_DRAM_BANKS\t\t1\n #define CONFIG_SYS_SDRAM_BASE           ATMEL_BASE_DDRCS\n",
    "prefixes": [
        "U-Boot",
        "v4",
        "3/3"
    ]
}