get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 1482317,
    "url": "http://patchwork.ozlabs.org/api/patches/1482317/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20210521200503.97577-2-rehn.andreas86@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": "<20210521200503.97577-2-rehn.andreas86@gmail.com>",
    "list_archive_url": null,
    "date": "2021-05-21T20:05:02",
    "name": "[v2,4/6] net: sun8i-emac: add v3s variant",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "4a27e8cfdde16de4704f802db8f47e213987cc26",
    "submitter": {
        "id": 81770,
        "url": "http://patchwork.ozlabs.org/api/people/81770/?format=api",
        "name": "Andreas Rehn",
        "email": "rehn.andreas86@gmail.com"
    },
    "delegate": {
        "id": 17739,
        "url": "http://patchwork.ozlabs.org/api/users/17739/?format=api",
        "username": "jagan",
        "first_name": "Jagannadha Sutradharudu",
        "last_name": "Teki",
        "email": "jagannadh.teki@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20210521200503.97577-2-rehn.andreas86@gmail.com/mbox/",
    "series": [
        {
            "id": 245186,
            "url": "http://patchwork.ozlabs.org/api/series/245186/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=245186",
            "date": "2021-05-21T20:05:01",
            "name": null,
            "version": 2,
            "mbox": "http://patchwork.ozlabs.org/series/245186/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/1482317/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/1482317/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 spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>)",
            "ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20161025 header.b=gh6QzkP7;\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de",
            "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.b=\"gh6QzkP7\";\n\tdkim-atps=neutral",
            "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=gmail.com",
            "phobos.denx.de;\n spf=pass smtp.mailfrom=rehn.andreas86@gmail.com"
        ],
        "Received": [
            "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature RSA-PSS (4096 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 4FmyKt14DQz9sW7\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 22 May 2021 06:06:25 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 504D282E8D;\n\tFri, 21 May 2021 22:06:22 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 04DD982E65; Fri, 21 May 2021 22:06:08 +0200 (CEST)",
            "from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com\n [IPv6:2a00:1450:4864:20::32b])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id D7C1482E41\n for <u-boot@lists.denx.de>; Fri, 21 May 2021 22:06:04 +0200 (CEST)",
            "by mail-wm1-x32b.google.com with SMTP id\n f20-20020a05600c4e94b0290181f6edda88so1131315wmq.2\n for <u-boot@lists.denx.de>; Fri, 21 May 2021 13:06:04 -0700 (PDT)",
            "from flex-5.fritz.box (x4db6b405.dyn.telefonica.de. [77.182.180.5])\n by smtp.gmail.com with ESMTPSA id\n k9sm187524wmi.45.2021.05.21.13.06.03\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 21 May 2021 13:06:04 -0700 (PDT)"
        ],
        "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de",
        "X-Spam-Level": "",
        "X-Spam-Status": "No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham\n autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=otFUIrofJpgyewmryLNqbQL9MkAs8c2NXP1lAsXdJ2I=;\n b=gh6QzkP7Qq3ufw52hj5eWpCd0D7LbYbjR2LoSK7Jms6u0yM7/jvKfINy8ZQ92hQ0jz\n R8N0RgrcP/I7kYcDiKNu/4pkMvesr1Qr1erZtrrwYeTvoedd7EaOn+PIhEX5azXs5f6w\n yVBL3U38p2QsHGybeqSIoEWMBuYr0kJ1qGhd7Uze3LpzFVRDJPdTTS5z+F/9MtKWOPmB\n 0HiVy7DCm8lu84XoTVN4iAIe/bU+Hi+ngqtziVq6vNieo0ntupQBwwBBbrYwgNwpxPvw\n dZeg5fvk+AB+5zrWpkGqoY1Wewv13Fx72UJv7UYbsP8bJwDswdQarQnjqvxbOVHhXhgj\n uSsQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=otFUIrofJpgyewmryLNqbQL9MkAs8c2NXP1lAsXdJ2I=;\n b=M3K/rF8pSSN02Fp6pffTzfiBLrgyEtfyLg5Bpsdg0KF/cZ09RXh7Z5//0LOmdVrcS6\n 2yPVv4cFaj4HnB8APzgKOLqJGGd4f3sAn9HTAn3fN2G7s2ZKc99HT4Kt0lba8zEZl8DV\n D7MrSOLnIqFpEceLLx7wxNOpmc6lAPPJKdFKTO9Dk4q9nW+jIUF+URkumPWyu0A2Rmcv\n xn9w51Xv2FmGB9AFdiwcELUJ2bL8QZJeNfTdhfv91VoTVd1jt7KODjF1zMIlCFxOD1dl\n qjQwg0O5stz2NGpUcDz/emGCHarx/lw6HwDeFG8l69Nm6IkM8fe+T1hSujCdTlJIDSE8\n bk5g==",
        "X-Gm-Message-State": "AOAM530mrmEZ7wYHjlO9i9tD67wr0fJKLSdSq/CDoRA4/psiXoVXsv1m\n duGADV8CyA9NoD0ei7vF3ic=",
        "X-Google-Smtp-Source": "\n ABdhPJwJtmIdC+FhNDsT9WNSWrp4wOqxxU+n5tokRq3hBtm9Ym+fUdCct6yEe98rlRZ/7A5AnA4a/Q==",
        "X-Received": "by 2002:a1c:f219:: with SMTP id s25mr10794308wmc.31.1621627564405;\n Fri, 21 May 2021 13:06:04 -0700 (PDT)",
        "From": "Andreas Rehn <rehn.andreas86@gmail.com>",
        "To": "hdegoede@redhat.com,\n\tjagan@amarulasolutions.com,\n\tandre.przywara@arm.com",
        "Cc": "icenowy@aosc.io, u-boot@lists.denx.de, linux-sunxi@googlegroups.com,\n Andreas Rehn <rehn.andreas86@gmail.com>",
        "Subject": "[PATCH v2 4/6] net: sun8i-emac: add v3s variant",
        "Date": "Fri, 21 May 2021 22:05:02 +0200",
        "Message-Id": "<20210521200503.97577-2-rehn.andreas86@gmail.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20210521200503.97577-1-rehn.andreas86@gmail.com>",
        "References": "<20210521200503.97577-1-rehn.andreas86@gmail.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.34",
        "Precedence": "list",
        "List-Id": "U-Boot discussion <u-boot.lists.denx.de>",
        "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>",
        "List-Archive": "<https://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 <mailto:u-boot-request@lists.denx.de?subject=subscribe>",
        "Errors-To": "u-boot-bounces@lists.denx.de",
        "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>",
        "X-Virus-Scanned": "clamav-milter 0.102.4 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "Add variant V3S_EMAC.\nSkip GPIO setup for V3s because it uses internal phy and don't expose pins.\n\nSigned-off-by: Andreas Rehn <rehn.andreas86@gmail.com>\n---\n drivers/net/sun8i_emac.c | 17 +++++++++++++----\n 1 file changed, 13 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/drivers/net/sun8i_emac.c b/drivers/net/sun8i_emac.c\nindex 5a1b38bf80..7541d3cf68 100644\n--- a/drivers/net/sun8i_emac.c\n+++ b/drivers/net/sun8i_emac.c\n@@ -145,6 +145,7 @@ enum emac_variant {\n \tA64_EMAC,\n \tR40_GMAC,\n \tH6_EMAC,\n+\tV3S_EMAC,\n };\n \n struct emac_dma_desc {\n@@ -303,7 +304,7 @@ static void sun8i_adjust_link(struct emac_eth_dev *priv,\n static u32 sun8i_emac_set_syscon_ephy(struct emac_eth_dev *priv, u32 reg)\n {\n \tif (priv->use_internal_phy) {\n-\t\t/* H3 based SoC's that has an Internal 100MBit PHY\n+\t\t/* H3 and V3s based SoC's that has an Internal 100MBit PHY\n \t\t * needs to be configured and powered up before use\n \t\t*/\n \t\treg &= ~H3_EPHY_DEFAULT_MASK;\n@@ -343,7 +344,8 @@ static int sun8i_emac_set_syscon(struct sun8i_eth_pdata *pdata,\n \treg &= ~(SC_ETCS_MASK | SC_EPIT);\n \tif (priv->variant == H3_EMAC ||\n \t    priv->variant == A64_EMAC ||\n-\t    priv->variant == H6_EMAC)\n+\t    priv->variant == H6_EMAC ||\n+\t    priv->variant == V3S_EMAC)\n \t\treg &= ~SC_RMII_EN;\n \n \tswitch (priv->interface) {\n@@ -354,7 +356,8 @@ static int sun8i_emac_set_syscon(struct sun8i_eth_pdata *pdata,\n \tcase PHY_INTERFACE_MODE_RGMII_ID:\n \tcase PHY_INTERFACE_MODE_RGMII_RXID:\n \tcase PHY_INTERFACE_MODE_RGMII_TXID:\n-\t\treg |= SC_EPIT | SC_ETCS_INT_GMII;\n+\t\tif (priv->variant != V3S_EMAC)\n+\t\t\treg |= SC_EPIT | SC_ETCS_INT_GMII;\n \t\tbreak;\n \tcase PHY_INTERFACE_MODE_RMII:\n \t\tif (priv->variant == H3_EMAC ||\n@@ -566,6 +569,9 @@ static int parse_phy_pins(struct udevice *dev)\n \t\tiomux = SUN8I_IOMUX;\n \telse if (IS_ENABLED(CONFIG_MACH_SUN50I))\n \t\tiomux = SUN8I_IOMUX;\n+\telse if (IS_ENABLED(CONFIG_MACH_SUN8I_V3S))\n+\t\t// V3s does not expose any MAC pins - skip gpio setup.\n+\t\treturn 0;\n \telse\n \t\tBUILD_BUG_ON_MSG(1, \"missing pinmux value for Ethernet pins\");\n \n@@ -956,7 +962,8 @@ static int sun8i_emac_eth_of_to_plat(struct udevice *dev)\n \t\treturn -EINVAL;\n \t}\n \n-\tif (priv->variant == H3_EMAC) {\n+\tif (priv->variant == H3_EMAC ||\n+\t    priv->variant == V3S_EMAC) {\n \t\tret = sun8i_handle_internal_phy(dev, priv);\n \t\tif (ret)\n \t\t\treturn ret;\n@@ -1009,6 +1016,8 @@ static const struct udevice_id sun8i_emac_eth_ids[] = {\n \t\t.data = (uintptr_t)R40_GMAC },\n \t{.compatible = \"allwinner,sun50i-h6-emac\",\n \t\t.data = (uintptr_t)H6_EMAC },\n+\t{.compatible = \"allwinner,sun8i-v3s-emac\",\n+\t\t.data = (uintptr_t)V3S_EMAC },\n \t{ }\n };\n \n",
    "prefixes": [
        "v2",
        "4/6"
    ]
}