Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2217343/?format=api
{ "id": 2217343, "url": "http://patchwork.ozlabs.org/api/patches/2217343/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-aspeed/patch/20260327092418.10476-1-paul.louvel@bootlin.com/", "project": { "id": 57, "url": "http://patchwork.ozlabs.org/api/projects/57/?format=api", "name": "Linux ASPEED SoC development", "link_name": "linux-aspeed", "list_id": "linux-aspeed.lists.ozlabs.org", "list_email": "linux-aspeed@lists.ozlabs.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260327092418.10476-1-paul.louvel@bootlin.com>", "list_archive_url": null, "date": "2026-03-27T09:24:18", "name": "crypto: aspeed/hash: Use memcpy_from_sglist() in aspeed_ahash_dma_prepare()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "9ffa1b0f488ede085146a492215acafa5d432dc6", "submitter": { "id": 92992, "url": "http://patchwork.ozlabs.org/api/people/92992/?format=api", "name": "Paul Louvel", "email": "paul.louvel@bootlin.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-aspeed/patch/20260327092418.10476-1-paul.louvel@bootlin.com/mbox/", "series": [ { "id": 497844, "url": "http://patchwork.ozlabs.org/api/series/497844/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-aspeed/list/?series=497844", "date": "2026-03-27T09:24:18", "name": "crypto: aspeed/hash: Use memcpy_from_sglist() in aspeed_ahash_dma_prepare()", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497844/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2217343/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2217343/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-aspeed+bounces-3793-incoming=patchwork.ozlabs.org@lists.ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-aspeed@lists.ozlabs.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256\n header.s=dkim header.b=xSWvcl8I;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.ozlabs.org\n (client-ip=2404:9400:21b9:f100::1; helo=lists.ozlabs.org;\n envelope-from=linux-aspeed+bounces-3793-incoming=patchwork.ozlabs.org@lists.ozlabs.org;\n receiver=patchwork.ozlabs.org)", "lists.ozlabs.org;\n arc=none smtp.remote-ip=185.171.202.116", "lists.ozlabs.org;\n dmarc=pass (p=reject dis=none) header.from=bootlin.com", "lists.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256\n header.s=dkim header.b=xSWvcl8I;\n\tdkim-atps=neutral", "lists.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=bootlin.com\n (client-ip=185.171.202.116; helo=smtpout-04.galae.net;\n envelope-from=paul.louvel@bootlin.com; receiver=lists.ozlabs.org)" ], "Received": [ "from lists.ozlabs.org (lists.ozlabs.org\n [IPv6:2404:9400:21b9:f100::1])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fjKjG1FHXz1y1P\n\tfor <incoming@patchwork.ozlabs.org>; Sat, 28 Mar 2026 12:31:14 +1100 (AEDT)", "from boromir.ozlabs.org (localhost [127.0.0.1])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 4fjKjC2cWRz2yhD;\n\tSat, 28 Mar 2026 12:31:11 +1100 (AEDT)", "from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n\t(No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 4fhwSJ05g3z2xC3\n\tfor <linux-aspeed@lists.ozlabs.org>; Fri, 27 Mar 2026 20:33:34 +1100 (AEDT)", "from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233])\n\tby smtpout-04.galae.net (Postfix) with ESMTPS id 8F54BC406B4;\n\tFri, 27 Mar 2026 09:25:13 +0000 (UTC)", "from mail.galae.net (mail.galae.net [212.83.136.155])\n\tby smtpout-01.galae.net (Postfix) with ESMTPS id EBE7960230;\n\tFri, 27 Mar 2026 09:24:44 +0000 (UTC)", "from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon)\n with ESMTPSA id C40C210450F33;\n\tFri, 27 Mar 2026 10:24:38 +0100 (CET)" ], "ARC-Seal": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1774604018;\n\tcv=none;\n b=KdJ+MRbFFbwFf/E9Leya6Zwq5CkYJOVTNIEkYss/Izj/gGkt0mzwIeE/FZadrO6r2JMj0Abx83pDNvxSAUeCQbnzwayLMHtHSC9PDWdyWOJL+vjLoODgULIMvQv9mtuvoKIYcMR0f/LLOjV7drnKeikbylRRPsPt54HXws2OCUkzZNgR8kTj66M5VF8Lt9vWFGiteFoPr09HVu/QQmQmCnBfTYyKwlIB8p0kWpsCXYJ/3ekeHSz8C3O3avcUZDrKDv39jGqHePpuT/GzB3Zrp9V4RQhrnVqzKmN9xMuPTSkxuQZx6DPCk7WyfHsUqQrxvCv/GE3EXJEB4o1Z9kI5Sw==", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707;\n\tt=1774604018; c=relaxed/relaxed;\n\tbh=uX0ZkDshfrjUuQd8q4yz2ndynx0ogljmjvdsdmFxGS0=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=HpS+zqVb1Hty7mppw3GBCWWGDOSt7+3soydKbNmXflkq9tRrLHZa8ih8UvDyeq4blc3bZlts97KIqHY397musxrlM3250Z48PY1qjU4X2P6byrmN+Z1OXgbA4jtTItTDX44SYqSlGfvg4DxdjCviKMC3oDam5gHi76U+1/0asgA7/rlHBEle6VGGU2sUzwWedmFEYB0LRwNYtQdkHxKsDSLzEGMRXiTwOBUda/QP3ngMM0BBbZ4/ZBmLaA7NZfrh3nt5oie/94H6dijVbSkPfmnmXJxB7cHeOhJW97koLBrEiFYbWn8AYNGG+BSo43TVuircmbQCo2qwor9DRhO/EA==", "ARC-Authentication-Results": "i=1; lists.ozlabs.org;\n dmarc=pass (p=reject dis=none) header.from=bootlin.com;\n dkim=pass (2048-bit key;\n unprotected) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256\n header.s=dkim header.b=xSWvcl8I; dkim-atps=neutral;\n spf=pass (client-ip=185.171.202.116; helo=smtpout-04.galae.net;\n envelope-from=paul.louvel@bootlin.com;\n receiver=lists.ozlabs.org) smtp.mailfrom=bootlin.com", "X-Greylist": "delayed 524 seconds by postgrey-1.37 at boromir;\n Fri, 27 Mar 2026 20:33:36 AEDT", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim;\n\tt=1774603484; h=from:subject:date:message-id:to:cc:mime-version:\n\t content-transfer-encoding; bh=uX0ZkDshfrjUuQd8q4yz2ndynx0ogljmjvdsdmFxGS0=;\n\tb=xSWvcl8Isbuq0d92ng8BHqR2A3YD/pHQymygkKgvTGzvpJ/9TUPBQ5jualNb6iSeS3B/5i\n\t+57n2WSDTy/VWyaeVK08FOZkJNuKikPRGIapifgdHbDCJ9ZVFrsduV9/fUrJANVTpnRhrx\n\t2ld29wYDZxahiOPJwVtWp8hdCr5cDNzBt/sfpvNU57UZAp3f0cKeGC0wxuEhl6/8F/JBN5\n\tnxf5oYT+3UZw0LCt+nwOAmrVcAk20MBawzmq2bBImMdMoN4/plhIY/2oA6nx1SxCpCOKRi\n\tPDQ/77dJF6F5/n3wOy/p0eR4hlX9LJIZNRVgRSGfYVLDb+B37c4uG8wyb//msQ==", "From": "Paul Louvel <paul.louvel@bootlin.com>", "To": "Neal Liu <neal_liu@aspeedtech.com>,\n\tHerbert Xu <herbert@gondor.apana.org.au>,\n\t\"David S. Miller\" <davem@davemloft.net>,\n\tJoel Stanley <joel@jms.id.au>,\n\tAndrew Jeffery <andrew@codeconstruct.com.au>", "Cc": "Thomas Petazzoni <thomas.petazzoni@bootlin.com>,\n\tPaul Louvel <paul.louvel@bootlin.com>,\n\tlinux-aspeed@lists.ozlabs.org,\n\tlinux-crypto@vger.kernel.org,\n\tlinux-arm-kernel@lists.infradead.org,\n\tlinux-kernel@vger.kernel.org", "Subject": "[PATCH] crypto: aspeed/hash: Use memcpy_from_sglist() in\n aspeed_ahash_dma_prepare()", "Date": "Fri, 27 Mar 2026 10:24:18 +0100", "Message-ID": "<20260327092418.10476-1-paul.louvel@bootlin.com>", "X-Mailer": "git-send-email 2.53.0", "X-Mailing-List": "linux-aspeed@lists.ozlabs.org", "List-Id": "<linux-aspeed.lists.ozlabs.org>", "List-Help": "<mailto:linux-aspeed+help@lists.ozlabs.org>", "List-Owner": "<mailto:linux-aspeed+owner@lists.ozlabs.org>", "List-Post": "<mailto:linux-aspeed@lists.ozlabs.org>", "List-Archive": "<https://lore.kernel.org/linux-aspeed/>,\n <https://lists.ozlabs.org/pipermail/linux-aspeed/>", "List-Subscribe": "<mailto:linux-aspeed+subscribe@lists.ozlabs.org>,\n <mailto:linux-aspeed+subscribe-digest@lists.ozlabs.org>,\n <mailto:linux-aspeed+subscribe-nomail@lists.ozlabs.org>", "List-Unsubscribe": "<mailto:linux-aspeed+unsubscribe@lists.ozlabs.org>", "Precedence": "list", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Last-TLS-Session-Version": "TLSv1.3", "X-Spam-Status": "No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,\n\tDKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=disabled\n\tversion=4.0.1", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on lists.ozlabs.org" }, "content": "Replace scatterwalk_map_and_copy() with memcpy_from_sglist() in\naspeed_ahash_dma_prepare(). The latter provides a simpler interface\nwithout requiring a direction parameter, making the code easier to\nread and less error-prone.\n\nNo functional change intended.\n\nSigned-off-by: Paul Louvel <paul.louvel@bootlin.com>\n---\n drivers/crypto/aspeed/aspeed-hace-hash.c | 3 +--\n 1 file changed, 1 insertion(+), 2 deletions(-)", "diff": "diff --git a/drivers/crypto/aspeed/aspeed-hace-hash.c b/drivers/crypto/aspeed/aspeed-hace-hash.c\nindex f8f37c9d5f3c..6f0d03cfbefc 100644\n--- a/drivers/crypto/aspeed/aspeed-hace-hash.c\n+++ b/drivers/crypto/aspeed/aspeed-hace-hash.c\n@@ -182,8 +182,7 @@ static int aspeed_ahash_dma_prepare(struct aspeed_hace_dev *hace_dev)\n \t\t\tfinal = true;\n \t} else\n \t\tlength -= remain;\n-\tscatterwalk_map_and_copy(hash_engine->ahash_src_addr, rctx->src_sg,\n-\t\t\t\t rctx->offset, length, 0);\n+\tmemcpy_from_sglist(hash_engine->ahash_src_addr, rctx->src_sg, rctx->offset, length);\n \taspeed_ahash_update_counter(rctx, length);\n \tif (final)\n \t\tlength += aspeed_ahash_fill_padding(\n", "prefixes": [] }