get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 809109,
    "url": "http://patchwork.ozlabs.org/api/patches/809109/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20170902163806.27265-7-robdclark@gmail.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": "<20170902163806.27265-7-robdclark@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-02T16:38:01",
    "name": "[U-Boot,v2,6/8] fat/fs: remove a bunch of dead code",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "f9015a47eda91945fa16b8c32a26ccc6265e07d3",
    "submitter": {
        "id": 18760,
        "url": "http://patchwork.ozlabs.org/api/people/18760/?format=api",
        "name": "Rob Clark",
        "email": "robdclark@gmail.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/20170902163806.27265-7-robdclark@gmail.com/mbox/",
    "series": [
        {
            "id": 1165,
            "url": "http://patchwork.ozlabs.org/api/series/1165/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=1165",
            "date": "2017-09-02T16:37:55",
            "name": "fs/fat: cleanups + readdir implementation",
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/1165/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/809109/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/809109/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\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"StwNRWSa\"; dkim-atps=neutral"
        ],
        "Received": [
            "from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xl21z4q3cz9sRW\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun,  3 Sep 2017 02:41:43 +1000 (AEST)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 48160C21F21; Sat,  2 Sep 2017 16:40:42 +0000 (UTC)",
            "from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id B90DBC21EDF;\n\tSat,  2 Sep 2017 16:40:24 +0000 (UTC)",
            "by lists.denx.de (Postfix, from userid 105)\n\tid 0696BC21F65; Sat,  2 Sep 2017 16:38:50 +0000 (UTC)",
            "from mail-qt0-f193.google.com (mail-qt0-f193.google.com\n\t[209.85.216.193])\n\tby lists.denx.de (Postfix) with ESMTPS id 70829C21F40\n\tfor <u-boot@lists.denx.de>; Sat,  2 Sep 2017 16:38:50 +0000 (UTC)",
            "by mail-qt0-f193.google.com with SMTP id u11so2073695qtu.2\n\tfor <u-boot@lists.denx.de>; Sat, 02 Sep 2017 09:38:50 -0700 (PDT)",
            "from localhost ([2601:184:4780:aac0:25f8:dd96:a084:785a])\n\tby smtp.gmail.com with ESMTPSA id\n\tf6sm2067978qtb.68.2017.09.02.09.38.47\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tSat, 02 Sep 2017 09:38:47 -0700 (PDT)"
        ],
        "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=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=K6ASRt37aQQc3BHGedlBFPG1hcFBSILXpzj/NF9VHIE=;\n\tb=StwNRWSa/eJYGhxEg/yE/iuaNBq2hcUDYDSBJ+VCobU5au+b3fR9J3Xdmr7yHWMKiL\n\tremD1Ujk5hlbFtVn+YVvfjJNjVvmFudryDi8MCzUXdJxOfk2aq23zXaMaD9/Js81PpTI\n\tPO4Hk6yuWz6dv0wFWVu2XF6/cXhy2mogHS8ONMu1ooHbAzD3sRRS7Jm6HHL2PM3uK8mM\n\tEMjYkuG/ikN77tn7beA/n0rSYk3MjLoRlnFYvh0NkDQ9puF7OaqsPPGbQMoLIoKJ0gt5\n\t+PG7sq0cl9N21q39ipkv1TRNC3TlhKRSakjuiTuSClDeO9eT+Rebvy5c1B3POqMy377y\n\tA6Lw==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=K6ASRt37aQQc3BHGedlBFPG1hcFBSILXpzj/NF9VHIE=;\n\tb=rNxFZ3HSdMN3+ZL//Fvz84ja1Wz4eEuOAl2jMDn9d01V/xfwtyLLA1hB/fU4voTB8S\n\tXWeIGcP/2Yncrxjst8E1EtDg7Kyus7rs3Hg7GIRToq6JMIQrJkCXsKW+ZEMhXh1bdTDh\n\tAFZdJxXN5KE1M7yHQ1ZUInKixWw9ypMqhikbGGik7uZm8kVBfDv2W/hKvDvWO15iUk1k\n\tB9DDuRa7r6Y987/rF522+JmdVUToin1WopPfdKH/kwREX/rh170nTX8SGDVUKeqohUjB\n\tDRh8B8TE7n1gX6JlfrPygpV6EYrWZN6iDOcdfGsFFDLA37pLgwjtAxYuAIeZw8w94wOD\n\tvruQ==",
        "X-Gm-Message-State": "AHPjjUictdjxwCope+I42rTolp4EKbspAW/jJhr8BN45HVvTGPTP8wJy\n\tF6z4vrfh6/ytkC48lcE=",
        "X-Google-Smtp-Source": "ADKCNb7aMDYA+pR/HySLyTx4tJ/LJj2Rb3vq/0p5mxwwfh1c6i5Rql61xte8ai6Rl0sDLRyc457zaQ==",
        "X-Received": "by 10.200.63.124 with SMTP id w57mr7612395qtk.43.1504370329121; \n\tSat, 02 Sep 2017 09:38:49 -0700 (PDT)",
        "From": "Rob Clark <robdclark@gmail.com>",
        "To": "U-Boot Mailing List <u-boot@lists.denx.de>",
        "Date": "Sat,  2 Sep 2017 12:38:01 -0400",
        "Message-Id": "<20170902163806.27265-7-robdclark@gmail.com>",
        "X-Mailer": "git-send-email 2.13.5",
        "In-Reply-To": "<20170902163806.27265-1-robdclark@gmail.com>",
        "References": "<20170902163806.27265-1-robdclark@gmail.com>",
        "MIME-Version": "1.0",
        "Cc": "Genevieve Chan <ccheauya@altera.com>, Tien Fong Chee <tfchee@altera.com>",
        "Subject": "[U-Boot] [PATCH v2 6/8] fat/fs: remove a bunch of dead code",
        "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": "Spotted by chance, when trying to remove file_fat_ls(), I noticed there\nwere some dead users of the API.\n\nSigned-off-by: Rob Clark <robdclark@gmail.com>\nAcked-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>\n---\n fs/fat/Makefile |   4 --\n fs/fat/file.c   | 183 --------------------------------------------------------\n include/fat.h   |  20 -------\n 3 files changed, 207 deletions(-)\n delete mode 100644 fs/fat/file.c",
    "diff": "diff --git a/fs/fat/Makefile b/fs/fat/Makefile\nindex b60e8486c4..3e2a6b01a8 100644\n--- a/fs/fat/Makefile\n+++ b/fs/fat/Makefile\n@@ -5,7 +5,3 @@\n \n obj-$(CONFIG_FS_FAT)\t:= fat.o\n obj-$(CONFIG_FAT_WRITE):= fat_write.o\n-\n-ifndef CONFIG_SPL_BUILD\n-obj-$(CONFIG_FS_FAT)\t+= file.o\n-endif\ndiff --git a/fs/fat/file.c b/fs/fat/file.c\ndeleted file mode 100644\nindex 89706117b9..0000000000\n--- a/fs/fat/file.c\n+++ /dev/null\n@@ -1,183 +0,0 @@\n-/*\n- * file.c\n- *\n- * Mini \"VFS\" by Marcus Sundberg\n- *\n- * 2002-07-28 - rjones@nexus-tech.net - ported to ppcboot v1.1.6\n- * 2003-03-10 - kharris@nexus-tech.net - ported to uboot\n- *\n- * SPDX-License-Identifier:\tGPL-2.0+\n- */\n-\n-#include <common.h>\n-#include <config.h>\n-#include <malloc.h>\n-#include <fat.h>\n-#include <linux/stat.h>\n-#include <linux/time.h>\n-\n-/* Supported filesystems */\n-static const struct filesystem filesystems[] = {\n-\t{ file_fat_detectfs,  file_fat_ls,  file_fat_read,  \"FAT\" },\n-};\n-#define NUM_FILESYS\t(sizeof(filesystems)/sizeof(struct filesystem))\n-\n-/* The filesystem which was last detected */\n-static int current_filesystem = FSTYPE_NONE;\n-\n-/* The current working directory */\n-#define CWD_LEN\t\t511\n-char file_cwd[CWD_LEN+1] = \"/\";\n-\n-const char *\n-file_getfsname(int idx)\n-{\n-\tif (idx < 0 || idx >= NUM_FILESYS)\n-\t\treturn NULL;\n-\n-\treturn filesystems[idx].name;\n-}\n-\n-static void\n-pathcpy(char *dest, const char *src)\n-{\n-\tchar *origdest = dest;\n-\n-\tdo {\n-\t\tif (dest-file_cwd >= CWD_LEN) {\n-\t\t\t*dest = '\\0';\n-\t\t\treturn;\n-\t\t}\n-\t\t*(dest) = *(src);\n-\t\tif (*src == '\\0') {\n-\t\t\tif (dest-- != origdest && ISDIRDELIM(*dest)) {\n-\t\t\t\t*dest = '\\0';\n-\t\t\t}\n-\t\t\treturn;\n-\t\t}\n-\t\t++dest;\n-\n-\t\tif (ISDIRDELIM(*src))\n-\t\t\twhile (ISDIRDELIM(*src)) src++;\n-\t\telse\n-\t\t\tsrc++;\n-\t} while (1);\n-}\n-\n-int\n-file_cd(const char *path)\n-{\n-\tif (ISDIRDELIM(*path)) {\n-\t\twhile (ISDIRDELIM(*path)) path++;\n-\t\tstrncpy(file_cwd+1, path, CWD_LEN-1);\n-\t} else {\n-\t\tconst char *origpath = path;\n-\t\tchar *tmpstr = file_cwd;\n-\t\tint back = 0;\n-\n-\t\twhile (*tmpstr != '\\0') tmpstr++;\n-\t\tdo {\n-\t\t\ttmpstr--;\n-\t\t} while (ISDIRDELIM(*tmpstr));\n-\n-\t\twhile (*path == '.') {\n-\t\t\tpath++;\n-\t\t\twhile (*path == '.') {\n-\t\t\t\tpath++;\n-\t\t\t\tback++;\n-\t\t\t}\n-\t\t\tif (*path != '\\0' && !ISDIRDELIM(*path)) {\n-\t\t\t\tpath = origpath;\n-\t\t\t\tback = 0;\n-\t\t\t\tbreak;\n-\t\t\t}\n-\t\t\twhile (ISDIRDELIM(*path)) path++;\n-\t\t\torigpath = path;\n-\t\t}\n-\n-\t\twhile (back--) {\n-\t\t\t/* Strip off path component */\n-\t\t\twhile (!ISDIRDELIM(*tmpstr)) {\n-\t\t\t\ttmpstr--;\n-\t\t\t}\n-\t\t\tif (tmpstr == file_cwd) {\n-\t\t\t\t/* Incremented again right after the loop. */\n-\t\t\t\ttmpstr--;\n-\t\t\t\tbreak;\n-\t\t\t}\n-\t\t\t/* Skip delimiters */\n-\t\t\twhile (ISDIRDELIM(*tmpstr)) tmpstr--;\n-\t\t}\n-\t\ttmpstr++;\n-\t\tif (*path == '\\0') {\n-\t\t\tif (tmpstr == file_cwd) {\n-\t\t\t\t*tmpstr = '/';\n-\t\t\t\ttmpstr++;\n-\t\t\t}\n-\t\t\t*tmpstr = '\\0';\n-\t\t\treturn 0;\n-\t\t}\n-\t\t*tmpstr = '/';\n-\t\tpathcpy(tmpstr+1, path);\n-\t}\n-\n-\treturn 0;\n-}\n-\n-int\n-file_detectfs(void)\n-{\n-\tint i;\n-\n-\tcurrent_filesystem = FSTYPE_NONE;\n-\n-\tfor (i = 0; i < NUM_FILESYS; i++) {\n-\t\tif (filesystems[i].detect() == 0) {\n-\t\t\tstrcpy(file_cwd, \"/\");\n-\t\t\tcurrent_filesystem = i;\n-\t\t\tbreak;\n-\t\t}\n-\t}\n-\n-\treturn current_filesystem;\n-}\n-\n-int\n-file_ls(const char *dir)\n-{\n-\tchar fullpath[1024];\n-\tconst char *arg;\n-\n-\tif (current_filesystem == FSTYPE_NONE) {\n-\t\tprintf(\"Can't list files without a filesystem!\\n\");\n-\t\treturn -1;\n-\t}\n-\n-\tif (ISDIRDELIM(*dir)) {\n-\t\targ = dir;\n-\t} else {\n-\t\tsprintf(fullpath, \"%s/%s\", file_cwd, dir);\n-\t\targ = fullpath;\n-\t}\n-\treturn filesystems[current_filesystem].ls(arg);\n-}\n-\n-int file_read(const char *filename, void *buffer, int maxsize)\n-{\n-\tchar fullpath[1024];\n-\tconst char *arg;\n-\n-\tif (current_filesystem == FSTYPE_NONE) {\n-\t\tprintf(\"Can't load file without a filesystem!\\n\");\n-\t\treturn -1;\n-\t}\n-\n-\tif (ISDIRDELIM(*filename)) {\n-\t\targ = filename;\n-\t} else {\n-\t\tsprintf(fullpath, \"%s/%s\", file_cwd, filename);\n-\t\targ = fullpath;\n-\t}\n-\n-\treturn filesystems[current_filesystem].read(arg, buffer, maxsize);\n-}\ndiff --git a/include/fat.h b/include/fat.h\nindex 3e7ab9ea8d..1e8bc44e9a 100644\n--- a/include/fat.h\n+++ b/include/fat.h\n@@ -171,25 +171,6 @@ typedef struct {\n \tint\trootdir_size;\n } fsdata;\n \n-typedef int\t(file_detectfs_func)(void);\n-typedef int\t(file_ls_func)(const char *dir);\n-typedef int\t(file_read_func)(const char *filename, void *buffer,\n-\t\t\t\t int maxsize);\n-\n-struct filesystem {\n-\tfile_detectfs_func\t*detect;\n-\tfile_ls_func\t\t*ls;\n-\tfile_read_func\t\t*read;\n-\tconst char\t\tname[12];\n-};\n-\n-/* FAT tables */\n-file_detectfs_func\tfile_fat_detectfs;\n-file_ls_func\t\tfile_fat_ls;\n-file_read_func\t\tfile_fat_read;\n-\n-/* Currently this doesn't check if the dir exists or is valid... */\n-int file_cd(const char *path);\n int file_fat_detectfs(void);\n int file_fat_ls(const char *dir);\n int fat_exists(const char *filename);\n@@ -197,7 +178,6 @@ int fat_size(const char *filename, loff_t *size);\n int file_fat_read_at(const char *filename, loff_t pos, void *buffer,\n \t\t     loff_t maxsize, loff_t *actread);\n int file_fat_read(const char *filename, void *buffer, int maxsize);\n-const char *file_getfsname(int idx);\n int fat_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info);\n int fat_register_device(struct blk_desc *dev_desc, int part_no);\n \n",
    "prefixes": [
        "U-Boot",
        "v2",
        "6/8"
    ]
}