get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2226854,
    "url": "http://patchwork.ozlabs.org/api/patches/2226854/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20260422165938.35925-4-micbis.openwrt@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": "<20260422165938.35925-4-micbis.openwrt@gmail.com>",
    "list_archive_url": null,
    "date": "2026-04-22T16:59:38",
    "name": "[v4,3/3] usb: gadget: rcar: Add support for RZ/G2L (R9A07G044)",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "a53a8b93e7fc5378a15477107a2f5f572e4cea4e",
    "submitter": {
        "id": 93164,
        "url": "http://patchwork.ozlabs.org/api/people/93164/?format=api",
        "name": "Michele Bisogno",
        "email": "micbis.openwrt@gmail.com"
    },
    "delegate": {
        "id": 1699,
        "url": "http://patchwork.ozlabs.org/api/users/1699/?format=api",
        "username": "marex",
        "first_name": "Marek",
        "last_name": "Vasut",
        "email": "marek.vasut@gmail.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260422165938.35925-4-micbis.openwrt@gmail.com/mbox/",
    "series": [
        {
            "id": 501102,
            "url": "http://patchwork.ozlabs.org/api/series/501102/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=501102",
            "date": "2026-04-22T16:59:36",
            "name": "usb: gadget: rcar: Add RZ/G2L support and lifecycle fixes",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/501102/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226854/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226854/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<u-boot-bounces@lists.denx.de>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.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=20251104 header.b=a6d+P+Jk;\n\tdkim-atps=neutral",
            "legolas.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=patchwork.ozlabs.org)",
            "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=\"a6d+P+Jk\";\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=micbis.openwrt@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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g19c96WH0z1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 06:21:45 +1000 (AEST)",
            "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 2BA54843F3;\n\tWed, 22 Apr 2026 22:21:28 +0200 (CEST)",
            "by phobos.denx.de (Postfix, from userid 109)\n id 8B57E8426E; Wed, 22 Apr 2026 19:00:43 +0200 (CEST)",
            "from mail-wm1-x335.google.com (mail-wm1-x335.google.com\n [IPv6:2a00:1450:4864:20::335])\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 86DBD8432A\n for <u-boot@lists.denx.de>; Wed, 22 Apr 2026 19:00:37 +0200 (CEST)",
            "by mail-wm1-x335.google.com with SMTP id\n 5b1f17b1804b1-4890098abbaso41174265e9.0\n for <u-boot@lists.denx.de>; Wed, 22 Apr 2026 10:00:37 -0700 (PDT)",
            "from localhost.localdomain ([151.70.144.55])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-4891c08faffsm453725165e9.1.2026.04.22.10.00.35\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 22 Apr 2026 10:00:35 -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=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_GMAIL_RCVD,FREEMAIL_FROM,\n RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=no\n autolearn_force=no version=3.4.2",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1776877237; x=1777482037; darn=lists.denx.de;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=CIDlrSCi8FMo3wuC+u/3xV/rhNgAd01XIMZlq0t4/K0=;\n b=a6d+P+JkHgu8dugiaHTErAtXH6rIixiosZhn6zy2fs+F1NSVIAOJcLQCx/d2MDTFQD\n kXmtwucirVLUYC6qIKsSKNerxMI0mFJnYskJTxd6FJVHrrwodqGVutfuftBcotOW3MZX\n FDV/olNRQkz2r2i38qRibK/JRGEm+vobrnt6If5fdEXPvUFR/4DJH8NutnbwvVQBYAxY\n YMd0AjSynZDQFlX5hXRr+5xAMOPO+HyXFswz98Gxc3YGaFgyHquDKzVldY2KHVUsscjV\n cq8Q6B2PUQhWoxe0dbcaTVFMChhJnDm5YHSagYtmh537h4o5QPJKhCcf0hpDfRFpjpIN\n etqQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776877237; x=1777482037;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=CIDlrSCi8FMo3wuC+u/3xV/rhNgAd01XIMZlq0t4/K0=;\n b=jTRajbTvohdO8YaaavZLpDQUG6MXhmWWtepBlkAQJZBestKdbGOtCWUnVbmZPyO5qR\n hy6bK3uOnBtEjUkEP6vPFV6FFzCaZsw+dpYM6+V2wOYpyZSlj7AvPvxleQECozbUYarh\n 4Tn7ECYTA6HVx7oFC6rwNq43edLFaxA+biW0GmVLDzK+nmfYPaWnPDnCeKatok+XHFnx\n ygudbw2eLRmg1c9KNj0U6nd8DNNuBX48UtudeEsNhwsph7EV7qmC8Ppqr8wPKxQ6BdNo\n VFpJ4zbwQvfgLu29nw4TX1UBc/BPtuKhfNbMaRaz+x5f/keJ8bN3U9GMRlEAQmPHOv4K\n ItIw==",
        "X-Forwarded-Encrypted": "i=1;\n AFNElJ+OGR5vGVq/PMI5dImrJhf1e/NzVWltOsH7Y8oanvnk0ySgHStYSwrhivmaM1Y/KpAGba2TICQ=@lists.denx.de",
        "X-Gm-Message-State": "AOJu0Yz52v39nePJo0IA+UR1ciL+JFXBhhEKBrAx+1nr08NYyCPzjQVq\n 2Rn4AeuAw1cRrwQmWkbsPwfsbs5L/I7V/UXCBvtUQslrAoG8pOQ8/Smt",
        "X-Gm-Gg": "AeBDiesYgk6QCfikM3jhI5524YtlULabPP91qHhEZu6SbfoncUlu+qA4MsWlTdNklQf\n U6EedpRfQ2Kd/qovYaBmdzKIR/0nwEScx8NKthLICz+ptiFNL+7yw4ujhaVrM3Baulo4bnG3sY+\n h94lCimbKDGI7cfUIrkrFuCKhgIubdvlKpiPjaeAHn6Fd/ZiFbrMTkacKRkqj0lk3xYGGw+OBfk\n 49D3udEk7XXoMCRMxM70b8Qr3VTLtUh2+1uo9fSNL9GkVt8f/SNy2h5x19thNsZx/jsDYVXPGd1\n z7Z3Qofpl0mv10zfsBMSPgXvJucLNlBVOkzVD454avkajCZts+PUKMENFmOZTyBgfxnU8b9HLKZ\n m+jPZ/gE9oDG87pUEcBnqmKKjL1KMOHmc4Eu20xxkHti9FiPqhWH8Ytw1lsdHBjWyxoQnPYX+jm\n b8YZj3dbIOF5TQDn4QUsTbq+Nz9rlVY+kLKAAsEsu6BwS3A6Ly+jDjREMx3JegTA==",
        "X-Received": "by 2002:a05:600c:2d09:b0:489:c57:7836 with SMTP id\n 5b1f17b1804b1-4890c5778ffmr132582975e9.27.1776877236543;\n Wed, 22 Apr 2026 10:00:36 -0700 (PDT)",
        "From": "Michele Bisogno <micbis.openwrt@gmail.com>",
        "To": "Marek Vasut <marex@denx.de>, Lukasz Majewski <lukma@denx.de>,\n Mattijs Korpershoek <mkorpershoek@kernel.org>",
        "Cc": "Nobuhiro Iwamatsu <iwamatsu@nigauri.org>, Tom Rini <trini@konsulko.com>,\n u-boot@lists.denx.de, Michele Bisogno <micbis.openwrt@gmail.com>",
        "Subject": "[PATCH v4 3/3] usb: gadget: rcar: Add support for RZ/G2L (R9A07G044)",
        "Date": "Wed, 22 Apr 2026 18:59:38 +0200",
        "Message-Id": "<20260422165938.35925-4-micbis.openwrt@gmail.com>",
        "X-Mailer": "git-send-email 2.34.1",
        "In-Reply-To": "<20260422165938.35925-1-micbis.openwrt@gmail.com>",
        "References": "<20260422165938.35925-1-micbis.openwrt@gmail.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-Mailman-Approved-At": "Wed, 22 Apr 2026 22:21:26 +0200",
        "X-BeenThere": "u-boot@lists.denx.de",
        "X-Mailman-Version": "2.1.39",
        "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.103.8 at phobos.denx.de",
        "X-Virus-Status": "Clean"
    },
    "content": "The Renesas RZ/G2L (and RZ/G2LC) USBHS controller requires the\nCNEN bit in the SYSCFG register to be set for function operation.\nAdditionally, its CFIFO is byte-addressable.\n\nIntroduce a new renesas_usbhs_driver_param structure for the\nRZ/G2L SoC and link it via the udevice_id data pointer. Update\nusbhs_probe() to accept the udevice pointer to retrieve these\nparameters during initialization.\n\nThis alignment follows the logic used in the Linux kernel\nrenesas_usbhs driver.\n\nSigned-off-by: Michele Bisogno <micbis.openwrt@gmail.com>\n---\n drivers/usb/gadget/rcar/common.c      | 20 ++++++++++++++++++++\n drivers/usb/gadget/rcar/renesas_usb.h |  1 +\n 2 files changed, 21 insertions(+)",
    "diff": "diff --git a/drivers/usb/gadget/rcar/common.c b/drivers/usb/gadget/rcar/common.c\nindex a5d56f8dbe4..051cab8a422 100644\n--- a/drivers/usb/gadget/rcar/common.c\n+++ b/drivers/usb/gadget/rcar/common.c\n@@ -92,6 +92,12 @@ void usbhs_sys_function_ctrl(struct usbhs_priv *priv, int enable)\n \tu16 mask = DCFM | DRPD | DPRPU | HSE | USBE;\n \tu16 val  = HSE | USBE;\n \n+\t/* CNEN bit is required for function operation */\n+\tif (usbhs_get_dparam(priv, has_cnen)) {\n+\t\tmask |= CNEN;\n+\t\tval  |= CNEN;\n+\t}\n+\n \t/*\n \t * if enable\n \t *\n@@ -361,13 +367,21 @@ static int usbhs_udc_otg_gadget_handle_interrupts(struct udevice *dev)\n \n static int usbhs_probe(struct usbhs_priv *priv, struct udevice *dev)\n {\n+\tstruct renesas_usbhs_driver_param *plat_param;\n \tint ret;\n \n+\tplat_param = (struct renesas_usbhs_driver_param *)dev_get_driver_data(dev);\n+\n \tpriv->dparam.type = USBHS_TYPE_RCAR_GEN3;\n \tpriv->dparam.pio_dma_border = 64;\n \tpriv->dparam.pipe_configs = usbhsc_new_pipe;\n \tpriv->dparam.pipe_size = ARRAY_SIZE(usbhsc_new_pipe);\n \n+\tif (plat_param) {\n+\t\tpriv->dparam.has_cnen\t\t= plat_param->has_cnen;\n+\t\tpriv->dparam.cfifo_byte_addr\t= plat_param->cfifo_byte_addr;\n+\t}\n+\n \t/* call pipe and module init */\n \tret = usbhs_pipe_probe(priv);\n \tif (ret < 0)\n@@ -479,8 +493,14 @@ static int usbhs_udc_otg_remove(struct udevice *dev)\n \treturn dm_scan_fdt_dev(dev);\n }\n \n+static struct renesas_usbhs_driver_param rzg2l_param = {\n+\t.has_cnen = 1,\n+\t.cfifo_byte_addr = 1,\n+};\n+\n static const struct udevice_id usbhs_udc_otg_ids[] = {\n \t{ .compatible = \"renesas,rcar-gen3-usbhs\" },\n+\t{ .compatible = \"renesas,rzg2l-usbhs\", .data = (unsigned long)&rzg2l_param },\n \t{},\n };\n \ndiff --git a/drivers/usb/gadget/rcar/renesas_usb.h b/drivers/usb/gadget/rcar/renesas_usb.h\nindex 8155e3dcaf6..140a70251cf 100644\n--- a/drivers/usb/gadget/rcar/renesas_usb.h\n+++ b/drivers/usb/gadget/rcar/renesas_usb.h\n@@ -111,6 +111,7 @@ struct renesas_usbhs_driver_param {\n \tu32 has_otg:1; /* for controlling PWEN/EXTLP */\n \tu32 has_sudmac:1; /* for SUDMAC */\n \tu32 has_usb_dmac:1; /* for USB-DMAC */\n+\tu32 has_cnen:1;\n \tu32 cfifo_byte_addr:1; /* CFIFO is byte addressable */\n #define USBHS_USB_DMAC_XFER_SIZE\t32\t/* hardcode the xfer size */\n \tu32 multi_clks:1;\n",
    "prefixes": [
        "v4",
        "3/3"
    ]
}