get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 725051,
    "url": "http://patchwork.ozlabs.org/api/patches/725051/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170207091135.23008-3-wenyou.yang@atmel.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": "<20170207091135.23008-3-wenyou.yang@atmel.com>",
    "list_archive_url": null,
    "date": "2017-02-07T09:11:33",
    "name": "[U-Boot,v2,2/4] board: at91sam9x5ek: clean up code",
    "commit_ref": null,
    "pull_url": null,
    "state": "deferred",
    "archived": false,
    "hash": "c43bfb49ae87381cfe4b120c21321ad76952bbac",
    "submitter": {
        "id": 16102,
        "url": "http://patchwork.ozlabs.org/api/people/16102/?format=api",
        "name": "Wenyou Yang",
        "email": "wenyou.yang@atmel.com"
    },
    "delegate": {
        "id": 6342,
        "url": "http://patchwork.ozlabs.org/api/users/6342/?format=api",
        "username": "abiessmann",
        "first_name": "Andreas",
        "last_name": "Bießmann",
        "email": "andreas.biessmann@googlemail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20170207091135.23008-3-wenyou.yang@atmel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/725051/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/725051/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 3vHdyD4rs7z9s2s\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  7 Feb 2017 20:16:52 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id B2E23B3874;\n\tTue,  7 Feb 2017 10:16:50 +0100 (CET)",
            "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 cre0_nIkIS2R; Tue,  7 Feb 2017 10:16:50 +0100 (CET)",
            "from theia.denx.de (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 0A3704B9A2;\n\tTue,  7 Feb 2017 10:16:50 +0100 (CET)",
            "from localhost (localhost [127.0.0.1])\n\tby theia.denx.de (Postfix) with ESMTP id 83C084BA58\n\tfor <u-boot@lists.denx.de>; Tue,  7 Feb 2017 10:16:47 +0100 (CET)",
            "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 ISvN8wG5TYa8 for <u-boot@lists.denx.de>;\n\tTue,  7 Feb 2017 10:16:47 +0100 (CET)",
            "from ussmtp01.atmel.com (nasmtp01.atmel.com [192.199.1.246])\n\tby theia.denx.de (Postfix) with ESMTPS id 080F44B99D\n\tfor <u-boot@lists.denx.de>; Tue,  7 Feb 2017 10:16:44 +0100 (CET)",
            "from apsmtp01.atmel.com (10.168.254.31) by DVREDG02.corp.atmel.com\n\t(10.42.103.31) with Microsoft SMTP Server (TLS) id 14.3.235.1;\n\tTue, 7 Feb 2017 02:16:38 -0700",
            "from shaarm01.corp.atmel.com (10.168.254.13) by apsmtp01.atmel.com\n\t(10.168.254.31) with Microsoft SMTP Server id 14.3.235.1;\n\tTue, 7 Feb 2017 17:21:17 +0800"
        ],
        "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": "Wenyou Yang <wenyou.yang@atmel.com>",
        "To": "U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Tue, 7 Feb 2017 17:11:33 +0800",
        "Message-ID": "<20170207091135.23008-3-wenyou.yang@atmel.com>",
        "X-Mailer": "git-send-email 2.11.0",
        "In-Reply-To": "<20170207091135.23008-1-wenyou.yang@atmel.com>",
        "References": "<20170207091135.23008-1-wenyou.yang@atmel.com>",
        "MIME-Version": "1.0",
        "Subject": "[U-Boot] [PATCH v2 2/4] board: at91sam9x5ek: clean up code",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.15",
        "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",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>"
    },
    "content": "Since the introduction of the pinctrl and clk driver and\nthe dts file, remove unneeded hard coded related code from\nthe board file\n\nSigned-off-by: Wenyou Yang <wenyou.yang@atmel.com>\nReviewed-by: Simon Glass <sjg@chromium.org>\n---\n\nChanges in v2: None\n\n board/atmel/at91sam9x5ek/at91sam9x5ek.c | 68 ---------------------------------\n 1 file changed, 68 deletions(-)",
    "diff": "diff --git a/board/atmel/at91sam9x5ek/at91sam9x5ek.c b/board/atmel/at91sam9x5ek/at91sam9x5ek.c\nindex 0ae42dd158..9bd5eaf363 100644\n--- a/board/atmel/at91sam9x5ek/at91sam9x5ek.c\n+++ b/board/atmel/at91sam9x5ek/at91sam9x5ek.c\n@@ -15,17 +15,10 @@\n #include <lcd.h>\n #include <atmel_hlcdc.h>\n #include <atmel_mci.h>\n-#ifdef CONFIG_MACB\n-#include <net.h>\n-#endif\n-#include <netdev.h>\n #ifdef CONFIG_LCD_INFO\n #include <nand.h>\n #include <version.h>\n #endif\n-#ifdef CONFIG_ATMEL_SPI\n-#include <spi.h>\n-#endif\n \n DECLARE_GLOBAL_DATA_PTR;\n \n@@ -92,21 +85,6 @@ static void at91sam9x5ek_nand_hw_init(void)\n }\n #endif\n \n-int board_eth_init(bd_t *bis)\n-{\n-\tint rc = 0;\n-\n-#ifdef CONFIG_MACB\n-\tif (has_emac0())\n-\t\trc = macb_eth_initialize(0,\n-\t\t\t(void *)ATMEL_BASE_EMAC0, 0x00);\n-\tif (has_emac1())\n-\t\trc = macb_eth_initialize(1,\n-\t\t\t(void *)ATMEL_BASE_EMAC1, 0x00);\n-#endif\n-\treturn rc;\n-}\n-\n #ifdef CONFIG_LCD\n vidinfo_t panel_info = {\n \t.vl_col\t= 800,\n@@ -205,42 +183,6 @@ void lcd_show_board_info(void)\n #endif /* CONFIG_LCD_INFO */\n #endif /* CONFIG_LCD */\n \n-#ifndef CONFIG_DM_SPI\n-/* SPI chip select control */\n-#ifdef CONFIG_ATMEL_SPI\n-int spi_cs_is_valid(unsigned int bus, unsigned int cs)\n-{\n-\treturn bus == 0 && cs < 2;\n-}\n-\n-void spi_cs_activate(struct spi_slave *slave)\n-{\n-\tswitch (slave->cs) {\n-\tcase 1:\n-\t\tat91_set_pio_output(AT91_PIO_PORTA, 7, 0);\n-\t\tbreak;\n-\tcase 0:\n-\tdefault:\n-\t\tat91_set_pio_output(AT91_PIO_PORTA, 14, 0);\n-\t\tbreak;\n-\t}\n-}\n-\n-void spi_cs_deactivate(struct spi_slave *slave)\n-{\n-\tswitch (slave->cs) {\n-\tcase 1:\n-\t\tat91_set_pio_output(AT91_PIO_PORTA, 7, 1);\n-\t\tbreak;\n-\tcase 0:\n-\tdefault:\n-\t\tat91_set_pio_output(AT91_PIO_PORTA, 14, 1);\n-\t\tbreak;\n-\t}\n-}\n-#endif /* CONFIG_ATMEL_SPI */\n-#endif\n-\n #ifdef CONFIG_GENERIC_ATMEL_MCI\n int board_mmc_init(bd_t *bd)\n {\n@@ -268,14 +210,6 @@ int board_init(void)\n \tat91sam9x5ek_nand_hw_init();\n #endif\n \n-#ifdef CONFIG_ATMEL_SPI\n-\tat91_spi0_hw_init(1 << 4);\n-#endif\n-\n-#ifdef CONFIG_MACB\n-\tat91_macb_hw_init();\n-#endif\n-\n #if defined(CONFIG_USB_OHCI_NEW) || defined(CONFIG_USB_EHCI)\n \tat91_uhp_hw_init();\n #endif\n@@ -302,8 +236,6 @@ void at91_spl_board_init(void)\n \tat91_mci_hw_init();\n #elif CONFIG_SYS_USE_NANDFLASH\n \tat91sam9x5ek_nand_hw_init();\n-#elif CONFIG_SYS_USE_SPIFLASH\n-\tat91_spi0_hw_init(1 << 4);\n #endif\n }\n \n",
    "prefixes": [
        "U-Boot",
        "v2",
        "2/4"
    ]
}