Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.0/patches/2198275/?format=api
{ "id": 2198275, "url": "http://patchwork.ozlabs.org/api/1.0/patches/2198275/?format=api", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/1.0/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 }, "msgid": "<20260219175130.2839234-6-dario.binacchi@amarulasolutions.com>", "date": "2026-02-19T17:51:16", "name": "[5/8] spi: stm32: clean up buffer length assignment", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "7f52800ab29c7a0cff954725075f354aa07c59c7", "submitter": { "id": 83038, "url": "http://patchwork.ozlabs.org/api/1.0/people/83038/?format=api", "name": "Dario Binacchi", "email": "dario.binacchi@amarulasolutions.com" }, "delegate": { "id": 3651, "url": "http://patchwork.ozlabs.org/api/1.0/users/3651/?format=api", "username": "trini", "first_name": "Tom", "last_name": "Rini", "email": "trini@ti.com" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20260219175130.2839234-6-dario.binacchi@amarulasolutions.com/mbox/", "series": [ { "id": 492708, "url": "http://patchwork.ozlabs.org/api/1.0/series/492708/?format=api", "date": "2026-02-19T17:51:11", "name": "video: support Rocktech RK050HR345-CT106A panel", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/492708/mbox/" } ], "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2198275/checks/", "tags": {}, "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 (1024-bit key;\n unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com\n header.a=rsa-sha256 header.s=google header.b=OJTtmg08;\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=amarulasolutions.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com\n header.b=\"OJTtmg08\";\n\tdkim-atps=neutral", "phobos.denx.de; dmarc=pass (p=none dis=none)\n header.from=amarulasolutions.com", "phobos.denx.de; spf=pass\n smtp.mailfrom=dario.binacchi@amarulasolutions.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 4fH1Df1sfMz1xpl\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 20 Feb 2026 04:52:34 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 7577D83DCB;\n\tThu, 19 Feb 2026 18:52:14 +0100 (CET)", "by phobos.denx.de (Postfix, from userid 109)\n id 95FC383CF2; Thu, 19 Feb 2026 18:52:13 +0100 (CET)", "from mail-wm1-x344.google.com (mail-wm1-x344.google.com\n [IPv6:2a00:1450:4864:20::344])\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 A0CD283DCB\n for <u-boot@lists.denx.de>; Thu, 19 Feb 2026 18:52:10 +0100 (CET)", "by mail-wm1-x344.google.com with SMTP id\n 5b1f17b1804b1-4838c15e3cbso10494075e9.3\n for <u-boot@lists.denx.de>; Thu, 19 Feb 2026 09:52:10 -0800 (PST)", "from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it\n (host-95-248-31-95.retail.telecomitalia.it. [95.248.31.95])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-483a31b0e63sm35485005e9.2.2026.02.19.09.52.04\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 19 Feb 2026 09:52:09 -0800 (PST)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,\n DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,\n SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=amarulasolutions.com; s=google; t=1771523530; x=1772128330;\n 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=VXul22mgOqTPFmE2l0Bw7pi4t5Fuo2IMZYSpgl/+DvU=;\n b=OJTtmg081Mvhl+WUhEhRy+z837V0QOLDEYNa5uoEbbCHOG6trZdpzVQle9ANiQjxg6\n j99FXvu7nu2/NBGOGEZjCTGaZTPdR3pb3QbuKVXA+ubU6bFbBkdPqK1iSABch0/Wm312\n XdWUN3p8iHjFgjJBG+1HTyIkjMEdP9CKoYQR8=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20230601; t=1771523530; x=1772128330;\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=VXul22mgOqTPFmE2l0Bw7pi4t5Fuo2IMZYSpgl/+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2rj9MzVfCU8jteWuduGYLGKM1SwoytgL2OCWTPPKgK4h36UrCsp+CjJx+bw7hBg6Z7\n NGlZIyuXOaHwEWwdjojwhsb5", "X-Received": "by 2002:a05:600c:6912:b0:483:709e:f22d with SMTP id\n 5b1f17b1804b1-4837108fc46mr374253345e9.27.1771523529890;\n Thu, 19 Feb 2026 09:52:09 -0800 (PST)", "From": "Dario Binacchi <dario.binacchi@amarulasolutions.com>", "To": "u-boot@lists.denx.de", "Cc": "Patrice Chotard <patrice.chotard@foss.st.com>,\n linux-amarula@amarulasolutions.com,\n Patrick Delaunay <patrick.delaunay@foss.st.com>,\n Dario Binacchi <dario.binacchi@amarulasolutions.com>,\n Jagan Teki <jagan@amarulasolutions.com>, Tom Rini <trini@konsulko.com>,\n uboot-stm32@st-md-mailman.stormreply.com", "Subject": "[PATCH 5/8] spi: stm32: clean up buffer length assignment", "Date": "Thu, 19 Feb 2026 18:51:16 +0100", "Message-ID": "<20260219175130.2839234-6-dario.binacchi@amarulasolutions.com>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20260219175130.2839234-1-dario.binacchi@amarulasolutions.com>", "References": "<20260219175130.2839234-1-dario.binacchi@amarulasolutions.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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": "Remove redundant divisions by using the already available xferlen\nvariable for setting the rx/tx buffer lengths.\n\nSigned-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>\n---\n\n drivers/spi/stm32_spi.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/spi/stm32_spi.c b/drivers/spi/stm32_spi.c\nindex a1f31cf653c7..adba97915cd3 100644\n--- a/drivers/spi/stm32_spi.c\n+++ b/drivers/spi/stm32_spi.c\n@@ -404,8 +404,8 @@ static int stm32_spi_xfer(struct udevice *slave, unsigned int bitlen,\n \n \tpriv->tx_buf = dout;\n \tpriv->rx_buf = din;\n-\tpriv->tx_len = priv->tx_buf ? bitlen / 8 : 0;\n-\tpriv->rx_len = priv->rx_buf ? bitlen / 8 : 0;\n+\tpriv->tx_len = priv->tx_buf ? xferlen : 0;\n+\tpriv->rx_len = priv->rx_buf ? xferlen : 0;\n \n \tmode = SPI_FULL_DUPLEX;\n \tif (!priv->tx_buf)\n", "prefixes": [ "5/8" ] }